JBoss Community

Problem with @LocalBinding and @RemoteBinding in JBoss 5.0.0

reply from jaikiran pai in EJB 3.0 - View the full discussion

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

Start a new discussion in EJB 3.0 at Community