aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB Exceptions" Watch "MDB Exceptions" New topic
Author

MDB Exceptions

Nicolas Kal
Ranch Hand

Joined: Sep 09, 2009
Posts: 69
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!



[Thumbnail for Resources.png]



SCJP 6.0 , SBCD (Preparing..),
MSc Enterprise Systems Development, BSc Computer Science
 
 
subject: MDB Exceptions