Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access deployed archive contents

 
Nirav A Mehta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I my quest to understand J2EE and its possibilities, I went through may docs but couldn't find answers to some basic concepts. Please answer these:

1. What is termed as a deployable object? Is it an archive i.e. a WAR, EAR, etc. Or something that comes to being after deployment of an archive?
2. Can I create my own archive type?
3. Can I access some resource of another deployed web archive? e.g. f I have an XML descriptor in another WAR deployed on the server, how can I access it?
4. Would all this be application server specific or could it be made portable?

Nirav
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. What is termed as a deployable object? Is it an archive i.e. a WAR, EAR, etc. Or something that comes to being after deployment of an archive?

Yes it is archive file which you deploy.

2. Can I create my own archive type?
No. It must be recognizable by the app server.

3. Can I access some resource of another deployed web archive? e.g. f I have an XML descriptor in another WAR deployed on the server, how can I access it?

Why would you need to access deployment descriptor of another WAR file.The DD is for server to understand. If you are asking if you access file in an external jar you may have to use java JAR apis.

4. Would all this be application server specific or could it be made portable?
Each deployable jar file has app server specific XML.
 
Nirav A Mehta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:

Why would you need to access deployment descriptor of another WAR file.The DD is for server to understand. If you are asking if you access file in an external jar you may have to use java JAR apis.


What I mean is it could be any file. Could be an image or .properties file in another war file deployed on the server.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nirav A Mehta:


What I mean is it could be any file. Could be an image or .properties file in another war file deployed on the server.


What do you mean by "Could be an image or .properties file in another war file deployed on the server"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic