Found some more information
I looked at the war file that was generate off of both ejbs. They both gen'd the same jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/jboss-net</context-root> </jboss-web>
So how do I get two ejbs working that use /jboss-net/services as the base context
Actually the only solution I have found is to package the multiple ejbs into the same jar.
I would like to have different jar files for each ejb but have them use the same base context.
I could not find a way to get the same base context packaged in seperate ejbs. Each ejb generates a war file. Each war file uses just the first part of the context (contextA in my example)
So the last one deployed wins.
The last one should not deploy at all.
The security is associated with the context. You cant reuse the context accross deployments.
With normal web apps you can't reuse the context either.