Topstar, this is an Enterprise adapter issue. The scheduler is great for IS, but will not help aww, unfortunately.
aww, I have solved a similar issue by creating an ILA and using it as a timer. The ADL is available in the Shareware section of the Web site at [url=“wmusers.com”]wmusers.com.
The script is designed to sleep for a specified period of time and then publish a document to the Broker. Reviewing it may help you understand some architectural concepts but you will need to perform some modification to (or replace entirely) the code.
In your project, it sounds like you will want to create a component that constantly checks if a Date object satisifies some condition(s).
Is it 09:00:00.0? Is it 15:00:00.0? Is it Monday, Tuesday, Wednesday, Thursday, or Friday?
If the conditions are met, publish a document. Otherwise, do nothing. You should write all of this code within a Custom Code step and do the publish action using the Java API. If you need help with this, let me know. (I do not have the API handy so I can’t write the code out for you right now!)
If you require Thread.sleep(), remember that the entire adapter will sleep for (at least) the time specified in your method call. Because an adapter executes as a thread itself, you lose control of it during a sleep period. In short, all other components running on the adapter will be unavailable until the thread awakes. Therefore, if you are using Thread.sleep(), the adapter it runs on should not have any other components.
Hope this helps.
#Integration-Server-and-ESB#webMethods#broker#Universal-Messaging-Broker