[jboss-user] [EJB 3.0] - Problem with @LocalBinding and @RemoteBinding in JBoss 5.0.0

jaikiran pai do-not-reply at jboss.com
Mon Jun 28 06:59:10 EDT 2010


jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion

"Problem with @LocalBinding and @RemoteBinding in JBoss 5.0.0"

To view the discussion, visit: http://community.jboss.org/message/549938#549938

--------------------------------------------------------------
It's actually failing to register the EJB container. The EJB container name is composed of the ear name, the jar name and the bean name. The bean name by default is the unqualified name of the EJB implementation class (in this case, ClassName). You can workaround fix this by overriding the default name of either one or both of those EJBs like this:

@Stateless (name="MyBean1")
...
public class package1.ClassName  implements package1.ClassNameLocal, package1.ClassNameRemote


Notice the use of the "name" attribute on @Stateless

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/549938#549938]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100628/6f45ef64/attachment.html 


More information about the jboss-user mailing list