Sharing information among web apps

2002-05-15 Thread Roshan Paiva

Hi..

This is not a struts related question.. but I need to know if there is a
way of sharing information between web applications. for example I have
a common class.. maybe in the server's classpath .. and one web app
accesses it and sets some values.. and then another web app accesses it
and gets those values.. 

Thanks and Kind Regards
Roshan




RE: Sharing information among web apps

2002-05-15 Thread Stephen . Thompson

Hello,


The only ways I can think of would be:
A persistent store (ie a database). 
You could possibly use a singleton structure IF all the web apps are inside
the same VM.

Anyone have any better suggestions.

Regards,

Stephen.

-Original Message-
From: Roshan Paiva [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 17:14
To: [EMAIL PROTECTED]
Subject: Sharing information among web apps


Hi..

This is not a struts related question.. but I need to know if there is a
way of sharing information between web applications. for example I have
a common class.. maybe in the server's classpath .. and one web app
accesses it and sets some values.. and then another web app accesses it
and gets those values.. 

Thanks and Kind Regards
Roshan



---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

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




Re: Sharing information among web apps

2002-05-15 Thread Rakesh Ayilliath

Thats web services buddy...!!

- Original Message - 
From: "Roshan Paiva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 9:44 PM
Subject: Sharing information among web apps


> Hi..
> 
> This is not a struts related question.. but I need to know if there is a
> way of sharing information between web applications. for example I have
> a common class.. maybe in the server's classpath .. and one web app
> accesses it and sets some values.. and then another web app accesses it
> and gets those values..
> 
> Thanks and Kind Regards
> Roshan
> 
> 

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




RE: Sharing information among web apps

2002-05-15 Thread James Higginbotham

Well, that's web services if you are sharing data across networks,
sharing between technologies that don't integrate well, or are sharing
data that is in XML form within your network. Otherwise, you have the
overhead of setUp and teardown of the HTTP protocol and XML
creation/parsing to share data on the same network and within the same
technology platform. 

If you are within the same VM you could use a singleton data manager -
this isn't clusterable however. If you are within the same network, then
you could use the database and maybe even a CMP or BMP entity bean or
stateful session bean that is managed by the EJB container is a
clustered environment. 

James

> -Original Message-
> From: Rakesh Ayilliath [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 15, 2002 10:33 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Sharing information among web apps
> 
> 
> Thats web services buddy...!!
> 
> - Original Message - 
> From: "Roshan Paiva" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 15, 2002 9:44 PM
> Subject: Sharing information among web apps
> 
> 
> > Hi..
> > 
> > This is not a struts related question.. but I need to know 
> if there is 
> > a way of sharing information between web applications. for 
> example I 
> > have a common class.. maybe in the server's classpath .. 
> and one web 
> > app accesses it and sets some values.. and then another web app 
> > accesses it and gets those values..
> > 
> > Thanks and Kind Regards
> > Roshan
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




RE: Sharing information among web apps

2002-05-15 Thread Cachia . Alex

The theory is that if you are using a J2EE application server, you can put
the classes in your Enterprise Application.  Web applications within the
same Enterprise application see the classes in the Enterprise application.

Across Enterprise applications I don't think is portable.  You'd have to
read up on your application servers class loader policies.

> -Original Message-
> From: Roshan Paiva [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 12:14 PM
> To: [EMAIL PROTECTED]
> Subject: Sharing information among web apps
> 
> 
> Hi..
> 
> This is not a struts related question.. but I need to know if 
> there is a
> way of sharing information between web applications. for 
> example I have
> a common class.. maybe in the server's classpath .. and one web app
> accesses it and sets some values.. and then another web app 
> accesses it
> and gets those values.. 
> 
> Thanks and Kind Regards
> Roshan
> 
> 

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




RE: Sharing information among web apps

2002-05-15 Thread Kevin . Bedell




Here are a couple options:

 - Store the "object" you want to share in a JNDI directory. This can
be on the same host or on a seperate one.
 - Wrap this object as an Entity Bean  in an EJB sever.
 - Wrap access to it in a generic RMI wrapper and have all objects
access it in a single JVM via RMI.

>From the brief description you've laid out, it seems that a JMS queue might
work well. JMS can be used for either publish/subscribe updates to Objects
or for point-to-point communication of an object between applications. It's
not really that hard to use - JBoss, Weblogic and Websphere (at least) have
JMS implementations. Plus you can get persistence of the data using JMS -
if the JVM crashes, the JMS objects can be restored when you restart the
server.

A more traditional approach would be to just store the info in a
database...

FWIW -
Kevin







[EMAIL PROTECTED] on 05/15/2002 11:15:28 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Sharing information among web apps


Hello,


The only ways I can think of would be:
A persistent store (ie a database).
You could possibly use a singleton structure IF all the web apps are inside
the same VM.

Anyone have any better suggestions.

Regards,

Stephen.

-Original Message-
From: Roshan Paiva [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 17:14
To: [EMAIL PROTECTED]
Subject: Sharing information among web apps


Hi..

This is not a struts related question.. but I need to know if there is a
way of sharing information between web applications. for example I have
a common class.. maybe in the server's classpath .. and one web app
accesses it and sets some values.. and then another web app accesses it
and gets those values..

Thanks and Kind Regards
Roshan



---


Copyright material and/or confidential and/or privileged information may be
contained in this e-mail and any attached documents.  The material and
information is intended for the use of the intended addressee only.  If you
are not the intended addressee, or the person responsible for delivering it
to the intended addressee, you may not copy, disclose, distribute,
disseminate or deliver it to anyone else or use it in any unauthorised
manner or take or omit to take any action in reliance on it. To do so is
prohibited and may be unlawful.   The views expressed in this e-mail may
not be official policy but the personal views of the originator.  If you
receive this e-mail in error, please advise the sender immediately by using
the reply facility in your e-mail software, or contact
[EMAIL PROTECTED]  Please also delete this e-mail and all documents
attached immediately.
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales
under company number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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




RE: Sharing information among web apps

2002-05-15 Thread Kevin . Bedell




Forgot my favorite:

 - Host the information behind a web service. This allows the flexibility
of having the webapps be on different machines any and even behind
firewalls. All info travels via http. And you can have apps on other
platforms share the info as well.




[EMAIL PROTECTED] on 05/15/2002 12:29:12 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Sharing information among web apps





Here are a couple options:

 - Store the "object" you want to share in a JNDI directory. This can
be on the same host or on a seperate one.
 - Wrap this object as an Entity Bean  in an EJB sever.
 - Wrap access to it in a generic RMI wrapper and have all objects
access it in a single JVM via RMI.

>From the brief description you've laid out, it seems that a JMS queue might
work well. JMS can be used for either publish/subscribe updates to Objects
or for point-to-point communication of an object between applications. It's
not really that hard to use - JBoss, Weblogic and Websphere (at least) have
JMS implementations. Plus you can get persistence of the data using JMS -
if the JVM crashes, the JMS objects can be restored when you restart the
server.

A more traditional approach would be to just store the info in a
database...

FWIW -
Kevin







[EMAIL PROTECTED] on 05/15/2002 11:15:28 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Sharing information among web apps


Hello,


The only ways I can think of would be:
A persistent store (ie a database).
You could possibly use a singleton structure IF all the web apps are inside
the same VM.

Anyone have any better suggestions.

Regards,

Stephen.

-Original Message-
From: Roshan Paiva [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 17:14
To: [EMAIL PROTECTED]
Subject: Sharing information among web apps


Hi..

This is not a struts related question.. but I need to know if there is a
way of sharing information between web applications. for example I have
a common class.. maybe in the server's classpath .. and one web app
accesses it and sets some values.. and then another web app accesses it
and gets those values..

Thanks and Kind Regards
Roshan



---



Copyright material and/or confidential and/or privileged information may be
contained in this e-mail and any attached documents.  The material and
information is intended for the use of the intended addressee only.  If you
are not the intended addressee, or the person responsible for delivering it
to the intended addressee, you may not copy, disclose, distribute,
disseminate or deliver it to anyone else or use it in any unauthorised
manner or take or omit to take any action in reliance on it. To do so is
prohibited and may be unlawful.   The views expressed in this e-mail may
not be official policy but the personal views of the originator.  If you
receive this e-mail in error, please advise the sender immediately by using
the reply facility in your e-mail software, or contact
[EMAIL PROTECTED]  Please also delete this e-mail and all documents
attached immediately.
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales
under company number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--



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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you