To the war file (containing the jsp file), I added a resource-ref element to 
web.xml and jboss-web.xml:

web.xml
<resource-ref>
  |   <description>Prophet Cube Data</description>
  |   <res-ref-name>jdbc/Prophet_Cube</res-ref-name>
  |   <res-type>javax.sql.DataSource</res-type>
  |   <res-auth>Container</res-auth>
  | </resource-ref>

jboss-web.xml:
<jboss-web>
  |   <resource-ref>
  |     <res-ref-name>jdbc/Prophet_Cube</res-ref-name>
  |     <res-type>javax.sql.DataSource</res-type>
  |     <jndi-name>java:/Prophet_Cube</jndi-name>
  |   </resource-ref>
  | </jboss-web>

I also found, that when I modify the EJB jar, I need to also re-deploy the WAR 
file.

I forgot to mention that I was deploying _two_ deployment files:
  * jar - EJB code
  * war - jsp code

Is this the proper practice for deploying EJBs? That you also need to re-deploy 
the war / client files also? (some sort of re-freshing?)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113234#4113234

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113234
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to