[ openjms-Bugs-1273923 ] binding problem with more networkinterfaces
"SourceForge.net" <[email protected]> Fri, 26 Aug 2005 03:40:46 -0700
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1273923, was opened at 2005-08-26 10:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1273923&group_id=54559
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface (example)
Group: v0.7.6.1
Status: Open
Resolution: None
Priority: 5
Submitted By: frans_user (frans_user)
Assigned to: Nobody/Anonymous (nobody)
Summary: binding problem with more networkinterfaces
Initial Comment:
I encoutered the following problem when migrating my
client application to citrix (ICA) client.
The new envirionment is as following:
The citrix clients communicite with each other by means
of a seperate networkinterface in de range of
xxx.xxx.34.??. While the second networkinterface (
xxx.xxx.33.??) is used for connectivity with backbone to
all the network servers (for mail/sql/OPENJMS/etc.).
The problem
When my jms app. is started on one of the citrix clients
the connection is initialized in about 15 seconds without
any errors). When sending a message to a Topic, the
message actually arrives at the OPENJMS server, but
the citrix client(s) dont't receive the message, while they
are also listening to this Topic!
We found out that when we connected our OPENJMS
server to the ICA network (xxx.xxx.34.??) the problem
disappeared. Then we disabled the xxx.xxx.34.??
interface on that server and the clients didn't receive any
messages again.
From the above I concluded that for some reason the
ICA client bindings where send to the OPENJMS server,
while I expected of course the backbone bindings.
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
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf