I am trying to set a property for the jndi name for an EJB project that will be included in several Web Apps. I need to do this so when I deply the apps on the servers the jndi names are different.
So far I have changed the ejb xdoclet tags to this:
@ejb.bean name="Customer"
display-name="CustomerEJB"
description="Customer related business methods"
jndi-name="${ejb.jndiname}/Customer"
type="Stateless"
view-type="remote"
I have also created a file called “xdoclet-build.properties” with the following contents:
ejb.jndiname = NIS
However when I run xdoclet and deploy to jboss, the jndi name is ejb/Customer!
What am I doing wrong?