Total Pageviews

Tuesday, January 26, 2016

weblogic difference between web.xml and weblogic.xml


these both files are  deployment descriptors for web applications and they exists in WEB-INF
these files define run-time environment, mapping of URL to servelets and JSPs, applications default welcome and error pages, setting up context root for the application, Specifying Java EE security constraints and defining work managers for applications


web.xml

it have following:
Servelets registration and initililization parameters.
JSP registration and tag libraries.
Welcome file lists and error pages.
Security constraints and roles.
EJB references.
Resources.


weblogic.xml
This file have information specific to weblogic.

Application root context path.
Security role mappings.
Session settings and Clustring.
References to shared libraries and server resources(data sources,EJBs and others).
Virtual directories, work managers and threading.
JSP compiler option.

4 ways of deploying applications at weblogic

you can use 4 ways of deploying application to weblogic

1. using Admin console
2. using weblogic.WLST
3. using weblogic.Developer
4. autodeploy

Monday, January 25, 2016

weblogic configuring on-demand application deployment


in weblogic you can deploy some application when user is requesting for it. while using this option specified all the application on that domain will be deployed when Admin server started. using this option will consume more resources and weblogic will take longer to start but all the application will be deployed once it is started

this property called "Enable on-demand deployment of internal application". this option is under domain --> General. by default it is "checked" you can "encheck" it and save it in order to enable on-demand application deployment.

you can also set this property thru wlst command(if you need to know how to run wlst command read oracle blog)

here at some short steps

java weblogic.WLST

connect()
edit()
startEdit()
go to domain --> serverConfiguration and run below this command
cmo.setInternalAppsDeployOnDemandEnabled(false)

Weblogic Autodeploy application configuration


this process is used for developer in order to save time it takes to deploy application during development process. once you put the application in Autodeploy directory it will automatically deploy after 3 seconds.

1. Server should not be in production mode. you can check after clicking on domain name and going into Configuration--> General (check your servers configuration thru console, to change this value go to config.xml and search for "production and make this value as false )

2. create folder with same name as application under autodeploy directory.

3. application should be in floated formate(unzipped).

4. create AUTODEPLOY (it can be empity file) file under WEB-INF directory.

After creating AUTODEPLOY file weblogic will automatically pickup after 3 seconds. if you made changes at your application just touch AUTODEPLOY file again to refresh timestemp. it will automatically deploy this application.