|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Factory used from the JMS bridge to create the appropriate
JMS administered objects (destinations, connection factories)
for the foreign JMS server. The bridge provides an implementation
for JNDI lookups. Because this is the standard way of getting
administered JMS objects, it should match most cases. If you
are in the situation where you have to bridge to a JMS server
which doesn't provide a JNDI lookup and where you have to use
their proprietary connection factories directly, then you can
create your own ObjectFactory by implementing this interface.
The ObjectFactory must be specified while setting up the bridge
through the property objectfactory. Implementations have
to provide a public constructor without parameters. If specified,
the bridge will set loaded properties immediatly after creating
of the ObjectFactory with setProperties.
JNDIObjectFactory
Method Summary | |
void |
destroy()
Destroys the ObjectFactory and frees all resources. |
javax.jms.Queue |
getQueue(java.lang.String queue)
Returns a Queue. |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(java.lang.String name)
Returns a QueueConnectionFactory. |
javax.jms.Topic |
getTopic(java.lang.String topic)
Returns a Topic. |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(java.lang.String name)
Returns a TopicConnectionFactory. |
void |
setProperties(java.util.Properties prop)
Set the properties for this ObjectFactory. |
Method Detail |
public void setProperties(java.util.Properties prop)
prop
- propertiespublic javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String name) throws ObjectFactoryException
name
- Name of the QueueConnectionFactoryObjectFactoryException
- if an error occurspublic javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String name) throws ObjectFactoryException
name
- Name of the TopicConnectionFactoryObjectFactoryException
- if an error occurspublic javax.jms.Queue getQueue(java.lang.String queue) throws ObjectFactoryException
name
- Name of the QueueObjectFactoryException
- if an error occurspublic javax.jms.Topic getTopic(java.lang.String topic) throws ObjectFactoryException
name
- Name of the TopicObjectFactoryException
- if an error occurspublic void destroy() throws ObjectFactoryException
ObjectFactoryException
- if an error occurs
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |