[Remoting] - Re: call a remote EJB
by Rhodan76
Hello,
i have exactly the same problem in my standalone java-client. Same exception, when i try to call a method of a remote-ejb.
Error occurrs only since and with jboss 4.20CR1 "official released" Version. Before we used a svn-checkout of 4.20 from around November 06, and this version didn't make this problem.
using following initial-context settings:
public static Context getInitialContext()
| throws javax.naming.NamingException {
| Properties env = new Properties();
| env.put(Context.INITIAL_CONTEXT_FACTORY,
| "org.jnp.interfaces.NamingContextFactory");
| env
| .put(Context.URL_PKG_PREFIXES,
| "org.jboss.naming:org.jnp.interfaces");
| env.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
| env.put(Context.SECURITY_PRINCIPAL, "admin");
| env.put(Context.SECURITY_CREDENTIALS, "admin");
| env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
| "org.jboss.security.jndi.JndiLoginInitialContextFactory");
|
| return new InitialContext(env);
|
| }
Ejb-reference lookup seems to be ok, but when i try to call a concrete method of the ejb-reference, jboss throws error above.
Any idea ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027139#4027139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027139
19Â years, 1Â month