ANd same code is working on Jbos 6.1 EAP only i have change port 4447 for jboss.
Port 4447 is no longer used in default configuration and port 8080 to handle ejb invocations. Please change your configuration:
More details here: JNDI Lookup Failing
Yes i have pointed to 8080 only for wildfly i was using 4447 for jboss.
Why is there 4447 port in the stacktrace? What is the problem after changing port to 8080?
Issue was with jboss-client.jar. Jboss jboss-client.jar was in my class path issue resolved after replaced with wildfly jar.
But now I am able invoke EJB even with wrong credential. How can I add security here?