Hi to all, I'm facing the problem to have a class' method triggered when the EJB Container starts.
It's something like what you can find in WebLogic (startup class), is there in BES something similar or a common practice to follow as a workaround ?
Thank you in advance
Roberto
-
Startup class in BES like in WebLogic ? (3 messages)
- Posted by: Roberto Pagnin
- Posted on: November 08 2002 05:43 EST
Threaded Messages (3)
- Startup class in BES like in WebLogic ? by Krishnan Subramanian on November 08 2002 07:57 EST
- Startup class in BES like in WebLogic ? by ashwini iyer on September 30 2004 02:21 EDT
- Startup class in BES like in WebLogic ? by ashwini iyer on October 13 2004 00:06 EDT
-
Startup class in BES like in WebLogic ?[ Go to top ]
- Posted by: Krishnan Subramanian
- Posted on: November 08 2002 07:57 EST
- in response to Roberto Pagnin
Roberto,
If you are starting your EJB Container standalone (say from the command prompt via the vbj.exe or java.exe executable as opposed to starting up ias.exe), the answer is relatively simple. If you aren't a couple of more steps are involved.
First off, refer to the links:
http://info.borland.com/devsupport/appserver/faq/45/ejb/startup_services.html
http://info.borland.com/devsupport/appserver/faq/45/ejb/initialization_code.html
http://info.borland.com/devsupport/appserver/faq/45/ejb/collocating_ejbs_objects.html
The above links though for the 4.5 version are application for the 5.x version as well.
If you want to add your own service to the server process and manage it via the console (start/stop/restart); drop me a mail at krish at borland dot com and I can provide some pointers on how to do this. It is not officially supported though :)
-krish
Borland -
Startup class in BES like in WebLogic ?[ Go to top ]
- Posted by: ashwini iyer
- Posted on: September 30 2004 02:21 EDT
- in response to Roberto Pagnin
where do we set the start up class in Borland Application server
is it to be specified in partition.xml
could anyone give an example -
Startup class in BES like in WebLogic ?[ Go to top ]
- Posted by: ashwini iyer
- Posted on: October 13 2004 00:06 EDT
- in response to ashwini iyer
There is a startup class example in BES version 6
called partition_interceptors the class should implement PartitionInterceptor
and should have module-borland.xml file in META-INF directory
This class is invoked at partition startup.
If the startup code should be invoked after the default-resources.dar is loaded the code should be in the startupPostLoad method.
The other way is to modify the partition.xml but the first one is a better approach.