I have problem with scope and object state. It seems to me that the object never keep its state. why? please let me know if you get answer.
Thank you.
A Szena <[EMAIL PROTECTED]> wrote:
A Szena <[EMAIL PROTECTED]> wrote:
Hi All,
I am creating a web service from an existing MBean that I run under
JBoss 4.0. When JBoss starts up, it instantiates an instance of the
MBean. Following is the Axis configuration of my service:value="org.jboss.net.jmx.server.MBeanProvider" />
I have the scope set to "Application" as I want only one instance of
my class created on server side -- I maintain some state and a JDBC
connection pool in my class. My problem is JBoss instantiates an
instance of my class when it starts up and then Axis creates another
instance when it sees the first request for my service.
I want to have just one instance -- how can I get JBoss and Axis to
cooperate so that they share only one instance of my class.
Thanks,
Jim Banks
northex '-at-' gmail.com
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'