-
1. Re: Looking up a session bean on one server from within anot
kateel Feb 17, 2005 11:56 AM (in response to kateel)A coworker suggested that I post a code snippet for context.
Hashtable env = new Hashtable(); env.put(Context.PROVIDER_URL, "remoteserver"); InitialContext initialContext = new InitialContext(env); try { Object objRef = initialContext.lookup("my/Workspace"); return (ejb.WorkspaceHome) javax.rmi.PortableRemoteObject.narrow(objRef, ejb.WorkspaceHome.class); } finally { initialContext.close(); }
Simple stuff. It's XDoclet generated an worked just fine before upgrading. -
2. Re: Looking up a session bean on one server from within anot
kateel Feb 17, 2005 6:17 PM (in response to kateel)We reverted to 3.2.6 and all is well. I can make calls to remote beans from within jboss again.
The following item in the 3.2.7RC1 change log looks suspicious:
http://sourceforge.net/docman/display_doc.php?docid=25427&group_id=22866JNDI/Naming
* - Update parseNameForScheme to make a copy of the input name if its being modified due to a schema prefix. The modified name is stored in the Hashtable env under the key jnp.parsedName. This fixes a problem with external names being modified by the Context calls. - Update the MulticastSocket used for discover to use the InitialContext env jnp.localAddress if defined to control the interface the broadcast is sent out on.
o naming/src/main/org/jnp/interfaces/NamingContext.java
o naming/src/main/org/jnp/interfaces/NamingContextFactory.java
This is workable for us, but it would be nice to know what the problem is. -
3. Re: Looking up a session bean on one server from within anot
kalyan120 Feb 18, 2005 12:58 AM (in response to kateel)Did you try using 'jnp.disableDisvoery=true' on your server?
-
4. Re: Looking up a session bean on one server from within anot
kateel Feb 18, 2005 11:14 AM (in response to kateel)I tried setting this both in my code and in the jndi.properties file in the conf directory on the server, but no luck. I also tried setting "jnp.useRelativeName" to false as a shot in the dark, but still no luck.
-
5. Re: Looking up a session bean on one server from within anot
starksm64 Feb 21, 2005 2:52 PM (in response to kateel)Create a bug report in jira and I'll look into it.
http://jira.jboss.com/jira/browse/JBAS -
6. Re: Looking up a session bean on one server from within anot
pradeep01 Nov 12, 2005 7:40 PM (in response to kateel)We are seeing the same thing with JBoss 3.2.7.
Any solution to this. Unfortunately, we cannot go back to 3.2.6
Thanks,
Pradeep,
Software Architect,
SLX Inc.