JBoss ignores @RemoteBinding annotation
- by tputkonen
I would like to specify JNDI name for an EJB3 bean using annotation, but JBoss 5.1.0 GA seems to ignore the annotation completely. Bean's annotations are:
@Remote(Foobar.class)
@Stateless(name = "Foobar")
@TransactionManagement(TransactionManagementType.BEAN)
@RemoteBinding(jndiBinding="ejb/Foobar")
public class FoobarBean implements Foobar {
...
I tested deploying also using @RemoteBindings annotation, but the result was same:
@RemoteBindings({@RemoteBinding(jndiBinding="ejb/Foobar")})
The bean does not get bound to JNDI with the specified name, and the log file doesn't give any clues.