public class RemoteConnection extends Object
Supports outboard ActiveMQ/Artemis servers.
Modifier and Type | Class and Description |
---|---|
static interface |
RemoteConnection.Consumer
Configuration functional interface for container-supplied objects.
|
static interface |
RemoteConnection.Supplier
Supplier functional interface for user-supplied object.
|
Constructor and Description |
---|
RemoteConnection(String name)
Construct.
|
Modifier and Type | Method and Description |
---|---|
String |
host()
Retrieve the host (or host expression).
|
RemoteConnection |
host(String host)
Set the host (or host expression).
|
String |
jndiName()
Retrieve the JNDI name of the associated connection factory.
|
RemoteConnection |
jndiName(String jndiName)
Set the JNDI name for the associated connection factory.
|
String |
name()
Retrieve the name of the connection.
|
int |
port()
Retrieve the port (or port expression).
|
RemoteConnection |
port(int port)
Set the port (or port expression).
|
public String name()
public RemoteConnection host(String host)
host
- The host literal or expression.public String host()
public RemoteConnection port(int port)
port
- The port (or port expression).public int port()
public RemoteConnection jndiName(String jndiName)
If unset, defaults to java:/jms/name
jndiName
- The explicit JNDI name to bind the connection factory.name()
public String jndiName()
Copyright © 2019 JBoss by Red Hat. All rights reserved.