Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
Yes ..got your point...using spring its easy though My only question is , can it be accessed using classloader and getResource() Brett Delle Grazie-3 wrote: > > Hi, > > On 17 February 2011 08:36, Captain Cid wrote: >> >> I wish to keep configuration property file o

Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
I wish to keep configuration property file outside my war. Suppose i keep it tomcathome/conf/myfile.properties How can I read it using classloader from my webapp application code. I am not able to access it. I tried using this.getClass().getClassLoader() or even this.getClass().getClassLoader().

Re: Need to create a new thread for async operations

2011-01-09 Thread Captain Cid
09:30 PM, Captain Cid wrote: >> I have moved the thread creation to constructor of a class which is >> instantiated by spring. >> >> Can you elaborate how to spawn thread in it using >> javax.servlet.ServletContextListener ? > > As for ServlerContextListener, p

Re: Need to create a new thread for async operations

2011-01-09 Thread Captain Cid
I have moved the thread creation to constructor of a class which is instantiated by spring. Can you elaborate how to spawn thread in it using javax.servlet.ServletContextListener ? Captain Cid wrote: > > I am having a CXF webservice impl class. In this I want to start a new >

Need to create a new thread for async operations

2011-01-09 Thread Captain Cid
I am having a CXF webservice impl class. In this I want to start a new thread in service impl constructor. This is because I need to run a thread will continuously do some operation in background using database. And I need to be able to stop it when tomcat is shutdown. I was searching net. Found