This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes publish another message inside a messagebean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "publish another message inside a messagebean ?" Watch "publish another message inside a messagebean ?" New topic
Author

publish another message inside a messagebean ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Hi, I have a questions about message bean. we can publish another message inside a messagebean. We can do that ?
for example,
onMessage(..){
//check if the stock is below 0; if yes, publish a warning message to sale depatment.
if(stockAmount < 0){
// publish a new message
Topic ss = (Topic) context.lookup(..);
..
publisher.publish(tm);
}
}
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Yes, that is is possible.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: publish another message inside a messagebean ?
 
Similar Threads
i do not understand servlet request.setAttribute ~
EJB -- Real Time Tech
Question On JMS
bean error
How to use Hornet Q in JBoss 6.0 Final