tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helge Waastad <he...@waastad.org>
Subject Re: basic ejb lookup question...
Date Sat, 17 May 2014 19:39:11 GMT
OK,
Thanks a lot Romain.
Short and clear answer.

Br hw

Sendt fra min iPhone

> Den 17. mai 2014 kl. 08:09 skrev Romain Manni-Bucau <rmannibucau@gmail.com>:
> 
> Hi
> 
> About mails: asf got a big issues and it is slowly sznding blocked mails
> 
> About your issue: ext is just taking properties creating an InitialContext
> and looking up the ejb remote name. So localbean is not compatible.
> Le 16 mai 2014 23:39, "hwaastad" <helge@waastad.org> a écrit :
> 
>> Something strange is happening with email to this list...it bounces.
>> And a reply from Romain never got into the list:
>> 
>> ---
>> Remote bean name, ejb-name no link with java itself if you dont name your
>> ejb as the implementation
>> ---
>> 
>> 
>> Anyway,
>> 
>> I had @Stateless @LocalBean on my bean implementation.
>> Removing @localbean made the jndi lookup work, both with
>> localinitialcontextfactory and remoteinitialcontextfactory
>> @EJB(mappedName = "jndi:ext://myInitialContext/ResourceBeanRemote")
>> 
>> (is there a reason why this is so?)
>> 
>> output:
>> 
>> With @LocalBean:
>> 
>> INFO - Auto-deploying ejb ResourceBean:
>> EjbDeployment(deployment-id=ResourceBean)
>> INFO - Jndi(name=ResourceBeanLocalBean) --> Ejb(deployment-id=ResourceBean)
>> INFO -
>> 
>> Jndi(name=global/EjbLookup/ResourceBean!com.mycompany.ejblookup.ejb.business.ResourceBean)
>> --> Ejb(deployment-id=ResourceBean)
>> INFO - Jndi(name=ResourceBeanRemote) --> Ejb(deployment-id=ResourceBean)
>> INFO -
>> 
>> Jndi(name=global/EjbLookup/ResourceBean!com.mycompany.ejblookup.ejb.business.ResourceBeanRemote)
>> --> Ejb(deployment-id=ResourceBean)
>> INFO - Jndi(name=global/EjbLookup/ResourceBean) -->
>> Ejb(deployment-id=ResourceBean)
>> INFO - Created Ejb(deployment-id=ResourceBean, ejb-name=ResourceBean,
>> container=Default Stateless Container)
>> INFO - Started Ejb(deployment-id=ResourceBean, ejb-name=ResourceBean,
>> container=Default Stateless Container)
>> 
>> Without @Localbean:
>> 
>> INFO - Auto-deploying ejb ResourceBean:
>> EjbDeployment(deployment-id=ResourceBean)
>> INFO - Jndi(name=ResourceBeanRemote) --> Ejb(deployment-id=ResourceBean)
>> INFO -
>> 
>> Jndi(name=global/EjbLookup/ResourceBean!com.mycompany.ejblookup.ejb.business.ResourceBeanRemote)
>> --> Ejb(deployment-id=ResourceBean)
>> INFO - Jndi(name=global/EjbLookup/ResourceBean) -->
>> Ejb(deployment-id=ResourceBean)
>> INFO - Created Ejb(deployment-id=ResourceBean, ejb-name=ResourceBean,
>> container=Default Stateless Container)
>> INFO - Started Ejb(deployment-id=ResourceBean, ejb-name=ResourceBean,
>> container=Default Stateless Container)
>> 
>> br hw
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/basic-ejb-lookup-question-tp4669243p4669339.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>> 

Mime
View raw message