Print
Category: Java Deprecated
Hits: 606

How to create an EJB using annotation and NetBeans/GlassFish/JBoss and access it remotely in under five minutes:

Requirements: NetBeans 8.1 running on JDK1.8 and JavaEE 7

For GlassFish 4.1.1

For JBoss 7.1

org.jboss/jboss-remote-naming/2.0.4.Final
javax.javaee/javaee/6.0-alpha-1
org.jboss.xnio/xnio-nio/3.3.6.Final

Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"
Context.PROVIDER_URL, "remote://127.0.0.1:4447"
"jboss.naming.client.ejb.context", true