This content has been marked as final.
Show 3 replies
-
1. Re: How to override default jndi name for session bean at de
kabirkhan Nov 2, 2005 6:49 AM (in response to redolive)@LocalBinding/@RemoteBinding
http://docs.jboss.org/ejb3/app-server/tutorial/jndibinding/jndi.html
or use jboss.xml
http://docs.jboss.org/ejb3/app-server/tutorial/jboss_deployment_descriptor/jboss_dd.html -
2. Re: How to override default jndi name for session bean at de
msobkow Nov 10, 2005 4:15 PM (in response to redolive)I'm running JBoss 4.0.3, but the @LocalBinding and @RemoteBinding annotations don't seem to get recognized.
... import javax.annotation.Resource; import javax.ejb.*; import javax.persistence.*; ... @Stateful @Local( {project.db.MyTestLclXfc.class} ) @Remote( {project.db.MyTestRmtXfc.class} ) @LocalBinding( jndiBinding="project/local/MyTest" ) @RemoteBinding( jndiBinding="project/remote/MyTest" ) public class MyTest implements MyTestLclXfc, MyTestRmtXfc { ... }
Eclipse flags the local and remote binding annotations with "LocalBinding cannot be resolved to a type".
I've been digging through the jars that get pulled in for an EJB3 project and found the annotation classes for @Local, @Remote, etc. but cannot find any for LocalBinding or RemoteBinding.
I'd also tried to import org.jboss.ejb3.* (the package mentioned in the JNDI binding tutorial), but that didn't help anything.
Has the approach for specifying JNDI binding names changed? -
3. Re: How to override default jndi name for session bean at de
max334 Nov 11, 2005 6:59 PM (in response to redolive)Yes, I am having the same problem with eclipse. Do we have to add additional APIs to the classpath? In which jar are the @LocalBinding/@RemoteBinding included?