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();