JBoss ignores @RemoteBinding annotation

Posted by tputkonen on Stack Overflow See other posts from Stack Overflow or by tputkonen
Published on 2010-02-02T09:04:07Z Indexed on 2010/03/25 12:23 UTC
Read the original article Hit count: 428

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about ejb3