If it is exploded, then u cant really call it an EAR.
I don't think, in production systems, u have exploded deployments.
So Hunter Ren's suggestion is the best one
"
What I did is, i store the path to the file into a property file, and
the application get this path when it's initialized. I like to put the
templates out of the war or ear file, so that i could update those
templates without redeploy the application.
"
Also, lets say u choose to go the exploded way. If the client has his
own templates or if the client is allowed to modify the existing
templates, would u want the client to be playing around amongst ur
deployed files. Not safe, I would say.


-----Original Message-----
From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 10, 2004 10:44 AM
To: POI Users List
Subject: RE: help: i need to read an xls template file in a web
application

Deploy the application exploded.
And then change it as a regular file using ms-excel provided you have
deployed on a windows system

On a unix system, change it manually on a windows box and then ftp it
over to all servers.

-----Original Message-----
From: Pravin Pillai [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 11:42 AM
To: POI Users List
Subject: RE: help: i need to read an xls template file in a web
application

How would u make changes to the xls template if it is within the ear? 

-----Original Message-----
From: Sharma, Siddharth [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 8:39 AM
To: POI Users List
Subject: RE: help: i need to read an xls template file in a web
application

You do not have to redeploy the application if you make a change to a
resource such as an xls file. You only have to bounce the clone/server,
and that too only if you are caching the stream, rather than reading it
each time you need it.

So placing it in the ear and referencing in the webapp (in the manifest)
seems the best option not only during development, but also
operationally.



-----Original Message-----
From: Hunter Ren [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 11:34 AM
To: POI Users List
Subject: Re: help: i need to read an xls template file in a web
application

What I did is, i store the path to the file into a property file, and
the application get this path when it's initialized. I like to put the
templates out of the war or ear file, so that i could update those
templates without redeploy the application.

Steve wrote:

>in a deployed web application.....
>from a java program on the web server (and also on the app server) I 
>need to read an xls file, as a template.
>any idea as to how to find out the path to the xls file, or to get it 
>as an InputStream?
>THANKS,
>Steve
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to