Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb timeout help requried  RSS feed

 
jaki jane
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Im using ejb3 and have a method in a stateless bean with an @timeout annotation which obviously gets executed after the specified interval passes. Right now, it just persists an entity bean into the db. But is it possible to call a method in the remote client (client for this ejb) or at least notify it when the timeout happens. Kindly help me with this
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,

you could use a messaging service,
or perform a JNDI lookup and send a specific call,
 
jaki jane
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bill Shirley:
yes,

you could use a messaging service,
or perform a JNDI lookup and send a specific call,


Can you please elaborate. Newbie here
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FAQ: ShowSomeEffort

sorry,
i don't have the time to fully educate you,
a good book on the subject would be helpful,

if you have any specific questions, please post them in a new thread, we'll help you out,
 
Pierre Martin
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A simple way to do that would be to create a servlet on the client side.
Then, you call the servlet with the URL from your EJB...

JMS would not do since your client is probably not an EJB ... Anyway it's probably to complex for what you want to do!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!