Forums Register Login

MDB Exceptions

+Pie Number of slices to send: Send
Hi to everyone!

I have started readin EBJ 3 in action in order to give for the SCBCD and i am completely new to J2EE technologies..
I'm implementing the ActionBazaar application and I've came up to some exceptions while implementing MDB. To be more specific I get the following errors when I am running the client:

javax.naming.NamingException: ejb ref resolution error for remote business interfaceejb3inaction.example.buslogic.PlaceOrder [Root exception is java.lang.reflect.UndeclaredThrowableException]
Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Res-Ref-Env-Property: jms/QueueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/OrderBillingQueue@res principal: null@mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class ejb3inaction.example.buslogic.PlaceOrderBean
Caused by: java.lang.IllegalArgumentException: Can not set javax.jms.QueueConnectionFactory field ejb3inaction.example.buslogic.PlaceOrderBean.connectionFactory to com.sun.messaging.Queue



By reading the stacktrace I understand that there is something that either is set wrong or it is not set at all.. It sais that there are no runtime properties specified, what is this and how do I specify it? In my workspace i don't have any depolyment descriptors, jndi.properties since the book did not give guidelines if they are needed and how it should be build..
I am attaching the configuration I've made to glassfish v2.1 for the JMS resources and the code on the beans




public class OrderBillingMDB implements MessageListener {

I have read the following thread
webpage
and I have fixxed the mapped name but it didn't fixed it..

Many thanks in advance!
Resources.png
Resources
[Thumbnail for Resources.png]
That feels good. Thanks. Here's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1837 times.
Similar Threads
Doubt about getting a Queue reference using Resource annotation
@Resource question
error in depolyment
InjectionException
trying to send a JMS object message to a glassfish jms queue
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:51:55.