[jboss-user] [EJB/JBoss] - Re: JNDI Lookup error after deploying EJB3 jar as a part of
jaikiran
do-not-reply at jboss.com
Tue Jan 1 05:06:03 EST 2008
anonymous wrote : Does the lookup name change if I deploy it in an EAR file?
Yes, it does change. If you are deploying the bean as part of an ear file, then the lookup string will also have a ear file name prefixed to it. For example, if your TestBean is being deployed in an ear file named myApp.ear and you want to lookup the remote interface then the lookup string will be as follows:
Test beanRemote = (Test) context.lookup("myApp/TestBean/remote");
Notice the myApp prefixed to the jndi-name.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116228#4116228
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116228
More information about the jboss-user
mailing list