• 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

mdb doesn't catch messages in point2point

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm trying to send messages to a mdb from a JSF backing-bean in JBoss 4.2.3. I'm including below all the code I've added to my app to get this running. The problem is, the method onMessage in the mdb MDBInitImport never gets called.

Here is the code I have so far:

In the backing-bean



The mdb



The jbossmp-destinations-service.xml



Thank you very much for your help
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried your code and it works for me. I used JBossAS 4.2.2 with JDK 1.5.0_16.

Are you getting any stack traces in the console log?
 
Esteban Sanchez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

thanks for your answer. Nothing in the console.

I'm using JBoss 4.2.3 with default configuration and Richfaces 3.2.1.

Could it be the cause, a wrong server configuration?. I didn't change anything from config files so JBoss has all the testing queues etc. Should I change to "minimal" JBoss configuration?.

Cheers
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried looking on the JMS console to see if the Queue is correctly registered and that messages are on it?
 
Esteban Sanchez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No messages in the queue according to the console. But the queue is there. Am I missing a config param or something in some config file?

Thanks
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try posting a message to that queue and see if it stays there (it should). If the message then disappears then chances are your MDB (or another client to the Queue) is taking that message.
 
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