Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Glassfish invoke method during application startup

Thread view: 
news.internetia.pl - 11 Jan 2008 12:25 GMT
Hi,

   I need to invoke some moethod but only when ejb.jar is deployed or
Glassfish server is restarted etc.
Thsi method cannot be invoked by remote client etc.
Are there any mechanism to create this kind of class etc .?

Thanks
derek - 11 Jan 2008 14:00 GMT
> Hi,
> I need to invoke some moethod but only when ejb.jar is deployed or
> Glassfish server is restarted etc.
> Thsi method cannot be invoked by remote client etc.
> Are there any mechanism to create this kind of class etc .?
> Thanks

You could maybe use this http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextLis
tener.html

It gets called when your context is created or destroyed. If you are not using any jsp or servlets though it will not be of use to you.

=====================================================
THIS IS MY SIGNATURE. There are many like it, but this one is mine.
tricky - 12 Jan 2008 09:49 GMT
Unfortunetly i don't use jsp or servlet only remote client which connect to
ejb via jndi :( - infact i need to invoke this method in some interval
someting like cron
i've read about TimedObject but it also requires to call some method from
ejb


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.