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

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 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

  • 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 learn SAP Java

    Hi,
    I would like to understand basic principles of SAP Java, to check how it is working, primarily J2EE components like JMS, WS, EJB, Persistence... As I'm ABAP and PI consultant, I see this as my next step, sure I'm not aiming to be experienced Java developer beacuse this would require much more time than I have now.
    So far I read "Foundations of Java for ABAP Programmers" but I think that this is just a begining. I want to learn more stuff about SAP J2EE    and J2SE is for me, let say, clear.
    Also I start reading "Java Programming With The Sap Web Application Server" as my next book about SAP Java, but it is not quite that I don't like this book, it is somehow not interested for me.
    So I would like to hear your suggestions what is the best way or the best approach to learn SAP Java. I see this as future help for one ABAP and PI consultant. Also I've done some Mapping developments for PI (SAX and DOM parser), so really think for me to know Java better it will be "bigger plus" for me.
    kr
    mario

    I will suggest you SAP Elearning section on SDN about Java Development.
    Below is the link....
    http://www.sdn.sap.com/irj/scn/java-elearning?dprpp=all
    It contains lot of practical examples which will keep you interested as well..
    But you wil lhave to be very selective there on whaich topic you wish to kick start.........
    For example there is one called :
    Java for ABAP Programmers
    ABAP Objects for Java Developers
    SAP Java World for ABAP Programmers
    Java Mapping in Exchange Infrastructure

  • 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's the best way to know whether an application is running for the first time? (C#)

    I seen suggestions like making a registry entry, or making an entry in the application specific settings file. But what's the best practice? I want to do some custom tasks if that is a first run.
    Also, I am deploying my application using per machine MSI installer. So un-installation not deleting the user specific config files that's get created under AppData.
    Thanks Prasad

    Hello,
    Whenever possible I prefer to avoid the registry. The following works once per user where we see if a specific folder exists or not, if it does not then do first time initialization work then set a setting in the project which causes a user config file to
    be written to the location for storing user settings per user. 
    You first need to create a setting in the project, in this case I did
    var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
    string configPath = config.FilePath.Replace("\\user.config", "");
    if (System.IO.Directory.Exists(configPath) )
    Console.WriteLine("This is not the first time");
    else
    // Do one time setup here
    Properties.Settings.Default.FirstTimeValue = "1";
    Properties.Settings.Default.Save();
    Console.WriteLine("This was the first time");
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • What is the best way to learn about java?

    What is the best and cheapest way to learn java?

    I also am a Newbie to the Java language and am trying to get my head around it. I guess it all depends upon how much experience, and at what level, you have with programming in general. I have a good understanding of what my University tutor called "sequential logical thought" but I must confess this Object Oriented approach is, at first, most odd. However the Sun tutorial :
    http://java.sun.com/docs/books/tutorial/java/TOC.html
    : is the one I use the most. If I don't understand a specific computing term then I look it up at :
    http://www.webopedia.com/
    : which is a very good online encyclopedia of computing terms.
    There is also :
    http://www.joegrip.com/
    : which is an online "interactive" tutorial (you have to pay)
    I would advise against rushing out and buying a book until you have spent a whole day trolling through the 'net and seeing what it has to offer . There is a lot out there. The problem is wading through all the nonsense until you find what you're looking for.
    Good luck

  • What is the best way to distribute your swing application:

    I have developed a application that connects to data base and it containes the functionality to manage the invoices and receipts system, but i am scare to distribute it by building it to jar using the netbeans build option , it runs fine but when i extract the jar file back i m scare that any one can easily decompile it using JAD and get the database credentials , please tell me the best way to distribute the application so that reverse engineering the application will not be possible please tell me that :(

    Decompiling is unnecessary. All somebody would have to do would be to sniff the transmissions between your application and your database; the credentials are sent unencrypted.
    So the problem is not that somebody could find out the database credentials, the problem is that your database exposes itself to the internet. And if anybody does find the credentials through any method at all, then you've got a problem.
    And by the way if you distribute your application with the credentials hard-coded, then that makes it difficult for you to change the password if it does get compromised, because then nobody can use your application any more. This is a bad thing because one of the first things you should do when your system is compromised is to change the access password.
    So really the best way to distribute this application would be to write it so that it connects to an application which runs on your server. This server application would communicate with the database, which would make it unnecessary for the database to be visible from the internet. Your Swing application would communicate with the server application via some kind of web service protocol.

  • 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 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

  • HP Officejet Pro 8500 Wireless All-In-One Printer A909g

    My current firmware is: DLM1FN1344AR. I am due for a firmware update. I still am using my original 32-bit Sony PC (soon to be put out to pasture), and there are now 2 newer 64-bit PCs which will remain on the network. Should I wait to update the firm

  • What kind of lock should I get for my Macbook?

    Hi! I'm going off to college in a couple months and I want to be able to lock my MacBook Pro 13" to a desk or something in my room so it's secure while I'm away. I've looked at a couple Kensington locks which have had mixed reviews. I'm just wonderin

  • Change Message Control for Customer Master data

    Hi Friends, I have to choose/populate a message when the user is about to create an already existing customer. In SPRO --> Financial Accounting --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for cr

  • Vendor to vendor entry

    hi, The case is wrong entry done  in vendor a/c instead of entered in one vendor  entry made to other vendor a/c now how to clear it & that entry related opening balance related to initial upload Because while passing JV thorough fb01 hitting error o

  • Why can't I create multiple libraries? Shift & Click method is not working

    I am trying to create another library on my PC. However, when I try the suggested method +(from the Start menu, choose All Programs > iTunes > iTunes)+ I do not get a dialog or option to create a new library--my existing library just opens up. What m