RE: Create an object that's shared with multiple applications?

2006-08-16 Thread Phil \(waex\)
You can serialize/deseriaize your object(s) in /from an Ms SQLserver blob
field

I can email you some code off list if this is what you are looking forward

Phil
 

-Original Message-
From: 0 8 [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2006 20:14
To: Tomcat Users List
Subject: Re: Create an object that's shared with multiple applications?

Pid,

I'm sure this is a stupid question but...what?  I don't follow.

I can store the object in a database?  I'm limited to SQL Server.
Does that matter?

On 8/9/06, Pid [EMAIL PROTECTED] wrote:
 put it in a database?

 0 8 wrote:
  Hello,
 
  I currently have a JSP application under Tomcat that uses an object 
  created when Tomcat starts up.  The object is created using a class 
  that implements ServletContextListener and I can call the object 
  from my JSPs.  All is well.
 
  Originally, I thought I could have one of these objects per 
  application.  But it turns out I can have only one per server.
 
  I've been doing some searching and looking through the 
  documentation, but I can't figure out how to do this.
 
  How can I create a single object when Tomcat starts up and access 
  that object from multiple web apps?
 
  Thanks,
  Matt
 
  
  - To start a new topic, e-mail: users@tomcat.apache.org To 
  unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/414 - Release Date: 09/08/2006
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8

Hello,

I currently have a JSP application under Tomcat that uses an object
created when Tomcat starts up.  The object is created using a class
that implements ServletContextListener and I can call the object from
my JSPs.  All is well.

Originally, I thought I could have one of these objects per
application.  But it turns out I can have only one per server.

I've been doing some searching and looking through the documentation,
but I can't figure out how to do this.

How can I create a single object when Tomcat starts up and access that
object from multiple web apps?

Thanks,
Matt

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Pid
put it in a database?

0 8 wrote:
 Hello,
 
 I currently have a JSP application under Tomcat that uses an object
 created when Tomcat starts up.  The object is created using a class
 that implements ServletContextListener and I can call the object from
 my JSPs.  All is well.
 
 Originally, I thought I could have one of these objects per
 application.  But it turns out I can have only one per server.
 
 I've been doing some searching and looking through the documentation,
 but I can't figure out how to do this.
 
 How can I create a single object when Tomcat starts up and access that
 object from multiple web apps?
 
 Thanks,
 Matt
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Lung Chan

check jndi ressources

On 8/9/06, Pid [EMAIL PROTECTED] wrote:


put it in a database?

0 8 wrote:
 Hello,

 I currently have a JSP application under Tomcat that uses an object
 created when Tomcat starts up.  The object is created using a class
 that implements ServletContextListener and I can call the object from
 my JSPs.  All is well.

 Originally, I thought I could have one of these objects per
 application.  But it turns out I can have only one per server.

 I've been doing some searching and looking through the documentation,
 but I can't figure out how to do this.

 How can I create a single object when Tomcat starts up and access that
 object from multiple web apps?

 Thanks,
 Matt

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Create an object that's shared with multiple applications?

2006-08-09 Thread Ryan O'Hara

How can I create a single object when Tomcat starts up and access that
object from multiple web apps?

Thanks,
Matt


Have you added listener and listener-class tags in each applications'  
web.xml?


Ryan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8

I did, but then I get more than I get one object created for each application.

I literally just stumbled a mention of a crossContext setting in
Tomcat, but I'm still trying to figure out if that will help here.

On 8/9/06, Ryan O'Hara [EMAIL PROTECTED] wrote:

 How can I create a single object when Tomcat starts up and access that
 object from multiple web apps?

 Thanks,
 Matt

Have you added listener and listener-class tags in each applications'
web.xml?

Ryan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create an object that's shared with multiple applications?

2006-08-09 Thread 0 8

Pid,

I'm sure this is a stupid question but...what?  I don't follow.

I can store the object in a database?  I'm limited to SQL Server.
Does that matter?

On 8/9/06, Pid [EMAIL PROTECTED] wrote:

put it in a database?

0 8 wrote:
 Hello,

 I currently have a JSP application under Tomcat that uses an object
 created when Tomcat starts up.  The object is created using a class
 that implements ServletContextListener and I can call the object from
 my JSPs.  All is well.

 Originally, I thought I could have one of these objects per
 application.  But it turns out I can have only one per server.

 I've been doing some searching and looking through the documentation,
 but I can't figure out how to do this.

 How can I create a single object when Tomcat starts up and access that
 object from multiple web apps?

 Thanks,
 Matt

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]