public class CiliaJoramTool extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
QUEUE
Constant used to specified a queue
|
protected static String |
TOPIC
Constant used to specified a topic
|
Constructor and Description |
---|
CiliaJoramTool() |
Modifier and Type | Method and Description |
---|---|
static javax.jms.JMSContext |
createContext(String user,
String pass,
String hostname,
int port,
int mode)
Creates a JMS context allowing to send and receive messages.
|
static javax.jms.Destination |
createDestination(javax.jms.JMSContext jctx,
String dname)
Returns the specified destination.
|
protected static final String QUEUE
protected static final String TOPIC
public static javax.jms.JMSContext createContext(String user, String pass, String hostname, int port, int mode) throws javax.jms.JMSException, javax.jms.JMSRuntimeException
user
- the user name.pass
- the password.hostname
- the name or IP address of the Joram server's host.port
- the listening port of the Joram server's host.mode
- the mode of the created session.javax.jms.JMSException
javax.jms.JMSRuntimeException
public static javax.jms.Destination createDestination(javax.jms.JMSContext jctx, String dname)
jctx
- the JMS context to use.dname
- the name of the destination.Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.