We have an installation that uses ejb2 beans and runs under jboss 4.2.3. We are trying to move that installation to jboss 5.1.0.GA (jdk6 fwiw).
A typical ejb-jar.xml entry is
and in jboss.xml we have a corresponding entry
In JB4 we can do a servicelocator lookup of this in JBDI using the simple name "ActiveRecordingAccess";
Since we've moved to JB5, we've found that the lookup now has to be "xxx/ActiveRecordingAccess/home"
(the bean is contained in deploy/xxx.ear)
and we find it in the JNDI global space (using jmx-console) as "xxx/ActiveRecordingAccess/home"
For backwards compatibility in our code we'd like to still be able to look them up using the simpler name (i.e. "ActiveRecordingAccess").
Is this at all possible or are we going to have to change all our references to the "xxx/ActiveRecordingAccess/home" form.
Tried your suggest and things didn't go well. Here's more info.
What we are currently using tha tworks is the ejb-jar 3.0 via attributes and jboss 5_0 DTD via DOCTYPE (as listed in original post).
What I get with that is the bean installing, deploying and binding as shown via the following snippets form the server.log:
When I tried your suggestion I only got the installing part
but with no binding information (or deploying for that matter)
For the ejb-jar I used, per your suggestion:
For the jboss.xml I tried various specs, each of which gave the same result of install but no deploy or bind:
(our orignal that worked in JB4.2.3.GA)
The JB4.2 DTD
and the JB5 DTD
So, at this point the only conbination that actually deploys and binds the beans is the one from my original post.
The one with the ejb-jar 2.1 xsd doesn't seem to get past installing. We don't see binding information with any of them.
I don't recall anymore what we finally did as a resolution. I think we crafted the name the way it needed to be (been a while since I was in that code base). However, that was short lived. We ultimately rolled back to JB4 since JB5 was significantly slower (at least at that time).
Sorry I couldn't be more help.