public class MigrationFrom6_0To6_2ExamplesTODO extends Object
| Constructor and Description |
|---|
MigrationFrom6_0To6_2ExamplesTODO() |
| Modifier and Type | Method and Description |
|---|---|
void |
createJmsRuntimeEngine(String deploymentId,
URL serverUrl,
String user,
String password)
In the 6.0.x code, we did this:
// Setup remote JMS runtime engine factory
RemoteJmsRuntimeEngineFactory remoteJmsFactory
= new RemoteJmsRuntimeEngineFactory(deploymentId, serverUrl, user, password);
// Create runtime engine
RuntimeEngine engine = remoteJmsFactory.newRuntimeEngine();
|
void |
createRestRuntimeEngineWithBuilder()
With the introduction of the fluent/builder API in 6.2.x, we could do this:
RemoteRestRuntimeEngineFactory factory =
RemoteRestRuntimeEngineFactory.newBuilder()
.addUserName("user")
.addPassword("pass")
.addUrl(new URL("http://localhost:8080/business-central"))
.build();
RuntimeEngine runtimeEngine = factory.newRuntimeEngine();
With the 6.0.x code, we built a factory, that we then used to create the runtime..
|
public void createJmsRuntimeEngine(String deploymentId, URL serverUrl, String user, String password)
public void createRestRuntimeEngineWithBuilder()
throws MalformedURLException
MalformedURLExceptionCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.