I have a workaround on this but I don't like it much.
I can put some static code on each bean which loads properties from somewhere (eg a resource file in the same package) and passes them into the context using the bind() method.
I need to check before I load that another bean has not already loaded the information.
This seems clumsy.
first a couple of questions, how are the ejb being deployed , If they are being deployed in a EAR all you have to do is place the entrys in the deployment plan jboss-app.xml, this is where you will be able to set up the actual value that is being returned from the lookup, it is done just like a datasource. The other solution would be global to the AS but you could bind to the jboss jndi tree a value but this is a kludge IMO, I think the only real solution is to include inan ear and bind them using the deployment plan.
It sounds like I should be using an EAR, which is not a problem. This is a test app at present and the full app will definitely need an EAR.
I looked for docs on jboss-app.xml and found lots of stuff, but not what you described. Is there a ref you can point me to? A simple example would do.