You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by zsaade <zs...@path-solutions.com> on 2019/02/14 08:29:21 UTC

EAR & WAR under the Same TomEE EJB local or Remote Call

Dear All

I have apache-tomee-plume-7.1.0 under the <tomee-home>\apps I'm deploying 1
EAR (*EJB 2.1*) File and under the <tomee-home>\webapps I'm deploying 1 WAR
file; what should I use in My EJB Lookup?

*Local EJB Lookup:*
/p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.core.OpenEJBInitialContextFactory");/

OR 

*Remote EJB Lookup:*
/p.put(Context.PROVIDER_URL, "ejbd://127.0.0.1:4201");/
or
/p.put(Context.PROVIDER_URL, "ejbd://localhost:8080");/
or
/p.put(Context.PROVIDER_URL, "http://localhost:8080/openejb/ejb");/


Best Regards



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html