If you connect directly to EJB, you need EJB client libraries. Earlier versions of JBoss AS7 required many separate dependencies. Launch (AFAIK) of 7.1.1-Final
specification available (material specification):
<dependencies> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-ejb-client-bom</artifactId> <version>7.1.1.Final</version> <type>pom</type> </dependency> </dependencies>
You will find here detailed information about JNDI searches and calling methods.
source share