• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

publish another message inside a messagebean ?

 
Edward Chen
Ranch Hand
Posts: 798
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is is possible.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic