
|
If you were logged in you would be able to see more operations.
|
|
|
OSCache
Created: 21/Nov/06 07:34 PM
Updated: 19/Mar/07 05:53 PM
|
|
| Component/s: |
Listeners
|
| Affects Version/s: |
2.3.2
|
| Fix Version/s: |
2.4
|
|
|
I need to be able to specify a specific JNDI context for the JMS connection factory when using JMSBroadcastingListener.
Could we separate the following code into a protected method, get/lookupConnectionFactory?
// Make sure you have specified the necessary JNDI properties (usually in
// a jndi.properties resource file, or as system properties)
InitialContext jndi = new InitialContext();
// Look up a JMS connection factory
ConnectionFactory connectionFactory = (ConnectionFactory) jndi.lookup(topicFactory);
// Create a JMS connection
connection = connectionFactory.createConnection();
basically I need to connect to a remote JMS - but setting system properties/jndi.properties is oo global for me. (i have other stuff which has different JNDI initialcontext settings)
|
|
Description
|
I need to be able to specify a specific JNDI context for the JMS connection factory when using JMSBroadcastingListener.
Could we separate the following code into a protected method, get/lookupConnectionFactory?
// Make sure you have specified the necessary JNDI properties (usually in
// a jndi.properties resource file, or as system properties)
InitialContext jndi = new InitialContext();
// Look up a JMS connection factory
ConnectionFactory connectionFactory = (ConnectionFactory) jndi.lookup(topicFactory);
// Create a JMS connection
connection = connectionFactory.createConnection();
basically I need to connect to a remote JMS - but setting system properties/jndi.properties is oo global for me. (i have other stuff which has different JNDI initialcontext settings)
|
Show » |
|
Properties p = getProperties();
// Make sure you have specified the necessary JNDI properties (usually in
// a jndi.properties resource file, or as system properties)
// get digitalchicago properties for current server, get remote "jms url" so we can set properties
InitialContext jndi = new InitialContext(p);