aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Access deployed archive contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Access deployed archive contents" Watch "Access deployed archive contents" New topic
Author

Access deployed archive contents

Nirav A Mehta
Greenhorn

Joined: Jun 08, 2006
Posts: 5
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

Joined: Feb 27, 2002
Posts: 8919

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.


Groovy
Nirav A Mehta
Greenhorn

Joined: Jun 08, 2006
Posts: 5
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

Joined: Feb 27, 2002
Posts: 8919

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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access deployed archive contents