Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread S B
On Tue, Dec 27, 2011 at 4:06 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 01:33, S B sbl...@gmail.com wrote: On Mon, Dec 26, 2011 at 3:28 PM, Pid * p...@pidster.com wrote: On 26 Dec 2011, at 09:50, S B sbl...@gmail.com wrote: On Sat, Dec 24, 2011 at 6:29 PM, Pid

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread Pid *
On 27 Dec 2011, at 11:16, S B sbl...@gmail.com wrote: On Tue, Dec 27, 2011 at 4:06 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 01:33, S B sbl...@gmail.com wrote: On Mon, Dec 26, 2011 at 3:28 PM, Pid * p...@pidster.com wrote: On 26 Dec 2011, at 09:50, S B sbl...@gmail.com wrote:

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread S B
On Tue, Dec 27, 2011 at 6:55 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/12/27 S B sbl...@gmail.com: On Tue, Dec 27, 2011 at 4:53 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 11:16, S B sbl...@gmail.com wrote: On Tue, Dec 27, 2011 at 4:06 PM, Pid *

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread Pid *
On 27 Dec 2011, at 01:33, S B sbl...@gmail.com wrote: On Mon, Dec 26, 2011 at 3:28 PM, Pid * p...@pidster.com wrote: On 26 Dec 2011, at 09:50, S B sbl...@gmail.com wrote: On Sat, Dec 24, 2011 at 6:29 PM, Pid p...@pidster.com wrote: On 23/12/2011 04:57, S B wrote: On Thu, Dec 22, 2011 at

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread Konstantin Kolinko
2011/12/27 S B sbl...@gmail.com: On Tue, Dec 27, 2011 at 4:53 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 11:16, S B sbl...@gmail.com wrote: On Tue, Dec 27, 2011 at 4:06 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 01:33, S B sbl...@gmail.com wrote: On Mon, Dec 26,

Re: MBean InitialContext() Tomcat query- pls help

2011-12-27 Thread S B
On Tue, Dec 27, 2011 at 4:53 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 11:16, S B sbl...@gmail.com wrote: On Tue, Dec 27, 2011 at 4:06 PM, Pid * p...@pidster.com wrote: On 27 Dec 2011, at 01:33, S B sbl...@gmail.com wrote: On Mon, Dec 26, 2011 at 3:28 PM, Pid *

Re: MBean InitialContext() Tomcat query- pls help

2011-12-26 Thread S B
On Sat, Dec 24, 2011 at 6:29 PM, Pid p...@pidster.com wrote: On 23/12/2011 04:57, S B wrote: On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my

Re: MBean InitialContext() Tomcat query- pls help

2011-12-26 Thread Pid *
On 26 Dec 2011, at 09:50, S B sbl...@gmail.com wrote: On Sat, Dec 24, 2011 at 6:29 PM, Pid p...@pidster.com wrote: On 23/12/2011 04:57, S B wrote: On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com:

Re: MBean InitialContext() Tomcat query- pls help

2011-12-26 Thread S B
On Mon, Dec 26, 2011 at 3:28 PM, Pid * p...@pidster.com wrote: On 26 Dec 2011, at 09:50, S B sbl...@gmail.com wrote: On Sat, Dec 24, 2011 at 6:29 PM, Pid p...@pidster.com wrote: On 23/12/2011 04:57, S B wrote: On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On

Re: MBean InitialContext() Tomcat query- pls help

2011-12-24 Thread Pid
On 23/12/2011 04:57, S B wrote: On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread Konstantin Kolinko
2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager class to lookup datasource it works fine. However when I

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread Pid
On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager class to

Re: MBean InitialContext() Tomcat query- pls help

2011-12-22 Thread S B
On Thu, Dec 22, 2011 at 8:49 PM, Pid p...@pidster.com wrote: On 22/12/2011 10:34, Konstantin Kolinko wrote: 2011/12/20 S B sbl...@gmail.com: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext()

Re: MBean InitialContext() Tomcat query- pls help

2011-12-21 Thread S B
On Wed, Dec 21, 2011 at 12:09 AM, Pid * p...@pidster.com wrote: On 20 Dec 2011, at 15:47, S B sbl...@gmail.com wrote: On Tue, Dec 20, 2011 at 7:00 PM, Pid p...@pidster.com wrote: On 20/12/2011 11:57, S B wrote: MBeanImpl code is packaged as a war and deployed in tomcat along with it's

MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread S B
Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager class to lookup datasource it works fine. However when I create InitialContext() in DBManager

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread Pid *
On 20 Dec 2011, at 11:02, S B sbl...@gmail.com wrote: Hi, I created and deployed an MBean in my tomcat. It uses datasource to connect to DB. Which version of Java? Tomcat? My questions is: When I create InitialContext() inside MBean's constructor and pass the envContext to DBManager

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread S B
Hi, I am using : Server version: Apache Tomcat/6.0.32 OS Name:Mac OS X OS Version: 10.6.8 Architecture: x86_64 JVM Version:1.6.0_29-b11-402-10M3527 Thanks, Ravi On Tue, Dec 20, 2011 at 4:52 PM, Pid * p...@pidster.com wrote: On 20 Dec 2011, at 11:02, S B sbl...@gmail.com

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread S B
Code Sample that fails with exception(I am invoking reload() from jconsole ): class MBeanImpl implements MBeanInterface{ public MBeanImpl{ // code to register this bean. } @Override public void reload() { DBManager.loadFromDB(); } } class

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread Pid
On 20/12/2011 11:29, S B wrote: Hi, I am using : Server version: Apache Tomcat/6.0.32 OS Name:Mac OS X OS Version: 10.6.8 Architecture: x86_64 JVM Version:1.6.0_29-b11-402-10M3527 Thanks, Ravi Please post replies below the question, so the conversation order is

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread Pid
On 20/12/2011 11:46, S B wrote: Code Sample that fails with exception(I am invoking reload() from jconsole ): class MBeanImpl implements MBeanInterface{ public MBeanImpl{ // code to register this bean. } @Override public void reload() {

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread S B
MBeanImpl code is packaged as a war and deployed in tomcat along with it's mbeans-descriptor.xml I am not using ServletContextListener in my code. (mbean registration is done inside constructor). (I am using gmail and hitting reply button on your messages. Please let me know if my messages are

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread Pid
On 20/12/2011 11:57, S B wrote: MBeanImpl code is packaged as a war and deployed in tomcat along with it's mbeans-descriptor.xml I am not using ServletContextListener in my code. (mbean registration is done inside constructor). Right, but what is calling the constructor? (I am using gmail

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread S B
On Tue, Dec 20, 2011 at 7:00 PM, Pid p...@pidster.com wrote: On 20/12/2011 11:57, S B wrote: MBeanImpl code is packaged as a war and deployed in tomcat along with it's mbeans-descriptor.xml I am not using ServletContextListener in my code. (mbean registration is done inside

Re: MBean InitialContext() Tomcat query- pls help

2011-12-20 Thread Pid *
On 20 Dec 2011, at 15:47, S B sbl...@gmail.com wrote: On Tue, Dec 20, 2011 at 7:00 PM, Pid p...@pidster.com wrote: On 20/12/2011 11:57, S B wrote: MBeanImpl code is packaged as a war and deployed in tomcat along with it's mbeans-descriptor.xml I am not using ServletContextListener in my