hi all, i have an application which frequently polls the database for unsent messages, and then sends them.
right now i have the following architecture, 1. I have configured my server(Jboss) for invoking a timerMBean(using javax.management.* classes) service at specified interval. 2. The timer bean when invoked calls a session beans 3. The session beans calls a findByStatus on an entity beans and retrieves all the unsent messages(xml string) 4. The session beans opens a URLConnection and sends the message to the specific server url Here step 1 is container dependent since i have to use org.jboss.util.ServiceMBeanSupport for the timerMBean. Can i invoke a timer service in a container independent way?? And my other doubt is whether it is valid opening a URLConnection from an enterprise beans?? if not what is the work around?? Any suggestions in this regard will be hightly appreciated.. thanx in advance, mani =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
