|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.globus.ogsa.impl.core.service.ServicePropertiesImpl org.globus.ogsa.impl.ogsi.GridServiceImpl org.globus.ogsa.impl.core.notification.JMSAdapter
This class connects the Java Messaging Service to the OGSA notification system.
First call start(), then either
jmsToOgsa() if jms is publishing and ogsa is subscribing
or
ogsaToJMS() if ogsa is publishing and jms is subscribing.
and then stop() when you are done.
jmsToOgsa and ogsaToJMS hook up one topic at a time and can be called more than once
on a single instance of the JMSAdapter to hook up more than one topic.
It will pull the JNDI initial context parameters:
java.naming.factory.initial, java.naming.provider.url, and java.naming.factory.url.pkgs
from the server-config.wsdd file, if you need to set any others you must call setInitialJndiProperty()
before calling start().
It uses Session.AUTO_ACKNOWLEDGE on the JMS side, so delivery is not guaranteed.
Nested Class Summary | |
static class |
JMSAdapter.AdapterListener
|
static class |
JMSAdapter.JMSListener
|
static class |
JMSAdapter.OGSAListener
|
Field Summary |
Fields inherited from class org.globus.ogsa.impl.ogsi.GridServiceImpl |
queryEngine, serviceData |
Constructor Summary | |
JMSAdapter()
|
Method Summary | |
void |
destroy()
|
void |
disconnectTopic(java.lang.String jmsTopicName)
Disconnects a single topic so messages are no longer forwarded. |
void |
finalize()
|
void |
jmsToOgsa(java.lang.String jmsTopicName,
java.lang.String ogsaTopicName,
java.lang.String jmsToOgsaConverterClassName)
Connects to an existing JMS topic and forwards all its messages to a new OGSA topic. |
void |
jmsToOgsaSimple(java.lang.String topicName)
Connects to an existing JMS topic and forwards all its messages to a new OGSA topic. |
void |
ogsaToJMS(java.lang.String ogsaSourceUrlString,
java.lang.String ogsaTopicName,
java.lang.String jmsTopicName,
java.lang.String ogsaToJMSConverterClassName)
Connects to an existing ogsa topic and forwards all its messages to an existing jms topic. |
void |
ogsaToJMSSimple(java.lang.String ogsaSourceUrlString,
java.lang.String topicName)
Connects to an existing ogsa topic and forwards all its messages to an existing jms topic. |
void |
postCreate(GridContext context)
called when a service has been created and all of its configuration has been set up. |
void |
setInitialJndiProperty(java.lang.String key,
java.lang.String value)
Sets a parameter to the JNDI InitialContext that is created when you call start(). |
void |
start(java.lang.String jmsTopicFactoryName)
Starts the JMSAdapter and looks up the JMS TopicConnectionFactory. |
void |
stop()
Stops everything and frees resources. |
Methods inherited from class org.globus.ogsa.impl.ogsi.GridServiceImpl |
activate, addOperationProvider, deactivate, findServiceData, getInstanceProperty, getOperationProvider, getQueryEngine, getServiceDataSet, getServiceDataValues, getServiceInterface, getTerminationTime, populateInstanceProperties, preCreate, preDestroy, requestTerminationAfter, requestTerminationBefore, setDefaultTermination, setQueryEngine, setServiceData, setServiceDataSet |
Methods inherited from class org.globus.ogsa.impl.core.service.ServicePropertiesImpl |
flush, getPersistentProperty, getProperty, keySet, setPersistentProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.globus.ogsa.ServiceProperties |
flush, getPersistentProperty, getProperty, setPersistentProperty, setProperty |
Constructor Detail |
public JMSAdapter()
Method Detail |
public void postCreate(GridContext context) throws GridServiceException
GridServiceCallback
postCreate
in interface GridServiceCallback
postCreate
in class GridServiceImpl
GridServiceException
public void setInitialJndiProperty(java.lang.String key, java.lang.String value)
public void start(java.lang.String jmsTopicFactoryName) throws JMSAdapterException
JMSAdapterException
public void disconnectTopic(java.lang.String jmsTopicName)
public void stop()
public void destroy() throws java.rmi.RemoteException, FaultType, ServiceNotDestroyedFaultType
destroy
in interface GridService
destroy
in class GridServiceImpl
java.rmi.RemoteException
FaultType
ServiceNotDestroyedFaultType
public void finalize()
public void jmsToOgsaSimple(java.lang.String topicName) throws JMSAdapterException
JMSAdapterException
public void jmsToOgsa(java.lang.String jmsTopicName, java.lang.String ogsaTopicName, java.lang.String jmsToOgsaConverterClassName) throws JMSAdapterException
jmsTopicName
- The name of the existing jms topicogsaTopicName
- The name of the new ogsa topic it will create.jmsToOgsaConverterClassName
- Fully qualified name of the class to use to convert a jms message
to an ogsa message. It must implement org.globus.ogsa.impl.base.jmsadapter.JMSToOgsaConverter
JMSAdapterException
public void ogsaToJMSSimple(java.lang.String ogsaSourceUrlString, java.lang.String topicName) throws JMSAdapterException
JMSAdapterException
public void ogsaToJMS(java.lang.String ogsaSourceUrlString, java.lang.String ogsaTopicName, java.lang.String jmsTopicName, java.lang.String ogsaToJMSConverterClassName) throws JMSAdapterException
ogsaToJMSConverterClassName
- Fully qualified name of the class to use to convert an ogsa message
to a jms message. It must implement org.globus.ogsa.impl.base.jmsadapter.OgsaToJMSConverter.
Can be null, which becomes org.globus.ogsa.impl.base.jmsadapter.DefaultOgsaToJMSConverter
JMSAdapterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |