tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 奕东 方 <fangyid...@yahoo.com.cn>
Subject Re: [Half-OT] Background apps in webapp ?
Date Tue, 20 May 2003 12:22:55 GMT
I think that you can write a MDB(Message Driven Bean),which can get initial parameters from
ejb-jar.xml,and you can write a standalone app to send message(via jms) to the MDB periodically
telling the MDB to check the condition.

yogi-ml@darkmag.net wrote:Hail,

I've to developp a small java app for my webapp ; it must check every 10
mins (for example) some data into my oracle database and react according
to some values (still for example, if a date stored in a field is today,
send a mail to a person).

I thought I may build a standalone app, which would run in background. But
i'd like this app to retrieve data from my webapp's web.xml (as you can do
in servlets/tags/snippets with getInitParameter())

Is there a technology which allow such things ? Or should i try to "force"
the parsing of the web.xml file while completely ignoring the webapp &
Tomcat's features ? Or, do you have other ideas ? :)

Thx a lot,

Yogi



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------
Do You Yahoo!?
"相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message