From which instance you'd like to know the JNDI settings? But the
code/annotation is configured for both:
| @Stateless
| @Local({CallHandlerService.class})
| @Remote({CallHandlerService.class})
| @Interceptors({NullReferenceCheck.class})
| public class CallHandlerServiceBean implements CallHandlerService {
|
Some snippets from server.log in instance A:
2008-04-04 18:37:45,858 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class
annotation org.jboss.annotation.ejb.LocalBinding to
com.phonemessage.service.CallHandlerServiceBean
org.jboss.annotation.ejb.LocalBindingImpl@372f2b32
2008-04-04 18:37:45,859 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class
annotation org.jboss.annotation.ejb.RemoteBinding to
com.phonemessage.service.CallHandlerServiceBean [RemoteBindingImpl:,
jndi=com.phonemessage.service.CallHandlerService, stack=, bindUrl=, proxyFactory=interface
org.jboss.ejb3.remoting.RemoteProxyFactory]
2008-04-04 18:37:45,864 DEBUG [org.jboss.ejb3.Ejb3DescriptorHandler] adding class
annotation org.jboss.annotation.ejb.RemoteBinding to
com.phonemessage.service.CallHandlerServiceBean [RemoteBindingImpl:,
jndi=com.phonemessage.service.CallHandlerService, stack=, bindUrl=, proxyFactory=interface
org.jboss.ejb3.remoting.RemoteProxyFactory]
2008-04-04 18:37:45,865 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3:
ejbName=CallHandlerServiceBean, class=com.phonemessage.service.CallHandlerServiceBean,
type=STATELESS
2008-04-04 18:37:47,483 DEBUG [org.jboss.system.ServiceController] starting service
jboss.j2ee:ear=phonemessage-1.0.0.ear,jar=phonemessage-engine-1.0.0.jar,name=CallHandlerServiceBean,service=EJB3
2008-04-04 18:37:47,487 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB:
com.phonemessage.service.CallHandlerServiceBean ejbName: CallHandlerServiceBean
2008-04-04 18:37:47,506 DEBUG [org.jboss.ejb3.stateless.BaseStatelessProxyFactory] Binding
proxy for CallHandlerServiceBean in JNDI at com.phonemessage.service.CallHandlerService
2008-04-04 18:37:47,515 DEBUG [org.jboss.ejb3.stateless.BaseStatelessProxyFactory] Binding
proxy for CallHandlerServiceBean in JNDI at com.phonemessage.service.CallHandlerService
2008-04-04 18:37:47,520 DEBUG [org.jboss.ejb3.Ejb3Deployment] Bound ejb3 container
jboss.j2ee:ear=phonemessage-1.0.0.ear,jar=phonemessage-engine-1.0.0.jar,name=CallHandlerServiceBean,service=EJB3
2008-04-04 18:37:47,520 INFO [org.jboss.ejb3.JmxKernelAbstraction]
jboss.j2ee:ear=phonemessage-1.0.0.ear,jar=phonemessage-engine-1.0.0.jar,name=CallHandlerServiceBean,service=EJB3
The JNDI view, using JMX on instance A shows:
| com.phonemessage.service.CallHandlerService (proxy: $Proxy95 implements interface
com.phonemessage.service.CallHandlerService,interface org.jboss.ejb3.JBossProxy)
|
Does that answer the question?
I'd like to emphasize when deploying both ears in a single instance, the code works
(given the JNDI is changed localhost:1099) for a local development machine. However, that
is not the situation on the production machine.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141832#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...