Embedded Tomcat

2002-10-07 Thread Patrick Lacson

Does anybody know how what the proper API method(s) are to deploy WAR files 
and to auto expand the WAR file in the webapps directory?  Currently doing a

deployer.install(contextPath, warFile);

Doesn't expand the WAR file in the webapps directory.  I need to do this w/o 
XML files..  Thanks in advance!


-Patrick

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat threading model

2002-10-10 Thread Patrick Lacson


Is there any documentation other than code as to Tomcat's threading model?
I am looking at running Tomcat as an embedded web process in an application
but we've spent a great deal of time and effort researching and developing 
the
threading for the app to make it as realtime as possible( interpreted
language and all).I would hate to bog down our app but neither do I really 
want a
communications layer.I'll read the code if I must but time as always is of 
the essence ( isn't it always ).

If this question is for tomcat-dev, please let me know.  Thank you!



[EMAIL PROTECTED]
Software Developer

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




embedding tomcat + server.xml

2002-10-12 Thread Patrick Lacson

How can I embed tomcat and read the values of server.xml?  I know the 
embedded class expects me to assemble the connectors, engine, etc.. but is 
it possible to just programatically start tomcat with a given server.xml?

-Patrick

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Database Pooling

2002-02-06 Thread Patrick Lacson


 Don't know if anybody answered this yet but try PoolMan at sourceforge.net
-Patrick
  Jason Webber <[EMAIL PROTECTED]> wrote: Does anyone know of a database pooling 
bean or soemthing that will aloow
me to share connections among many jsp pages. Preferably something that
is free.



--
To unsubscribe: 
For additional commands: 
Troubles with the list: 



-
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!


tomcat 5.5 embedded war deployment

2004-12-21 Thread Patrick Lacson
hi all,

i've searched the archives and googled around, to no avail.. i'm
trying to figure out how to deploy a WAR file using tomcat 5.5.4
embedded..

i know there are some issues with the embedded class, like the
createconnector(...) returning null, since it doesn't account for the
http scheme connector.

nevertheless, the embedded.createcontext(...) seems to only account
for directory webapps only, not warfile apps.  in 4.1.x there was the
deployer interface with which the StandardHost implemented.. however,
Deployer no longer exists in 5.5!!

any help would be greatly appreciated,

-- 
Patrick

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



Re: Making a webapp JMX-manageable?

2005-01-02 Thread Patrick Lacson
Here's a link to sample code for integrating tomcat 5.5.4 

http://lacson.name/archives/2004/12/how_to_embed_to.html

--patrick

ps. let me know when you figure out the JMX stuff!


On Sun, 26 Dec 2004 23:50:47 +0100, Michael Schuerig
<[EMAIL PROTECTED]> wrote:
> 
> I would like to make a simple web application manageable. Right now I'm
> at a loss how to do this. My problem is not so much JMX itself, but
> rather how to integrate into Tomcat. Some sample code would be very
> helpful.
> 
> Michael
> 
> --
> Michael Schuerig   The more it stays the same,
> mailto:[EMAIL PROTECTED]The less it changes!
> http://www.schuerig.de/michael/  --Spinal Tap, The Majesty of Rock
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



Re: reload log4j.properties on-the-fly?

2005-01-21 Thread Patrick Lacson
Andy,
Try the following to enable the log4j watchdog:
   public static void configure(final String configFile, final long 
delay, final Logger logger) {
   PropertyConfigurator.configureAndWatch(configFile,delay);
   FileWatchdog watcher = new FileWatchdog(configFile) {
   public void doOnChange() {
   new PropertyConfigurator().doConfigure(
   filename, LogManager.getLoggerRepository()
   );
   if (logger != null) {
   logger.info("Re-read configuration file " + filename);
   }
   }
   };
  
   watcher.setDelay(delay);
   watcher.start();
   }

Andy Kriger wrote:
I am running Tomcat 5.5 with log4j logging (log4j.properties in common/classes).
Is it possible to make changes to the log4j properties and have the
changes reloaded on-the-fly instead of having to restart Tomcat in
order to pick up changes? This would be very useful for those times
debug level logging or specific class logging is needed where
generally that level of logging is not required.
thx
andy
-
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]


Deploying webapps in embedded environment

2005-02-09 Thread Patrick Lacson
hi All,

I have a standalone application server that is using the tomcat
embedded server as the web component.  however, i would like to deploy
multiple web applications to that embedded server without having to
deploy WAR files.  Is there a programatic way of doing this?

