[ openjms-Bugs-921925 ] TCP JNDI IntialContext using static variables for obj. scope
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #921925, was opened at 2004-03-23 18:41 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=921925&group_id=54559 Category: jndi Group: v0.7.6 Status: Open Resolution: None Priority: 5 Submitted By: C. Paris (curtis-paris) Assigned to: Nobody/Anonymous (nobody) Summary: TCP JNDI IntialContext using static variables for obj. scope Initial Comment: org.exolab.jms.jndi.mipc.IpcJndiInitialContextFactory has references for the _host and _port for connecting as static variables. If you have multiple tcp connections occuring at once (redundancy, briding, etc), it is possible for the TCP (Ipc) factory to connect to the same server for all connections, depending on thread timings. Observed behavor includes returning connections to servers you know are down, or connecting to the wrong server. The static conditions are not needed and compiles fine with them as non-static. With them static you have to insure that only one OpenJMS connection is being created via TCP at a time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474136&aid=921925&group_id=54559 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click