public class ServerConnector
extends java.lang.Object
| Constructor and Description |
|---|
ServerConnector(org.apache.activemq.artemis.api.core.client.ServerLocator locator)
Connects to the Artemis server and starts a client session.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.artemis.api.core.client.ClientSession |
getSession() |
public ServerConnector(org.apache.activemq.artemis.api.core.client.ServerLocator locator)
throws java.lang.Exception
locator - locates the Artemis server.java.lang.Exception - if the connection could not be established or the
session could not be started.