开发者

JBoss ignores @RemoteBinding annotation

开发者 https://www.devze.com 2022-12-18 14:52 出处:网络
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.开发者_C百科 Bean\'s annotations are:

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.开发者_C百科 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号