File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB Exceptions" Watch "MDB Exceptions" New topic

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, 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
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
I agree. Here's the link:
subject: MDB Exceptions
jQuery in Action, 3rd edition