File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Seam : How to display messages from MessageDrivenBean in view ?  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Seam : How to display messages from MessageDrivenBean in view ?  " Watch "Seam : How to display messages from MessageDrivenBean in view ?  " New topic
Author

Seam : How to display messages from MessageDrivenBean in view ?

Dumb Joe
Greenhorn

Joined: May 12, 2010
Posts: 2
Hi,

in order to get to know Seam and especially JMS I wanted to write a little chat-web-app where 2 chatters can communicate with each other. (I am a blooy beginner in J2EE in general).

Therefore 2 MDBs shall pull and put the messages in 2 different queues.

For the example I have only 1 sender, 1 queue, 1 receiver, 1 receiverInbox, 1 view.

Until now I handled it as following (I assume, that it could be the wrong approach, but I wanted to know whether it works this way) :

My code :

sender :



receiver :




inbox (pseudo-singleton) --> this is the class, which shall feed the view with info (at least in my approach) :




view :



So far the message is returned as outputtext in the view. (does not work because of failures in view?).
Actually I wanted to display the messages in listboxes/textfields (like chat windows) but I dont know how to handle them in Seam (JSF).

So my questions are :

1.) Does anyone know how I can use listboxes to display messages ?
2.) Is it even possible to delegate the messages from a Message Driven Bean to a JSF-component -> listbox ?

Every hint is much appreciated, I am desperated right now

Kindest Regards,

Dumb_Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Seam : How to display messages from MessageDrivenBean in view ?
 
Similar Threads
MDB onMessage not invoked
Problem getting richfaces tree to display
com.ibm.ejs.container.EJBConfigurationException: NO_JCA_ADAPTER_BINDING found for MDB: ConsumerTest
.SAR file problem
Bug in chrome