What is the best way to deploy an application ??

Hi,
Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war)
to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that
too in a Production environment.
I know that we can use weblogic Console to deploy an application BUT if i have
2 unix boxes and each box contains 4-4 clusters(each containing 16-20 managed
servers) .....then i have to open up 2 Admin server consoles to deploy each of
the respective applications and that too deploying these application to 8 clusters.....OR
i can use deploy commad to do the same.
AND if i have like 100 clusters .....then i would have to "deploy" 100 times ......
is there any way that we can BEST AUTOMATE this process.
Thanks a lot.
-sangita

Thanks Tommy. but i would like to know a very important point here: this is using
the weblogic.utility that you just talkd about.
Suppose iam having an ADMIN server that has say 10 clusters and 50 managed servers
underneath to take care.
1 cluster each = 5 managed server
now iam deploying a simple .war file to say a single managed server, i have found
out that it takes a looot of time to get the application deployed.
what do you say about this situation ?
what is the best approach ??????
-sangita
"Tomy Mathew" <[email protected]> wrote:
>
>
To deploy the application from the command prompt in WebLogic 6.1 you
use the
following command
$JAVA_HOME/bin/java -cp $WL_HOME/weblogic.jar weblogic.deploy -port $WEBLOGIC_PORT
-host $WL_HOST_IP $WEBLOGIC_CMD $WEBLOGIC_PWD -component $WL_Server_NAME:$WL_Server_NAME
$WL_APPLICATION_NAME YourApplication.war
$WEBLOGIC_CMD sould be DEPLOY for the first time deployment and UPDATE
for redeployment
For deploying in a cluster you better create a shell script which call
the above
command with different cluster ip address as a parameter.
Tomy
"sangita" <[email protected]> wrote:
Thanks Rob for your expertise advise. I would check to see wls8.1's
ANT tasks.....for
wls6.1, i would guess shell scripts to be a better option for us.
thanks again.
Rob Woollen <[email protected]> wrote:
If you're using 8.1, then it's pretty nice to use ant for
configuration/deployment/starting and stopping servers etc. There's
a
wlconfig task to do configuration, wldeploy to deploy applications,
wlserver to start/stop servers.
For 6.1, it's probably not a huge win to use ant. It's up to you.
If
you're more comfortable using shell scripts, that's certainly a
reasonable route.
-- Rob
sangita wrote:
Thanks Rob.
But all the stuff that ANT can do for me FOR DEPLOYMENT (ONLY) .....ican do it
from a simple shell script too.
And i understand of ANT's cross-platform environment and usage of
JAVA
.....but
can i use ANT to do something like CONFIGURING my wls6.1 managed
servers/clusters/creating
managed servers/db connection pools ......and all the other configurationthat
i do from wls console(or manually) ....????
and if yes, do you know of any examples, suggestions, ideas ?????
basically, if i need to sell(?) ANT to my juniors ......what are
the
basic reasoning
i can put forward....keeping in mind that these guys use wls6.1 &
wls8.1......and
these guys do CONFIGURATION and DEPLOYMENT only.
sorry for asking, may be these silly questions.
thanks, sangita
Rob Woollen <[email protected]> wrote:
sangita wrote:
Thanks Rob.
Rob, do you still consider or suggest using ANT for deploying say
20
applications
on a 10 clustered environment.Yes
do you see any advantages using [ANT + weblogic.deploy]..... over
simply
using
weblogic.deploy utility ???Yes. ANT essentially gives you a cross-platform environment that
allows
extensibility through java. It's very powerful.
-- Rob
-sangita
Rob Woollen <[email protected]> wrote:
sangita wrote:
Rob,
I have found the answer for my question #1 ...this is the URL:
http://edocs.bea.com/wls/docs81/admin_ref/ant_tasks.html
iam still hoping to hear back from you for #2, #3
thanks a ton.
"sangita" <[email protected]> wrote:
Thanks Rob.
quick question:
1) do you know of any example which illustrates the use of ANT
wrapper....or
please
direct me to a URL where i can find some documentation about
it.
2) does this ANT wrapper has any advantages over using weblogic.Deployer
utility
??If you're doing deployment via ant, then it's a bit more convenientto
use <wldeploy> rather than invoking a raw <java> process, but
fundamentally it's just a wrapper around weblogic.Deployer
3) i would certainly check to see weblogic.deploy for wls6.1
....can
i use ANT
for deployment purpose in wls6.1 ?You'll just need to wrap it in a <java> task
See:
http://ant.apache.org/manual/CoreTasks/java.html
-- Rob
Rob Woollen <[email protected]> wrote:
If you were using WLS 7.0 or later, you could use weblogic.Deployer.
If
you were using 8.1, you could use wldeploy which is an ant task
wrapper
for weblogic.Deployer.
In WLS 6.1, you'll have to use weblogic.deploy which is a bit
cumbersome, but it's still certainly possible to script deployment.
-- Rob
sangita wrote:
Hi,
Please advise me how to automate in a best way to Deploy
10
different
applications(.ear/.war)
to 10 different Clusters(containing 40 Managed servers) in
wls6.1......and
that
too in a Production environment.
I know that we can use weblogic Console to deploy an application
BUT
if i have
2 unix boxes and each box contains 4-4 clusters(each containing
16-20
managed
servers) .....then i have to open up 2 Admin server consoles
to
deploy
each of
the respective applications and that too deploying these applicationto 8 clusters.....OR
i can use deploy commad to do the same.
AND if i have like 100 clusters .....then i would have to "deploy"100 times ......
is there any way that we can BEST AUTOMATE this process.
Thanks a lot.
-sangita

