• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Startup Class application

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Am new to EJB world ..sorry if this is very primitive.
I have written a application that I specify in the WebLogic Server's startup class.
This application opens up a port and listens for the request and sends back a response.
Now My question is all the components are specified to be in some kind of J2EE containers.
If that is the case, where does this class fit into?? Is it present in a appilcation client container???
TIA
:-)
Balaji
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might be able to find a place for it in an EAR file - check the WebLogic docs.
However, a "true" webapp doesn't have a place for the WebLogic startup class - "true" webapps are server-independent (well, theoretically), and the WebLogic startup class is not.
Actually, as far as I've been able to tell, there's nothing that can be done these days in a WebLogic startup class that can't be done with a (for lack knowing better term) "null servlet". Such as servlet has the following properties:
1. Set to run at server startup, not on an HTTP request
2. doGet/doPost &co. simply return "illegal request" status.
3. Spawn server process threads in the servlet's init() method - DON'T run init directly as a server - the appserver may hang while it waits for you to return from init().
This trick is often used to do such things as establish a database connection pool, network connections, or obtain other resources useful to the webapp. You can then store references in the application context - something may be a little more difficult in the WebLogic startup class.
 
reply
    Bookmark Topic Watch Topic
  • New Topic