-
1. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
jaikiran Feb 21, 2012 10:28 PM (in response to brandon.n.atkinson)Brandon, welcome to the forums!
JBoss AS7 does not support jboss.xml file. Instead it's been renamed to jboss-ejb3.xml. So that's the first change you'll have to make. Other than that your configurations look OK. Just make sure that you are using the correct global JNDI names while linking.
-
2. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
brandon.n.atkinson Feb 22, 2012 9:44 AM (in response to jaikiran)Thanks for the reply jaikiran.
I did find a number of forum articles saying that jboss.xml didn't work, and that jboss-ejb3.xml was the way, but I can't seem to find a jboss-ejb3.xml schema or dtd for the latter.
Is there an xsd for jboss-ejb3.xml?
-
3. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
jaikiran Feb 22, 2012 9:54 AM (in response to brandon.n.atkinson)1 of 1 people found this helpfulBrandon Atkinson wrote:
Is there an xsd for jboss-ejb3.xml?
Yes, you'll find it in the JBOSS_HOME/docs/schema folder. It's named jboss-ejb3-2_0.xsd and here's one example from the AS7 testsuite of the jboss-ejb3.xml https://github.com/jbossas/jboss-as/blob/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ee/injection/resource/resourceref/jboss-ejb3.xml
-
4. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
brandon.n.atkinson Feb 22, 2012 10:02 AM (in response to jaikiran)Thanks again.
Would you know if there plans to host these AS 7 schemas at a public URL (outside of a github repo)?
The developers in my shop rely heavily on the eclipse xml editor completion.
-
5. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
jaikiran Feb 22, 2012 10:09 AM (in response to brandon.n.atkinson)1 of 1 people found this helpfulBrandon Atkinson wrote:
Would you know if there plans to host these AS 7 schemas at a public URL (outside of a github repo)?
The plan was to do that once 7.1.0.Final was released (which happened last week). I'll have to check what the status is.
-
6. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
ashman Feb 23, 2012 12:03 PM (in response to brandon.n.atkinson)Hi all,
I am trying to do exactly the same as Brandon...migrate from AS4 to AS7, and have the same problem. I looked at the xsd file which was on the JBOSS_HOME/docs/schema folder, but just could not my jboss-ejb3.xml to be successfully parsed at deployment. I have also looked for examples everywhere ( also the one Jaikiran posted a link to), but it is always failing on deployment. Has anyone got a sample jboss-ejb3.xml file which is parsed correctly in 7.1.0 Final? Please post one if you do...it would help immensely!
Thanks. -
7. Re: Mapping global JNDI names to ENC in jboss-as-7.1.0.Final
brandon.n.atkinson Feb 23, 2012 1:34 PM (in response to ashman)Ashman,
If the error message says something about 'jndi-name' not being valid, its because as 7 doesn't allow you to provide custom JNDI names to EJBs.
I had a similar problem, until I removed the <jndi-name></jndi-name> element that was assigning a name to my bean.
Hope that helps.