|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robokind.impl.messaging.utils.ConnectionUtils
public class ConnectionUtils
| Field Summary | |
|---|---|
static int |
QUEUE
Indicates a JMS Queue where Message go to one consumer. |
static int |
TOPIC
Indicates a JMS Topic where Message are broadcasted to all consumers. |
| Constructor Summary | |
|---|---|
ConnectionUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
ensureConnection(org.osgi.framework.BundleContext context,
String conId,
javax.jms.Connection con,
Properties props)
|
static boolean |
ensureDestination(org.osgi.framework.BundleContext context,
String destId,
String destName,
int type,
Properties props)
Creates and registers a Destination if there is not one already registered to the given id. |
static void |
ensureDestinations(org.osgi.framework.BundleContext context,
Object... destParams)
Makes calls to ensureDestination with the given parameters. |
static boolean |
ensureSession(org.osgi.framework.BundleContext context,
String conId,
javax.jms.Connection con,
Properties props)
Registers the Connection if there is not one already registered to the given id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int QUEUE
public static final int TOPIC
| Constructor Detail |
|---|
public ConnectionUtils()
| Method Detail |
|---|
public static boolean ensureSession(org.osgi.framework.BundleContext context,
String conId,
javax.jms.Connection con,
Properties props)
context - BundleContext for OSGiconId - unique connection id to usecon - connection to registerprops - optional OSGi registration properties
public static boolean ensureConnection(org.osgi.framework.BundleContext context,
String conId,
javax.jms.Connection con,
Properties props)
public static boolean ensureDestination(org.osgi.framework.BundleContext context,
String destId,
String destName,
int type,
Properties props)
context - BundleContext for OSGidestId - unique destination id to usedestName - destination nametype - destination type, QUEUE or TOPICprops - optional OSGi registration properties
public static void ensureDestinations(org.osgi.framework.BundleContext context,
Object... destParams)
ensureDestination with the given parameters.
context - BundleContext for OSGidestParams - parameters for calls to ensureDestination,
must be in multiples of 4 with the correct types
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||