faraz
faraz

Reputation: 189

How things work after deployement in Application Server?

Till now I have been coding in Java.

Wanted to know - what happens after deployment in Application Server

Suppose I deployed my EAR in AppServer (WebSphere or Jboss and Assuming Deployed Successfully!)

Is there any document or anything ?

Upvotes: 0

Views: 219

Answers (2)

Sergei Chicherin
Sergei Chicherin

Reputation: 2060

I think the implementation of servers vary, so trying to put some basic principles.

  • How request picks some EAR or WAR in 100's of EARs or WARs in Application Server ?

Application Server keeps a list of WAR and bind URL patterns /* . If pattern matched, request goes to the application. Otherwise - error 404. Then application should be in memory, i.e. loaded by using specific classloader. After that methods like doGet called using reflection.

  • How application server look for datasources?

    Application server collected all resources from xml description during startup and changes on request. Next, return it on call. Here is example from Tomcat source of taking datasource from Hashtable environment.

Upvotes: 0

rooftop
rooftop

Reputation: 3027

That is a VERY VERY vague question, I would start here: http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/index.jsp with the instructions for WebSphere Application server v7 "Developing and deploying applications" section.

Upvotes: 1

Related Questions