unknown
1970-01-01 00:00:00 UTC
Is there something I can do to solve this problem, or is
this a bug? Any suggestion is welcome. Thx.
Below are the specific code snippets I used in the client
app:
- for the connection:
properties.put
(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.
jndi.rmi.RmiJndiInitialContextFactory");
properties.put
(Context.PROVIDER_URL, "rmi://10.50.34.29:1099/");
...
TopicConnectionFactory factory =
(TopicConnectionFactory) context.lookup
("JmsTopicConnectionFactory");
- I used a seperate sessions for sending and receiving
(spawn from the same connection).
//for sending
topicsession =
connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
...
publisher.publish(topic, jms_message,
DeliveryMode.NON_PERSISTENT, 4, 0);
//for receiving
topicsession_2 =
connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
...
topic = (Topic)context.lookup(topic_name);
- OPENJMS version: openjms-0.7.6.1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1273923&group_id=54559
this a bug? Any suggestion is welcome. Thx.
Below are the specific code snippets I used in the client
app:
- for the connection:
properties.put
(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.
jndi.rmi.RmiJndiInitialContextFactory");
properties.put
(Context.PROVIDER_URL, "rmi://10.50.34.29:1099/");
...
TopicConnectionFactory factory =
(TopicConnectionFactory) context.lookup
("JmsTopicConnectionFactory");
- I used a seperate sessions for sending and receiving
(spawn from the same connection).
//for sending
topicsession =
connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
...
publisher.publish(topic, jms_message,
DeliveryMode.NON_PERSISTENT, 4, 0);
//for receiving
topicsession_2 =
connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
...
topic = (Topic)context.lookup(topic_name);
- OPENJMS version: openjms-0.7.6.1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1273923&group_id=54559