• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Message Driven Bean - Resource

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic