• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

MDB Exceptions

Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
and I have fixxed the mapped name but it didn't fixed it..

Many thanks in advance!
[Thumbnail for Resources.png]
I am displeased. You are no longer allowed to read this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic