JBoss ignores @RemoteBinding annotation

I would like to specify the JNDI name for the EJB3 bean using annotation, but JBoss 5.1.0 GA seems to completely ignore the annotation. bean annotations:

@Remote(Foobar.class)
@Stateless(name = "Foobar")
@TransactionManagement(TransactionManagementType.BEAN)
@RemoteBinding(jndiBinding="ejb/Foobar")
public class FoobarBean implements Foobar {
...

I tested the deployment also with the @RemoteBindings annotation, but the result was the same:

@RemoteBindings({@RemoteBinding(jndiBinding="ejb/Foobar")})

The bean does not bind to the JNDI with the specified name, and the log file does not give any hints.

+3
source share
1 answer

What are your import statements? JBoss 4.2.x and above uses org.jboss.ejb3.annotation. * instead of org.jboss.annotation.ejb. *

+4
source

Source: https://habr.com/ru/post/1730985/


All Articles