Bugs item #764601, was opened at 2003-07-02 14:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=764601&group_id=22866
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Szatmari Daniel (sdaniel)
Assigned to: Nobody/Anonymous (nobody)
Summary: NULL reference for the looked up remote object
Initial Comment:
First the environment :
Windows 2000 Workstation OS, JDK 1.3 / 1.4 , JBoss
3.0.4 with Tomcat
And now the flow:
We have some MBeans running in the JBoss context.
We also have some clients trying to access the MBeans
through the JBoss naming service.
First a client initiate an InitialContext after that doing a
lookup. Here follows the code :
//get the props
Map namingProps= new HashMap();
namingProps.put("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
namingProps.put("java.naming.provider.url",
"jnp://localhost:1099");
//create the context
InitialContext initialContext = new InitialContext
(namingProps);
SomeRemoteObject services =
(SomeRemoteObject)
initialContext.lookup("string_bound_in_jboss");
All is ok if we start jboss, and the clients use the
services of the deployed mbeans.
The problem appears when the Jboss is shut down but
the client not. The JBoss is restarted and the client (not
closed before) tries to reconnect to the newly restarted
server using the code above.
Even if the context is recreated fresh, the looked up
object is returned NULL.
Can we do anything about this issue?
Thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=764601&group_id=22866
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development