Similar Messages

  • What is the best way of deploying a jsp and bc4j aplication

    Hi
    I would like to know what is the best way of deploying a jsp and
    bc4j aplication in ias 9i.
    thanks in advanced
    rjc

    In the page I simply referenced the facescontext directly... no need for a custom servlet.
    public void createcookie() {
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletResponse resp = (HttpServletResponse)fc.getExternalContext().getResponse();
    Cookie userCookie = new Cookie("cookiename", "cookievalue");
    userCookie.setMaxAge(-1);
    userCookie.setMaxAge(3600);
    resp.addCookie(userCookie);
    return null;
    public String readcookie() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    Map cookiemap = ec.getRequestCookieMap();
    if (cookiemap != null) {
    Cookie cookie = (Cookie) cookiemap.get("cookievalue");
    return cookievalue;
    For reference I could not get getCookies() method of HttpServletRequest to work.. it would only return JSESSIONID.

  • What is the best way to deploy/update custom security realm classes to WLS 6.0?

    From the WLS 6.0 console, I see that I can specify the Java class that
    implements my custom security realm but I am wondering what is the best way
    to deploy/update this code. I don't see a way to do this from the console.
    Does this mean that I have to manually copy the class files over that
    implement my custom security realm?

    Thanks Danut,
    A jar file seems to be a good way to package it up but it sounds like it
    still needs to be manually copied to each Weblogic server install directory
    post-installation and whenever it is updated. I thought it would be nice to
    be able to deploy/update the custom security realm by uploading it through
    the Console just as you can with web applications and EJBs.
    Brian
    "Danut Prisacaru" <[email protected]> wrote in message
    news:3aba2db0$[email protected]..
    You have to have your Custom Realm class in the class path. I usually havea
    jar file with all the Custom Realm classes and that jar I copy it in thelib
    folder. Then I modify "startWebLogic.cmd" and I add to the classpath
    ".\lib\CustomRealm.jar"
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
    >
    Be aware that in order to have you custom realm besides creating thecustom
    realm using the console you also have to create a custom caching andchoose
    that one as your default caching realm.
    Here is how the security settings are looking in my "config.xml"
    <CustomRealm Name="CustomRealm"
    RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
    <CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
    Name="CustomCachingRealm"/>
    <Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
    Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <Security GuestDisabled="false"
    Name="mydomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm"/>
    Danut

  • What is the best way to port complete applications from DEV - Test - PRD?

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    Hi AJ,
    Nice PDF !
    Though the PDF does give a basic idea as to how we can go about the deployments using ANT and EM in Test and Prod, it doesn't really give extensive details. For eg. ANT would obviously need huge ANT scripts to be written for migrations to multiple Test servers, etc.
    Similarly, when we talk about EM, does it mean each of the services has to be manually deployed on Production ?
    I am sure we would be looking more towards a fully automated solution. No ?
    Best Regards
    Nitin

  • What is the best way to port complete applications from DEV - Test - PROD

    Hi,
    One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
    What is the best way to port complete applications from DEV -> Test -> PROD ??
    Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
    Best Regards

    It has been discussed here in detail-
    SOA 11g  Composite Deployment across multiple Instances: Best Practice
    since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?You may use deployment plan for this purpose. For access control, you may use Role Based access of Weblogic and EM. Please refer -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10226/appx_roles_privs.htm#BABIHDFJ
    Regards,
    Anuj

  • What is the best way to deploy application that uses web services?

    Hi all,
    I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
    Here's a little background:
    We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
    We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
    We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
    Thanks!
    Edited by: doubleEspresso on Jan 10, 2008 8:06 AM

    >
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
    There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
    >
    ..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
    <http://forum.java.sun.com/category.jspa?categoryID=20>
    Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
    <http://forum.java.sun.com/forum.jspa?forumID=331>
    This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
    <http://forum.java.sun.com/forum.jspa?forumID=550>

  • What is the best way to deploy a cert office wide

    We need to find a way to deploy a cert to 400 systems. What would be the best way to go about this please and thanks

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • What is the best way to deploy a java application ??

    Hi,
    I have a question about "deploying" a java application on to a weblogic server.
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war) to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that too in a Production environment.
    I know of using Weblogic Console OR the "deploy" utility to do so ......BUT if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • What is the best way to deploy Web Dynrpo DC without NWDI?

    Hi, SDN Fellow.
    We are currently developed our WDP DC without using NWDI (we are just creating local DC of the Web Dynpro project.)
    Now, we need to send our deployment archive to the sys. admin team to transport them to Dev from Sandbox.
    I just wonder should I just deploy the ear file that located in the .../dc_name/gen/default/deploy/xxx.ear by using SDM? Or there is a more proper way for us to deploy our WDP DC works?
    I know that I can just set up the J2EE engine of the Dev / QA box and deploy them, but it doesn't seems like the right procedure to do so.
    Please suggest, thanks.
    Thanks.
    Kent

    Hi, Maksim
    > >>but it doesn't seems like the right procedure to do
    > so.
    What I means it does not make sense is deployment through NWDS.
    System admin usually will not install a NWDS to deploy the ear, but they will use SDM to deploy the ear files.
    I just need to verify there is the best practice to do so.
    Thanks for your answer.
    Kent

  • What is the best way to deploy an applet using iWeb

    I have an applet with a very standard applet tag.
    I don't see any way to deploy that directly.
    So instead, I just create an html snippet widget, and paste in the applet tag.
    Very simple standard stuff
    <applet codebase="xx" code="xx.class" etc>
    <parameter ...>
    <parameter ...>
    etc
    </applet>
    iWeb has not seen my applet yet, so it is just a bunch of html code.
    The problem is that it is hanging forever.
    Apparently it is throwing some kind of exception.
    Give it a try and you will see.
    Whatever shall I do to get my applet deployed?
    Thanks, Victor

    I have an applet with a very standard applet tag.
    I don't see any way to deploy that directly.
    So instead, I just create an html snippet widget, and paste in the applet tag.
    Very simple standard stuff
    <applet codebase="xx" code="xx.class" etc>
    <parameter ...>
    <parameter ...>
    etc
    </applet>
    iWeb has not seen my applet yet, so it is just a bunch of html code.
    The problem is that it is hanging forever.
    Apparently it is throwing some kind of exception.
    Give it a try and you will see.
    Whatever shall I do to get my applet deployed?
    Thanks, Victor

  • What is the best way of persisting Web-application related data?

    My web-application needs to persist some data (a set of XML documents), i.e. save them so that they can survive server or application shutdowns. Saving those documents as files in server's filesystem does not seem to be convinient to me because the container may run the application directly form WAR and it is impossible (maybe I am wrong?) to modify files inside WAR archive. Forcing WAR extraction requires container reconfiguration and is container implementation dependent, which is not acceptable.
    What would be ideal is some individual persistent storage bound to an application which does not require any external enitites (external databases etc). And this storage should not depend on any particular implementation of servlet container.
    So is there a way to do something like this?

    Saving it to disk seems like your only alternative.
    Presuming you have at least some control over the machine where it is deployed to, you could specify a directory to save the xml documents to (ie not one under your web application structure) This would get around the limitations of the WAR file not being extracted.
    Make the directory an environment variable/init parameter in your web.xml file.
    All you need then is a directory on the server that you have write permissions to.
    Ok it requires more setup when deploying the web application, but I thinks its about the only way to accomplish what you want to do.

  • What is the best way to exit an application?

    Hi
    In many examples I have seen an eventlistener used to exit an applicaiton when the user closes the window. However I recently came across the method:
    setDefaultCloseOperation(EXIT_ON_CLOSE)
    Is this a better way to close an application? What are the pros and cons of each way and what is the most widely used in the industry.
    Thanks

    If you dont have anything special to do other than exit, this method would be ok. but if you want to save some properties before exit.. or want to ask user to save before closing or some other confirmation messages, closing network, database connections, etc etc, then you have to use event listener.

  • What is the best way to deploy Lion over network

    Hi All...
    Ok... so I've created a boot disk using the image I downloaded from the app store..  (the one inside the application)
    and created a netinstall image using package maker and siu.  I transfer that image to the deployment folder om the server... and all seems to be working
    fine on the client side... except that right before installation I get an error saying the image is missing a component... Server...
    Does anyone know why I would get an error saying im missing the Server in my image when I'm not trying to install the server?
    Should I try creating a new boot disk and image in siu?
    Oh... and im burning the image to a disk... and using that as my source in siu... if that helps.
    Thanks for any help

    Thanks Danut,
    A jar file seems to be a good way to package it up but it sounds like it
    still needs to be manually copied to each Weblogic server install directory
    post-installation and whenever it is updated. I thought it would be nice to
    be able to deploy/update the custom security realm by uploading it through
    the Console just as you can with web applications and EJBs.
    Brian
    "Danut Prisacaru" <[email protected]> wrote in message
    news:3aba2db0$[email protected]..
    You have to have your Custom Realm class in the class path. I usually havea
    jar file with all the Custom Realm classes and that jar I copy it in thelib
    folder. Then I modify "startWebLogic.cmd" and I add to the classpath
    ".\lib\CustomRealm.jar"
    set
    CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\CustomRealm.jar;
    >
    Be aware that in order to have you custom realm besides creating thecustom
    realm using the console you also have to create a custom caching andchoose
    that one as your default caching realm.
    Here is how the security settings are looking in my "config.xml"
    <CustomRealm Name="CustomRealm"
    RealmClassName="Custom.appserver.weblogic.security.CustomRealm"/>
    <CachingRealm BasicRealm="CustomRealm" CacheCaseSensitive="true"
    Name="CustomCachingRealm"/>
    <Realm CachingRealm="CustomCachingRealm" FileRealm="wl_default_file_realm"
    Name="wl_default_realm"/>
    <FileRealm Name="wl_default_file_realm"/>
    <Security GuestDisabled="false"
    Name="mydomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm"/>
    Danut

  • What is the best way to deploy the iPad in bulk into a business?

    We are starting to bring in the iPad into our company so we are looking for a way to easily deploy them to a large group of people.

    Hard to answer without more info about your business and needs but start here.... http://www.apple.com/ipad/business/resources/

  • What is the best way to deploy Flash in the Enterprise?

    We would like to deploy Flash Player in our corporate environment.
    Users are NOT administrators of their local machines, so just installing it on the image and leaving it is not an option.
    Telling users not to click the large Adobe Flash Player has an update splash screen is also not an option.
    1) How do you install Flash Player in an Enterprise environment?
    Please include answer with a guided installation document, as the SCUP document is not end-to-end.
    2) How do you disable Flash Player update notifications?
    Please advise,
    Andy

    Hi,
    Thanks for this, but I am looking for a enterprise class solution: i.e. installing hundres of machines with automation and reporting.  We are already aware of the MSI, but the automatic installation recently started failing since we migrated to Windows 7 and users are non-admins.  We also plan on keeping UAC turned on, so running the MSI with the SYSTEM account in a script fails.
    Again, we are looking for an end-to-end solution, possibly using SCCM and SCUP.  In essence, documentation and web chatter points to being able to:
    1) automatically have SCUP poll Adobe.com for updates
    2) automatically have SCUP publish it to SCCM when available
    3) push it out to WSUS as an update
    4) clients automatically update it as part of Windows Update.
    I have the bits and pieces, but have failed putting it all together.
    I know I am not the only person administrating a large company and uses Flash.... help!

Maybe you are looking for