There are shared jar libraries across the webapps.  Does anybody have
any code samples on how to do this?

thanks
-- 
Patrick

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



how to harden tomcat?

2005-02-23 Thread Patrick Lacson
Does anybody have any links/documents on how to harden tomcat?

thanks,
-- 
Patrick

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



Re: how to harden tomcat?

2005-02-23 Thread Patrick Lacson
Specifically authoritative articles on how to do this.. would be
greatly appreciated.



On Wed, 23 Feb 2005 11:24:12 -0800, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> Does anybody have any links/documents on how to harden tomcat?
> 
> thanks,
> --
> Patrick
> 


-- 
Patrick

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



Re: how to harden tomcat?

2005-02-24 Thread Patrick Lacson
Thanks Peter.




On Thu, 24 Feb 2005 07:59:59 +1100, Peter Johnson <[EMAIL PROTECTED]> wrote:
> I haven't really come across hardening documents for Tomcat or any Java
> container for that matter. That is probably because Java by design is
> relatively secure as it runs within a virtual machine so it isn't
> possible to escape code etc and breakout into the OS kernel space.
> 
> So basically run Tomcat as a specific user and tune the filesystem
> parameters to only allow access to the resources it needs (standard
> approach for every app Java or not). Now focus all your attention on the
> application code (not Tomcat but the webapp) make sure all database
> interactions are escaped properly etc etc etc
> 
> One thing to look out for would be the use of JNI i.e. native calls. I'm
> not sure if there is a way of preventing someone from packaging a .so in
> a WAR and then loading it in to the app via code to bypass the lack of
> LD_LIBRARY_PATH (on *nix).
> 
> The authentication / authorisation stuff (e.g. realms) is all to do with
> access to webapps.
> 
> If you come across anything else I would be interested to know about it,
> especially if it is to do with securing Java in general.
> 
> PJ
> 
> Patrick Lacson wrote:
> 
> >Specifically authoritative articles on how to do this.. would be
> >greatly appreciated.
> >
> >
> >
> >On Wed, 23 Feb 2005 11:24:12 -0800, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Does anybody have any links/documents on how to harden tomcat?
> >>
> >>thanks,
> >>--
> >>Patrick
> >>
> >>
> >>
> >
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



Tomcat single sign on with other web servers

2005-04-15 Thread Patrick Lacson
hi All,

I read about the Tomcat valve that allows for Single Sign On within
web applications on the same tomcat instance.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

However, is there an SSO solution that will allow Tomcat to SSO with
other out-of-process web servers like WebSphere and IIS?

I've also heard talk of SAML but have not seen any implementations
specifically for Tomcat.

tia,
Patrick

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



Tomcat SSO with other web servers

2005-04-20 Thread Patrick Lacson
Hi All,

What Single-Sign-On strategy do you guys use for Tomcat?  I know the
tomcat docs support SSO within webapps on the same in-process tomcat
instance, but what SSO techniques are you guys using to authenticate
with other webservers like WebSphere and IIS?

Is there a SAML implementation used for Tomcat??  I'm fairly new to
the SSO game so any suggestions, links, whitepapers, etc.. would be
very helpful.

Thanks,
Patrick

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



VM thread dump from windows service

2005-04-22 Thread Patrick Lacson
If I run tomcat as a windows service, what is the best way to get a VM
thread dump?  From a command window it's pretty easy with the
Control-Break command.. what are my options for doing the equivalent
from a running tomcat windows service?

Thanks,
Patrick

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



development environment

2005-04-22 Thread Patrick Lacson
hi All,

I'm curious to what everyone's dev environment looks like.  Here's mine:

hardware
Penium IV 2.0Ghz / 1GB Ram

OS
Windows XP Pro

IDE / Tools
Eclipse 3.x / Emacs

-- 
Patrick

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



Re: VM thread dump from windows service

2005-04-24 Thread Patrick Lacson
This looks promising.  

the application detects VM instances and can pull a thread-dump on
that instance..  i'll try it on monday and see how it goes.

thanks!

On 4/22/05, Anoop kumar V <[EMAIL PROTECTED]> wrote:
> Patrick,
> 
> I am not sure if this will help you but it is worth checking out Stack
> trace at the following link:
> 
> http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> 
> let me know if it helped..
> -Anoop
> 
> On 4/22/05, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> > If I run tomcat as a windows service, what is the best way to get a VM
> > thread dump?  From a command window it's pretty easy with the
> > Control-Break command.. what are my options for doing the equivalent
> > from a running tomcat windows service?
> >
> > Thanks,
> > Patrick
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> Thanks and best regards,
> Anoop
> 


