Steps for java command line deployment
1)set the class path to execute java commands - setDomainEnvcmd
2)execute java command for deployment – java weblogicDeployer
Java weblogicDeployer –adminurl t3://localhost:7001 –username weblogic –password weblogic –name benefits –source path\benefitswar –targets ms1,ms2 –deploy
Modes of deployment:
Staging mode: The admin server copies the deployment unit files to the staging directories of target servers and they are deployed using the local copy
This mode is useful when deploying small or moderate size applications
This is default staging mode for managed servers
No stage mode: The deployment units are deployed using the same physical copy which must accessible by the admin server and target servers
This mode is useful when deploying large applications to multiple targets
This is default staging mode for adminservers
External stage: we must copy the deployments units manually to the correct staging directories before deployment
We will use this mode for deployments when we want to manually control the distribution of deployment files to target servers.
Need to clear weblogic cache
What is jar,war and ear files:
Describe two phase deployment:
Mainly two states in two phase deployment:
1)prepare state
2)active state
Deployment first prepares the application across all the target servers and then activates the application in a separate phase
If deployment of an application fails in either of the two phases then the cluster deployment is failed
Define deployment descriptors?
What are the Deployment issues
1)set the class path to execute java commands - setDomainEnvcmd
2)execute java command for deployment – java weblogicDeployer
Java weblogicDeployer –adminurl t3://localhost:7001 –username weblogic –password weblogic –name benefits –source path\benefitswar –targets ms1,ms2 –deploy
Modes of deployment:
Staging mode: The admin server copies the deployment unit files to the staging directories of target servers and they are deployed using the local copy
This mode is useful when deploying small or moderate size applications
This is default staging mode for managed servers
No stage mode: The deployment units are deployed using the same physical copy which must accessible by the admin server and target servers
This mode is useful when deploying large applications to multiple targets
This is default staging mode for adminservers
External stage: we must copy the deployments units manually to the correct staging directories before deployment
We will use this mode for deployments when we want to manually control the distribution of deployment files to target servers.
Need to clear weblogic cache
- shut down the server
- delete the contents of the folder:
- Path of ur \servers\server_name\tmp\wl_user
- Restart the server.
What is jar,war and ear files:
Jar:
java archive files intended to hold generic libraries of java classes ,Resources,Auxillary,files
It is Used for J2ee for packaging EJB’s & client side java applications.
War :
Web archive files intended to contain complete web applications
Mainly for web applications made from servlets , jsp’s supporting classes.
Ear :
Enterprise archive files intended to contain complete enterprise applications
Describe two phase deployment:
Mainly two states in two phase deployment:
1)prepare state
2)active state
Deployment first prepares the application across all the target servers and then activates the application in a separate phase
If deployment of an application fails in either of the two phases then the cluster deployment is failed
Define deployment descriptors?
- It is a configuration file for web application or EJB application which is to be deployed to web or EJB container
- Deployment descriptors describes the deployment settings of an application or module or component
- Where it contains meta data describing the contents and structure of the enterprise beans, and runtime transaction and security information for EJB container.
- It directs a deployment tool to deploy a module or application with specific container options and describes specific configuration requirements that a deployer must resolve.
What are the Deployment issues
- Code issues
- Out of memory issues
- Connection pool issues
- Clear cache issues
- Library class path issues
- Applications are not deployed
No comments:
Post a Comment