• Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Driven Bean - Resource

 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Can anyone guide me with the steps in creating the resource ref in the Message Driven bean. When i run i get the following

C:\Sun\Projects\simple>appclient -client MSBApplicationClient.jar
JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQcf

My set up is like this

Connection Factory jms/MyQcf
Destination Resource jms/MyQueue
Physical Destination PhysicalQueue
I am using the deploy tool for sun java system application server platform edition 8.
I have created a application and within which the MessageDrivenBean is an "Enterprise Bean" and the client is "Application Client"
and the contents of MSBApplicationClient.Jar is therefore

C:\Sun\Projects\simple>c:\sun\appserver\jdk\bin\jar -tf MSBApplicationClient.jar

META-INF/sun-j2ee-ri.project
SimpleMessageClient.class
app-client-ic.jar
samples/ejb/mdb/simple/ejb/SimpleMessageBean.class
ejb-jar-ic.jar
.com.sun.deployment.backend.lock
META-INF/application.xml
META-INF/sun-application.xml

Please someone help
 
Stephan Staeheli
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly are you trying to do? A MDB doesn't have a client. What is your client doing? Do you want to write a message into the queue? Please provide the code from you client, otherwise it's difficult to help you.

Stephan
 
Raymond Ong
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post your code and your ejb-jar.xml as well.

Thanks.
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thanks for ur replies my MDB worked. but i have few questions though abt the JMS part of it. I dont understand y i am creating those resource ref etc. is there a good doc to read to get a picture of what exactly i am doing?
i used http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ to get it working.
thanks for ur time again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!