-
1. Re: Deploying EJB 2.1 in AS7 with resource-ref
sfcoy Sep 12, 2012 10:34 AM (in response to santos.sandro)jboss-ejb3.xml is the correct location for your resource-refs. The schema for this is just not as easy to read as before.
Here's an example from the test suite:
{code:xml}
<?xml version="1.0"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1"
impl-version="2.0">
<enterprise-beans>
<session>
<ejb-name>ResourceRefBean</ejb-name>
<!-- This resource-ref has no corresponding res-type specified
neither in ejb-jar.xml nor in the bean as a @Resource (see EJBTHREE-1823
for the details) -->
<resource-ref>
<res-ref-name>EJBTHREE-1823_DS</res-ref-name>
<jndi-name>java:jboss/datasources/ExampleDS</jndi-name>
</resource-ref>
</session>
<session>
<ejb-name>StatelessBean</ejb-name>
</session>
<session>
<ejb-name>ResUrlCheckerBean</ejb-name>
<resource-ref>
<res-ref-name>url2</res-ref-name>
<res-url>http://somewhere/url2</res-url>
</resource-ref>
</session>
</enterprise-beans>
</jboss:ejb-jar>{code}
-
2. Re: Deploying EJB 2.1 in AS7 with resource-ref
santos.sandro Sep 12, 2012 10:55 AM (in response to sfcoy)Isn't this an excerpt of ejb-jar.xml and not jboss-ejb3.xml !?
-
3. Re: Deploying EJB 2.1 in AS7 with resource-ref
sfcoy Sep 12, 2012 10:59 AM (in response to santos.sandro)Nope. See the <jboss:ejb-jar ...?