May be my post is too big, to draw any attention. This time, I'll try to put keep the post shorter with precise information.
I tried the same example listed
here
My project structure looks like below
Server : JBoss 7.1.0 Final
I deployed my
EJB as jar, and I see the below status in logs
Deployment successful
I tried to connect to these EJB from a
servlet client deployed along with this EJB as one enterprise app, on same JBoss and I'm able to lookup the proxy using the JNDI
string
"java:global/Calculator/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator"
and able to run the method calculator.add(5,4) resulting 9
However I tried to call the ejb from a standalone client and my client code is an exact copy of the URL mentioned above. In short, my client code trying to do JNDI lookup using the string
and I believe I got the proxy, however upon invoking the method I get
I added jboss-client-7.1.0.Final.jar to the client's classpath and also copied jboss-ejb-client.properties to the source directory, such that this file is exactly in the same path as the class file.
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
But yet, I'm still getting the error. Are there any settings wrong in my client code ?