-- 
Patrick

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



Re: development environment

2005-04-25 Thread Patrick Lacson
That's some serious hardware!

Dual 3.6 Xeon 15k rpm drives?!!

I take it your desktop is also your dev DB server?



On 4/22/05, epyonne <[EMAIL PROTECTED]> wrote:
> These are mine (just the two primary machines as I have too many to list
> them all):
> 
> 1. Laptop: Centrino, 512MB RAM, 80GB harddrive, 802.11g, Virtual PC with
> Windows XP Pro and SUSE Linux, Teradata V2R5 database, Oracle 9.2 database,
> Tomcat, Eclipse, Macromedia MX Suite.
> 
> 2. Desktop: Dual 3.6-GHz Intel Xeon, 1GB 400-MHz DDR2 SDRAM, three 36GB
> 15,000-rpm SCSI drives in a RAID 5 array, Virtual PC with Windows 2003, SUSE
> Linux, and Solaris 9 operating systems, Teradata V2R5 database, Oracle 9.2
> and 10g databases, MySQL 4.1 database, MS SQL Server 2005, Ascential
> DataStage, Informatica, JBOSS, Tomcat, Eclipse, JBuilder Enterprise, MS
> Visual Studio.NET 2003, Macromedia MX Suite, and so on.
> 
> Epy.
> 
> 
> - Original Message -
> From: "Patrick Lacson" <[EMAIL PROTECTED]>
> To: "Tomcat User-List" 
> Sent: Friday, April 22, 2005 3:46 PM
> Subject: development environment
> 
> hi All,
> 
> I'm curious to what everyone's dev environment looks like.  Here's mine:
> 
> hardware
> Penium IV 2.0Ghz / 1GB Ram
> 
> OS
> Windows XP Pro
> 
> IDE / Tools
> Eclipse 3.x / Emacs
> 
> --
> Patrick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



Re: VM thread dump from windows service

2005-04-25 Thread Patrick Lacson
perfect.  this works nicely!

thanks,
patrick


On 4/22/05, Anoop kumar V <[EMAIL PROTECTED]> wrote:
> Patrick,
> 
> I am not sure if this will help you but it is worth checking out Stack
> trace at the following link:
> 
> http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> 
> let me know if it helped..
> -Anoop
> 
> On 4/22/05, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> > If I run tomcat as a windows service, what is the best way to get a VM
> > thread dump?  From a command window it's pretty easy with the
> > Control-Break command.. what are my options for doing the equivalent
> > from a running tomcat windows service?
> >
> > Thanks,
> > Patrick
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> Thanks and best regards,
> Anoop
> 


-- 
Patrick

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



Re: VM thread dump from windows service

2005-04-25 Thread Patrick Lacson
Spoke too soon.. :( 

Our tomcat is installed using the tomcat.exe service installer that
ships with the tomcat 4.1.x series.  This "Stack Trace" tool cannot do
a thread dump on the process id of tomcat.exe

-Patrick


On 4/25/05, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> perfect.  this works nicely!
> 
> thanks,
> patrick
> 
> 
> On 4/22/05, Anoop kumar V <[EMAIL PROTECTED]> wrote:
> > Patrick,
> >
> > I am not sure if this will help you but it is worth checking out Stack
> > trace at the following link:
> >
> > http://tmitevski.users.mcs2.netarray.com/stacktrace/app/launch.jnlp
> >
> > let me know if it helped..
> > -Anoop
> >
> > On 4/22/05, Patrick Lacson <[EMAIL PROTECTED]> wrote:
> > > If I run tomcat as a windows service, what is the best way to get a VM
> > > thread dump?  From a command window it's pretty easy with the
> > > Control-Break command.. what are my options for doing the equivalent
> > > from a running tomcat windows service?
> > >
> > > Thanks,
> > > Patrick
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > --
> > Thanks and best regards,
> > Anoop
> >
> 
> --
> Patrick
> 


-- 
Patrick

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



Re: difference between tomcat 5.0 and tomcat 5.5

2005-04-26 Thread Patrick Lacson
I just want to let everyone know that I'm ignoring this post.



On 4/26/05, Mark Thomas <[EMAIL PROTECTED]> wrote:
> Posting multiple copies of the same message and posting the same message
> to both the tomcat-user and the tomcat-dev lists is a sure-fire way to
> make sure your message is ignored by most, if not all, members of this list.
> 
> Please read http://jakarta.apache.org/site/mail.html for guidance.
> 
> Mark
> 
> 
> Remo rahman wrote:
> > can any one plz provide me with information regarding
> > diference between tomcat 5.0 and tomcat 5.5
> > some of the differences that i have noted are
> > 1)no entry of context in server.xml-
> > so where this entry should be made
> > 2)no logger component in server.xml
> >
> > and also related to tomcat manager application
> > what should be the entry when we are Deploying directory or WAR file
> > located on server in
> > 1)Context Path
> > 2)XML Configuration file URL
> > i will be very thankful if any one can help me
> >
> > -
> > 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]
> 
> 


