• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a senario where some action thats needs to be done when the application is initializing. So I can do this is ContextInitialized method of contextlistener. But the problem is that, the code which i write in the method is depended on some other deployed application which exists on the same server. So action is successful only when the other application is deployed first. In case the other application is not deployed, the context initialized method fails. So is there any context there is shared among all the applicatoins in an application server or what is the workaround for this.

Thanks
Shashank
 
Rohit Suman
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Persist the data in the database. That will be shared by all application on different server or on same server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!