R: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup)

2004-09-21 Thread Amleto Di Salle
o: Re: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup) > Obviously, you can implement a "datasource management" sub-system > (with a web front-end) in your application! But, why do you have to > re-invent the wheel? With a metaphore,

Re: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup)

2004-09-21 Thread brenmcguire
riginale- > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Inviato: martedì 21 settembre 2004 12.22 > A: [EMAIL PROTECTED] > Oggetto: Smart DataSource management (WAS: Assigning a DataSource to a > Business Delegate on startup) > > > In fact I need to do something more. >

RE: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup)

2004-09-21 Thread Marco Mistroni
AIL PROTECTED] Sent: 21 September 2004 11:22 To: [EMAIL PROTECTED] Subject: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup) In fact I need to do something more. Suppose that I want to distribute my application, and the destination has a different DBMS (w

R: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup)

2004-09-21 Thread Amleto Di Salle
lto:[EMAIL PROTECTED] Inviato: martedì 21 settembre 2004 12.22 A: [EMAIL PROTECTED] Oggetto: Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup) In fact I need to do something more. Suppose that I want to distribute my application, and the destination has a diff

Smart DataSource management (WAS: Assigning a DataSource to a Business Delegate on startup)

2004-09-21 Thread brenmcguire
o know the url of the DB server. But you can set it using > the Tomcat web amministration tool. > > BR > /Amleto > > > > -Messaggio originale- > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Inviato: martedì 21 settembre 2004 11.32 > A: [EMAIL PROTECTED] > Og

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Jitender K Chukkavenkata
Sorry, My assumption about your problem is different I guess... Jitender Kumar C.V.

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread brenmcguire
WHOOPS!!! sorry wrong submit. Thank you, I will check it out. Ciao Antonio > org.apache.struts.config.DataSourceConfig holds a getKey() method that > returns you the DataSource key underwhich the Datasource object is stored > in the servlet Context...just find it out and try making use of it... >

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread brenmcguire
org.apache.struts.config.DataSourceConfig holds a getKey() method that > returns you the DataSource key underwhich the Datasource object is stored > in the servlet Context...just find it out and try making use of it... > > Thanks, > Jitender Kumar C.V. > > ---

R: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Amleto Di Salle
you can set it using the Tomcat web amministration tool. BR /Amleto -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: martedì 21 settembre 2004 11.32 A: [EMAIL PROTECTED] Oggetto: Re: Assigning a DataSource to a Business Delegate on startup > yo

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Jitender K Chukkavenkata
org.apache.struts.config.DataSourceConfig holds a getKey() method that returns you the DataSource key underwhich the Datasource object is stored in the servlet Context...just find it out and try making use of it... Thanks, Jitender Kumar C.V.

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Nicolas De Loof
AIL PROTECTED] > > Inviato: martedì 21 settembre 2004 11.11 > > A: [EMAIL PROTECTED] > > Oggetto: Assigning a DataSource to a Business Delegate on startup > > > > > > Hello there, > > is there a way I can assign a DataSource to a singleton object (i.e. a > >

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Nicolas De Loof
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 11:31 AM Subject: Re: Assigning a DataSource to a Business Delegate on startup > > you can use JNDI to get a DataSource (if you use tomcat see tomcat > > d

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread brenmcguire
nt to distribute my application? Do I have to configure Tomcat on the other machine? Ciao Antonio Petrelli > > > > -Messaggio originale- > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Inviato: martedì 21 settembre 2004 11.11 > A: [EMAIL PROTECTED] > Oggetto: Assignin

R: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Amleto Di Salle
Inviato: martedì 21 settembre 2004 11.11 A: [EMAIL PROTECTED] Oggetto: Assigning a DataSource to a Business Delegate on startup Hello there, is there a way I can assign a DataSource to a singleton object (i.e. a Business Delegate) on startup? I know there is the "getDataSource" protected method

Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread brenmcguire
Hello there, is there a way I can assign a DataSource to a singleton object (i.e. a Business Delegate) on startup? I know there is the "getDataSource" protected method in Action, but I have to pass the DataSource itself on each call of the delegate, or I have to check whether it has been already pa