Re: Different data-sources for different applications?

2000-08-17 Thread Anders Bengtsson

Karl Avedal wrote:
 
 Hello Anders,
 
 I see you've gotten good answers already, just wanted to point that if you want
 to use different defaults per application rather than per ejb, you can set the
 default-data-source attribute in the orion-application.xml file.

Yeah, there lots of good and quick feedback on this list. Thanks,
everyone!

/Anders

A n d e r s  B e n g t s s o n[EMAIL PROTECTED]
http://www.lecando.com




RE: Different data-sources for different applications?

2000-08-16 Thread Rick Bos

You can modify this in orion-ejb-jar.xml.

This file is found in orion/application-deployments/your-app/ejb

You can copy this file to /ear/ejb/orion/orion-ejb-jar.xml and modify it
there.

( where ear is your development directory and ejb is your Enterprise Java
Bean directory).

Hope this helps.






 -Original Message-
 From: Anders Bengtsson [SMTP:[EMAIL PROTECTED]]
 Sent: August 16, 2000 10:28 AM
 To:   Orion-Interest
 Subject:  Different data-sources for different applications?
 
 Hello,
 I'm looking for a way to have different data-sources defined for
 different applications, installed in the same Orion.
 
 The parts of my applications that uses data-sources itself can easily be
 configured to use a different JNDI name for each application.
 But I haven't found a way to control what data-source Orion uses for CMP
 beans. They seem to use some constant JNDI name like "jdbc/DefaultEJBDS"
 to lookup their data-source.
 The basic problem seems to be that data-sources.xml is a global
 configuration, for all the applications in the server.
 Is there some way to come around this problem, like some way to select
 the datasource for each application?
 
 /Anders
 
 A n d e r s  B e n g t s s o n[EMAIL PROTECTED]
 http://www.lecando.com




Re: Different data-sources for different applications?

2000-08-16 Thread Anders Bengtsson

Rick Bos wrote:
 
 You can modify this in orion-ejb-jar.xml.
 
 This file is found in orion/application-deployments/your-app/ejb
 
 You can copy this file to /ear/ejb/orion/orion-ejb-jar.xml and modify it
 there.
 
 ( where ear is your development directory and ejb is your Enterprise Java
 Bean directory).
 
 Hope this helps.

Thanks, that will solve most of my problems!

The remaining problem is that this would require a different .ear file
for each deployment. I'm trying to deploy the same application many
times on the same Orion, with different databases, to separate our
different customers.
Ideally it would be possible to change the data-source in some
deployment config outside of the .ear. But I guess I can simply solve
this by writing some small script to modify the .ear for each
deployment.

/Anders

  The basic problem seems to be that data-sources.xml is a global
  configuration, for all the applications in the server.
  Is there some way to come around this problem, like some way to select
  the datasource for each application?


A n d e r s  B e n g t s s o n[EMAIL PROTECTED]
http://www.lecando.com




Re: Different data-sources for different applications?

2000-08-16 Thread Robert Krueger

At 21:37 16.08.00 , you wrote:
Robert Krueger wrote:
 
  The remaining problem is that this would require a different .ear file
  for each deployment. I'm trying to deploy the same application many
  times on the same Orion, with different databases, to separate our
  different customers.
 
  we're doing exactly that. just keep one ear and put the orion deployment
  files in a different place (you can specify that in server.xml in the
  application tag. that way you only have to change the orion deployment
  files and keep one ear.

Aha, now I get it! Thanks!

That should make it possible to deploy a new virtual server in a few
minutes, including the time to configure the DNS server. Quite
impressive!..

yes, but one thing you should not underestimate is the resources orion uses 
for each application. we have a very similar concept for an online store 
app (deploy it once per customer). but this can become a problem in terms 
of memory usage and server startup time (although the latter has improved a 
lot recently) if the application is large. we really underestimated that. 
just do some tests (deploy your app n times) look at memory usage and do 
the math if it this approach scales well enough for your requirements.

regards,

robert


/Anders
_
A n d e r s  B e n g t s s o n [EMAIL PROTECTED]
http://www.lecando.com

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Re: Different data-sources for different applications?

2000-08-16 Thread Karl Avedal

Hello Anders,

I see you've gotten good answers already, just wanted to point that if you want
to use different defaults per application rather than per ejb, you can set the
default-data-source attribute in the orion-application.xml file.

Regards,
Karl Avedal

Anders Bengtsson wrote:

 Rick Bos wrote:
 
  You can modify this in orion-ejb-jar.xml.
 
  This file is found in orion/application-deployments/your-app/ejb
 
  You can copy this file to /ear/ejb/orion/orion-ejb-jar.xml and modify it
  there.
 
  ( where ear is your development directory and ejb is your Enterprise Java
  Bean directory).
 
  Hope this helps.

 Thanks, that will solve most of my problems!

 The remaining problem is that this would require a different .ear file
 for each deployment. I'm trying to deploy the same application many
 times on the same Orion, with different databases, to separate our
 different customers.
 Ideally it would be possible to change the data-source in some
 deployment config outside of the .ear. But I guess I can simply solve
 this by writing some small script to modify the .ear for each
 deployment.

 /Anders






RE: Different data-sources for different applications?

2000-08-16 Thread Mike Cannon-Brookes

Perhaps the best way to do this is to deply the same EAR, but just change
the WAR over after you've deployed it?

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Neville
Burnell
Sent: Thursday, August 17, 2000 8:26 AM
To: Orion-Interest
Cc: Orion-Interest
Subject: RE: Different data-sources for different applications?


Hi Karl,

A further variation on the theme,

We would also like to provide an Application Server service where each
site has its own data-source [discussed already], shared EJB [coz the
logic is the same] but custom JSP [coz each "eshop" has its own look 
feel].

Comments on how best to configure Orion for this pls?

At the moment we are deploying a single EAR  configuring the
data-source, which means all the "eshops" are sharing the same WAR and
all look the same.

Kind Regards

Neville Burnell
Business Manager Software

-Original Message-
From: Karl Avedal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 August 2000 8:08 AM
To: Orion-Interest
Cc: Orion-Interest
Subject: Re: Different data-sources for different applications?


Hello Anders,

I see you've gotten good answers already, just wanted to point that if
you want
to use different defaults per application rather than per ejb, you can
set the
default-data-source attribute in the orion-application.xml file.

Regards,
Karl Avedal

Anders Bengtsson wrote:

 Rick Bos wrote:
 
  You can modify this in orion-ejb-jar.xml.
 
  This file is found in orion/application-deployments/your-app/ejb
 
  You can copy this file to /ear/ejb/orion/orion-ejb-jar.xml and
modify it
  there.
 
  ( where ear is your development directory and ejb is your Enterprise
Java
  Bean directory).
 
  Hope this helps.

 Thanks, that will solve most of my problems!

 The remaining problem is that this would require a different .ear file
 for each deployment. I'm trying to deploy the same application many
 times on the same Orion, with different databases, to separate our
 different customers.
 Ideally it would be possible to change the data-source in some
 deployment config outside of the .ear. But I guess I can simply solve
 this by writing some small script to modify the .ear for each
 deployment.

 /Anders