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