Wolfgang Knauf [https://community.jboss.org/people/WolfgangKnauf] created the 
discussion

"Re: Problems with JBoss 7 and remote-interface lookup with context"

To view the discussion, visit: https://community.jboss.org/message/756296#756296

--------------------------------------------------------------
Hi,

sorry, I did not find the time to play with JBoss since a few months now. But I 
will try to help. 

How do you start your client app? For an application client, you should start 
the application client by using the script "bin\app-client.bat" or 
"bin/app-client.sh" in your JBoss distribution.

I assume you followed the guide on using remote EJB invocations:  
https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI
 
https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI
 ?

I think the JNDI properties can be simplified (maybe something causes a 
conflict):

Properties props = new Properties();
props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

InitialContext initialContext = new InitialContext(props);

return (CalculatorRemote) 
initialContext.lookup("ejb:TesteEar/EJB3_Chap02//CalculatorBean!calc.CalculatorRemote");

Best regards

Wolfgang
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/756296#756296]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to