0

I would like to execute the onMessage(Message message) method, from a class which implement MessageListener, only when a timer allow it (for example 'read' message between 14:00 and 15:00). Actually I have a @MessageDriven class which receive message instantly.

But like it's said on this post I can't use ejb Schedule: Import javax.ejb.Schedule cannot be resolved

In what direction look for?

edit : I want message can be send all the day (I know do that) but the class who receive can do it only between 2 and 3

Community
  • 1
  • 1
Guinoutortue
  • 349
  • 2
  • 7
  • 17
  • So... between 2 and 3 you want to send JMS messages to some class? Or within 2 and 3 you want to allow a JMS service to receive messages? Really vague question. – Gimby Jun 27 '14 at 13:23
  • I want to allow to receive between 2 and 3. Sorry for being vague – Guinoutortue Jun 27 '14 at 13:29

0 Answers0