• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Not able to bind a resource using <resource-ref> tag in the jboss eap 6.0 for Ejb 2.0  RSS feed

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,

I am using ejb2.0 and i want to use <resource-ref> tag to bind the connection factory class with name in jndi context , so i have added <resource-ref> tags in ejb-jar.xml. I am getting below message in jboss eap 6.0 console if i deploy the ear file.

##### jboss eap 6.0 message is #########

15:03:01,316 WARN [org.jboss.as.ee] (MSC service thread 1-2) JBAS011001: Could not resolve resource-env-ref java:/fec/StaffwareProcessSuite

#################

My Ejb-jar.xml file containg:::


<session >
<description><![CDATA[]]></description>

<ejb-name>BPMConnectionFacade</ejb-name>

<home>com.tiscon.bpm.connector.BPMConnectionFacadeHome</home>
<remote>com.tiscon.bpm.connector.BPMConnectionFacade</remote>
<ejb-class>com.tiscon.bpm.connector.BPMConnectionFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>

<resource-ref >
<res-ref-name>java:/fec/StaffwareProcessSuite</res-ref-name>
<res-type>com.tiscon.bpm.connector.BPMConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

</session>

##################

My BPMConnectionFacadeBean.java class has following lookup code::

private BPMConnectionFactory connectionFactory;

Context context = new InitialContext();

connectionFactory = (BPMConnectionFactory) context.lookup("java:/fec/StaffwareProcessSuite");




Can anybody suggest why am i getting "Could not resolve resource-env-ref java:/fec/StaffwareProcessSuite" message in jboss console?


Regards
Sanjeev Kumar

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!