JBoss Community

Re: How can I change the default ejb3 jndi name?

created by Fin Steenbjerg in EJB3 - View the full discussion

I have a kind of similar problem. I would like to include a version number in the jndi path like this: ear-name-V0-0/ejb-name/remote. In jboss 5.1 the first part of the jndi-name is taken from the ear-file being deployed. Is it possible to use something else then the name of the ear-file name (I would not like the ear file to be named ear-name-V0-0.ear). I would not like to use @LocalBinding at each ejb since it would then have to include the version number at each ejb. The only implementation I can figure out is to add an jboss.xml for each ejb module and include bindings for each bean (at build time). But I would prefer only to have the version number at one place. Any ideas.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community