• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

ejb3 and mdb

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to develop an ejb3 mdb and deploy to a weblogic 10
server. I've use the following 2 web sites as models for my
bean:

http://www.oracle.com/technology/tech/java/ejb30.html
http://www.manning.com/panda/

The only change I made was from a topic to a queue. Everything
compiles fine and deploys fine. However, after deployment and I
activate my bean, I get the following error:

The Message Driven Bean, JJGTestMDB does not have a Message Destination
configured. The message destination must be set using a message-destination
link, a destination-resource link or destination-jndi-name.

In my code, I have javax.jms.Queue and jms/QueueConnectionFactory set
the same way he has them set in the Topic example. Can anyone suggest
where I may need to do?

Thanks,

John
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post your MDB code including the annotations. I looked at the example and there's seems to be a typo in that example:



As far as i know, this should have been



Note the propertyName is "destination".
 
John Gregory
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaikiran,

Is there someplace that has all the ActivationConfigProperty
names? It seems that there are way too many choices to put
in one ejb book (I'm using EJB3 In Action as a ref).

Thanks,

John
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The properties actually depend on the application server and the jms provider. As per the EJB3 xsd:


The activation-config-property-name element contains the name for an activation configuration property of a message-driven bean. For JMS message-driven beans, the following property names are recognized: acknowledgeMode, messageSelector, destinationType, subscriptionDurability

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic