• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access deployed archive contents

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic