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.
source
share