users@glassfish.java.net

RE: Webapp deployment questions

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 6 Apr 2010 19:58:21 -0400

Good Evening Sean


one way i know how to achieve specific ordering for your class is to tie the classes in your package to a lifecycle module then you can specify loadorder attribute

..where the load order is based on size..

 

--loadorder

an integer value that can be used to force the order in which deployed lifecycle modules are loaded at server startup. Smaller numbered modules get loaded sooner. Order is unspecified if two or more lifecycle modules have the same load-order value


 


http://docs.sun.com/app/docs/doc/820-7689


 



HTH
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.



 



From: Sean.Comerford_at_espn.com
To: users_at_glassfish.dev.java.net
Date: Tue, 6 Apr 2010 12:00:29 -0400
Subject: Webapp deployment questions

So these are probably dumb questions but I’ll ask anyway.. with respect to Glassfish:

Question 1:


Scenario: I have a clustered instance CI1 that only syncs at RESTART.
I deploy two apps to the DAS with CI1 as the target
I restart CI1

Are those apps deployed by CI1 in parallel or is it serial (that is app1 is deployed to CI1, then app 2 is deployed)?

Question 2:
If the answer to 1 is “serial”, is there a way to control the ordering of web app deployment (something similar to how servlet load-on-startup param works) in this scenario?

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454    Cell: 860.329.5842
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1