-- 
Patrick

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



Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
hi All!

I'm involved in a project that integrates two disparate web
applications: webapp A is using WebSphere and webapp B is using
Tomcat.

The integration involves Single Sign On, with webapp A being the
primary webapp from which webapp B is launched.  webapp B is launched
as a popup-window.

My question is: how can i ensure that while the user is working on the
webapp B popup, the parent window webapp A, does not time-out?

Thanks in advance!
-- 
Patrick

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



Re: Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
I've considered iframes, but unfortunately not an option for us.

>From what I understand AJAX can make async calls to the HTTP server
from the webapplication only, not on behalf of another.  So if the
popup application is webapp B, and the parent webapp A, how can I call
the webapp A server from webapp B for the keep-alive?


On 5/12/05, Tim Funk <[EMAIL PROTECTED]> wrote:
> The simplest kludge is an iframe that is "hidden" and uses a META refresh.
> 
> Or look at using ajax.
> 
> -Tim
> 
> Patrick Lacson wrote:
> 
> > hi All!
> >
> > I'm involved in a project that integrates two disparate web
> > applications: webapp A is using WebSphere and webapp B is using
> > Tomcat.
> >
> > The integration involves Single Sign On, with webapp A being the
> > primary webapp from which webapp B is launched.  webapp B is launched
> > as a popup-window.
> >
> > My question is: how can i ensure that while the user is working on the
> > webapp B popup, the parent window webapp A, does not time-out?
> >
> > Thanks in advance!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



Re: Sessions and keep-alives

2005-05-13 Thread Patrick Lacson
Interesting solution Tim.. so webapp B would invoke this invisible gif
from webapp A on an interval basis?

-P

On 5/13/05, Tim Diggins <[EMAIL PROTECTED]> wrote:
> Hi Patrick -
> 
> If not an iframe, why not a gif... There's nothing (in principle I
> think*) stopping you having a jsp page that returns a (tiny, invisible)
> gif (with the right mimetype) and with appropriate expires/cache-control
> headers to make sure that it gets "got" each time.  That's the way some
> web-counters work, for example, and I can't see it would create a
> problem... (I don't however know whether you can maintain two session
> cookies at the same time... Would work however with a param-based session).
> 
> --Tim
> 
> * I have done this in similar kinds of situations with python & php, but
> not tomcat.
> 
> Patrick Lacson wrote:
> > I've considered iframes, but unfortunately not an option for us.
> >
> >>From what I understand AJAX can make async calls to the HTTP server
> > from the webapplication only, not on behalf of another.  So if the
> > popup application is webapp B, and the parent webapp A, how can I call
> > the webapp A server from webapp B for the keep-alive?
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



configuration files for war deployments

2005-08-25 Thread Patrick Lacson
hi All,

If I were to deploy my application as a .war file, where do I place
the .properties configuration files?  I know there's the option of
auto-expanding the war file at deployment, but is there a way to keep
the war file unexpanded and provide an external .properties file for
the web app to read from?

Many thanks
-- 
Patrick

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



Re: configuration files for war deployments

2005-08-25 Thread Patrick Lacson
I know that's typically where they go, but if the file is inside the
.war, how is the file going to be configured by the sysadming folks? 
Surely we can't expect them to run

   jar xvf web/WEB-INF/myconfig.properties myapp.war

Is there another location that is external from the .war file itself? 
Ideally I'd like something like


tomcat
  webapps
  myapp.war
  conf
   myapp.properties

is there a way for the webapp myapp.war to read the myapp.properties
in a portable way across web containers (not just tomcat).

thanks much.


On 8/26/05, Phillip Qin <[EMAIL PROTECTED]> wrote:
> Your classpath, i.e. WEB-INF, or classes.
> 
> -Original Message-
> From: Patrick Lacson [mailto:[EMAIL PROTECTED]
> Sent: August 25, 2005 11:32 AM
> To: Tomcat User-List
> Subject: configuration files for war deployments
> 
> hi All,
> 
> If I were to deploy my application as a .war file, where do I place
> the .properties configuration files?  I know there's the option of
> auto-expanding the war file at deployment, but is there a way to keep
> the war file unexpanded and provide an external .properties file for
> the web app to read from?
> 
> Many thanks
> --
> Patrick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> !DSPAM:430de46a9881311912864!
> 
> 


-- 
Patrick

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



Re: configuration files for war deployments

2005-08-27 Thread Patrick Lacson
jdbc config options, common file system info, http urls for external
sites, things of that nature.  we have a complex multitenant system
that needs to be configured by our sysadmins.

granted this app is hosted and not deployed at customers, but
currently we are hosting it on tomcat and later possibly websphere.  i
was wondering if there was a way to do this portably.

how about reading comments from an external url?  has this been done before?

thanks for the comments.



On 8/26/05, QM <[EMAIL PROTECTED]> wrote:
> On Fri, Aug 26, 2005 at 02:16:26AM +0800, Patrick Lacson wrote:
> : I know that's typically where they go, but if the file is inside the
> : .war, how is the file going to be configured by the sysadming folks?
> 
> Webapps are meant to be fairly standalone.  If you require that one be
> configured after it has been compiled, you really have two options:
> 
> 1/ give it to the sysadmins in exploded-dir format so they can tweak the
> files, then just run the app as such
> 
> 2/ create some resource outside of the app (database, file) that the app
> knows to load on startup.
> 
> The downside to #2 is that it still requires your app to have some
> knowledge of the filesystem outside of itself. That inhibits
> portability, not to mention running separate instances of the app (with
> separate configurations, that is).
> 
> Furthermore, to be completely portable across containers (though not
> necessarily operating systems) your app must operate on the
> fully-qualified path to the external file.  There's no such idea as a
> "relative file location" when it comes to webapps.
> 
> 
> What would be in this external config file?
> 
> -QM
> 
> --
> 
> software   -- http://www.brandxdev.net/
> tech news  -- http://www.RoarNetworX.com/
> code scan  -- http://www.JxRef.org/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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



Re: configuration files for war deployments

2005-08-28 Thread Patrick Lacson
thanks for all your suggestions on this.  it seems that an exploded
format is what most people deploy with just to make configuration
easier??

anyway, i'll think through some of these ideas.

much appreciated,
patrick


On 8/27/05, QM <[EMAIL PROTECTED]> wrote:
> On Fri, Aug 26, 2005 at 11:47:54PM -0700, Patrick Lacson wrote:
> : jdbc config options, common file system info, http urls for external
> : sites, things of that nature.  we have a complex multitenant system
> : that needs to be configured by our sysadmins.
> 
> What about having separate config files that can be compiled into the
> WAR at build time?  A little Ant magic, a few replacement rules, and
> you're in business.  Your sysadmins will (hopefully) like that more
> because there would be less for them to do.
> 
> 
> : currently we are hosting it on tomcat and later possibly websphere.  i
> : was wondering if there was a way to do this portably.
> 
> "Portability" is a broad term; you must decide the direction and depth
> of your portability and go from there.  For example: using an external
> file means you have to specify an absolute path.  That's portable
> between containers but not OS flavors.
> 
> 
> : how about reading comments from an external url?  has this been done before?
> 
> URL is also an option, silly me for not having mentioned it.  -but
> again, your app has to somehow bootstrap this information, which means
> you must include the URL in your app at build time.  Furthermore, the
> service that responds to the URL call must be available at all times or
> your webapps won't start. =)
> 
> You could get creative with the URL bit: include the context name as a
> parameter, let the remote service analyze the incoming IP address,
> etc... but that would require some serious planning and design such that
> you don't end up with a nightmare long-term.
> 
> Using an exploded-dir format webapp would require the least work on your
> part.  While it's not techically required by the spec (only WAR files
> are required, when I last checked), I'd doubt there are any containers
> that don't support it.
> 
> Pick your poison.
> 
> -QM
> 
> --
> 
> software   -- http://www.brandxdev.net/
> tech news  -- http://www.RoarNetworX.com/
> code scan  -- http://www.JxRef.org/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Patrick

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