I don't understand your scenario.  You say "deploy two sites point to two
separate database".  But in the next sentence you say "The
three set of data."  Which is it, two or three?  And when you say "two
sites", do you mean two instances of JBoss on two different computers?
Finally, your output below shows 3 pools getting started, but we can't tell
where they are going without seeing your jboss.jcml entries.

----- Original Message -----
From: "Lac Sanh La" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 2:32 AM
Subject: [JBoss-user] Multiple apps and datasources


> Hi All,
>
> I am trying to deploy two sites point to two separate database. The
> three set of data are created correcty Default, DefaultDB and
> DefaultDB_1. When start the applications they all point to Default.
>
> How can I config JBOSS to point to the appropriate one ?
>
> Thanks!
>
> Lac
>
>
> [JDBC provider] Starting
> [JDBC provider] Started
> [Hypersonic] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Database started
> [Hypersonic] Started
> [InstantDB] Starting
> [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> Enhydra InstantDB - Version 3.21
> [InstantDB] The Initial Developer of the Original Code is Lutris
> Technologies In
> c.
> Portions created by Lutris are Copyright (C) 1997-2000 Lutris
> Technologies, Inc.
>
> All Rights Reserved.
> [Hypersonic] Press [Ctrl]+[C] to abort
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [EOrdersDB] Starting
> [EOrdersDB] XA Connection pool EOrdersDB bound to java:/EOrdersDB
> [EOrdersDB] Started
> [EOrdersDB_1] Starting
> [EOrdersDB_1] XA Connection pool EOrdersDB_1 bound to java:/EOrdersDB_1
> [EOrdersDB_1] Started
> [Container factory] Starting
> [Container factory] Started
> [EmbeddedTomcat] Starting
> [EmbeddedTomcat] Starting EmbeddedTomcat....
> 2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /examples )
> 2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /admin )
> [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error
> messages
> 2001-04-02 04:13:19 - ContextManager: Adding context Ctx(  )
> 2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /test )
> 2001-04-02 04:13:20 - PoolTcpConnector: Starting HttpConnectionHandler
> on 8080
> 2001-04-02 04:13:20 - PoolTcpConnector: Starting Ajp12ConnectionHandler
> on 8007
> [EmbeddedTomcat] OK
> [EmbeddedTomcat] Started
> [JBossMQ] Starting
> [JBossMQ] Server Version 0.8 Started
> [JBossMQ] Started
> [DefaultJMSProvider] Starting
> [DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to
> java:/Defa
> ultJMSProvider
> [DefaultJMSProvider] Started
> [StdJMSPool] Starting
> [StdJMSPool] JMS provider Adapter StdJMSPool bound to java:/StdJMSPool
> [StdJMSPool] Started
> [J2EE Deployer Default] Starting
> [J2EE Deployer Default] Cleaning up deployment directory
> [J2EE Deployer Default] Started
> [MinervaNoTransCMFactory] Starting
> [MinervaNoTransCMFactory] Connection manager factory
> 'MinervaNoTransCMFactory bo
> und to 'java:/MinervaNoTransCMFactory'
> [MinervaNoTransCMFactory] Started
> [MinervaSharedLocalCMFactory] Starting
> [MinervaSharedLocalCMFactory] Connection manager factory
> 'MinervaSharedLocalCMFa
> ctory bound to 'java:/MinervaSharedLocalCMFactory'
> [MinervaSharedLocalCMFactory] Started
> [MinervaXACMFactory] Starting
> [MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory
> bound to 'ja
> va:/MinervaXACMFactory'
> [MinervaXACMFactory] Started
> [BlackBoxDS] Starting
> [BlackBoxDS] Started
> [JMX RMI Adaptor] Starting
> [JMX RMI Adaptor] Started
> [JMX RMI Connector] Starting
> [JMX RMI Connector] Started
> [Mail Service] Starting
> [Mail Service] Mail Service 'Mail' bound to java:/Mail
> [Mail Service] Started
> [RARDeployer] Starting
> [RARDeployer] Started
> [Auto deploy] Starting
> [Auto deploy] Watching C:\jboss-tomcat-2.1-beta\jboss-2.1\deploy
> [Auto deploy] Auto deploy of
> file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/deploy/bms
> oft_eadmin.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/C:/jboss-tomcat-2.1-beta/
> jboss-2.1/deploy/bmsoft_eadmin.ear
> [J2EE Deployer Default] Create application bmsoft_eadmin.ear
> [J2EE Deployer Default] inflate and install module eadmin-web.war
> [J2EE Deployer Default] install module bmsoft_eadminEJB.jar
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [J2EE Deployer Default] Starting module eadmin-web.war
> 2001-04-02 04:13:25 - ContextManager: Adding context Ctx( /eadmin )
> [Auto deploy] Add env-entry securityAdapterClassName  java.lang.String
> au.com.bm
> soft.weborders.util.J2eeSecurityAdapter no description
> [Auto deploy] Binding ejb/stock to TheStock
> [Auto deploy] Binding ejb/mailer to TheMailer
> [Auto deploy] Binding ejb/cclog to com_bmsoft_cclog
> [Auto deploy] Binding ejb/setting to com_bmsoft_settings
> [Auto deploy] Binding ejb/customercollection to TheCustomerCollection
> [Auto deploy] Binding ejb/spprice to TheSpPrice
> [Auto deploy] Binding ejb/adminclient to
> TheAdministratorClientController
> [Auto deploy] Binding ejb/administrator to com_bmsoft_admin_users
> [Auto deploy] Binding ejb/sanction to TheSanction
> [Auto deploy] Binding ejb/settingCollection to TheSettingCollection
> [Auto deploy] Binding ejb/order to TheOrder
> [Auto deploy] Binding ejb/company to TheCompany
> [Auto deploy] Binding ejb/selector to TheSelector
> [Auto deploy] Binding ejb/reporter to TheReporter
> [Auto deploy] Binding ejb/customer to TheCustomer
> [Auto deploy] Binding ejb/ccclearance to TheCreditCardClearance
> [Auto deploy] Binding ejb/serverinfo to TheServerInfo
> [Auto deploy] Binding EOrdersDataSource to java:/EOrdersDB
> 2001-04-02 04:13:26 - Ctx( /eadmin ): FORM: WARNING, login page starts
> with cont
> ext path /eadmin/signin.jsp /eadmin
> 2001-04-02 04:13:26 - Ctx( /eadmin ): FORM: WARNING, error page starts
> with cont
> ext path /eadmin/error.html
> [Container factory]
> Deploying:file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deplo
> y/Default/bmsoft_eadmin.ear
> [Verifier] Verifying
> file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default
> /bmsoft_eadmin.ear/ejb1002.jar
> [Verifier]
> Bean   : com_bmsoft_cclog
> Section: 9.2.9
> Warning: The primary key class must override equals().
>
> [Verifier]
> Bean   : com_bmsoft_cclog
> Section: 9.2.9
> Warning: The primary key class must override hashCode().
>
> [Container factory] Deploying com_bmsoft_settings
> [Container factory] Deploying com_bmsoft_admin_users
> [Container factory] Deploying TheOrder
> [Container factory] Deploying com_bmsoft_cclog
> [Container factory] Deploying TheCustomer
> [Container factory] Deploying TheServerInfo
> [Container factory] Deploying TheSpPrice
> [Container factory] Deploying TheCompany
> [Container factory] Deploying TheCreditCardClearance
> [Container factory] Deploying TheCustomerCollection
> [Container factory] Deploying TheSelector
> [Container factory] Deploying TheAdministratorClientController
> [Container factory] Deploying TheStock
> [Container factory] Deploying TheSanction
> [Container factory] Deploying TheSetting
> [Container factory] Deploying TheReporter
> [Container factory] Deploying TheMailer
> [JAWS] Created table 'com_bmsoft_cclog' successfully.
> [Container factory] No resource manager found for MailSession
> [JAWS] Created table 'com_bmsoft_admin_users' successfully.
> [JAWS] Created table 'com_bmsoft_settings' successfully.
> [Bean Cache] Cache policy scheduler started
> [Container factory] Deployed application:
> file:/C:/jboss-tomcat-2.1-beta/jboss-2
> .1/tmp/deploy/Default/bmsoft_eadmin.ear
> [J2EE Deployer Default] J2EE application:
> file:/C:/jboss-tomcat-2.1-beta/jboss-2
> .1/deploy/bmsoft_eadmin.ear is deployed.
> [Auto deploy] Auto deploy of
> file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/deploy/bms
> oft_eadmin_1.ear
> [J2EE Deployer Default] Module bmsoft_eadmin_1.ear is not running
> [J2EE Deployer Default] Module eadmin-web.war is not running
> [J2EE Deployer Default] Destroying application bmsoft_eadmin_1.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/C:/jboss-tomcat-2.1-beta/
> jboss-2.1/deploy/bmsoft_eadmin_1.ear
> [J2EE Deployer Default] Create application bmsoft_eadmin_1.ear
> [J2EE Deployer Default] inflate and install module eadmin-web.war
> [J2EE Deployer Default] install module bmsoft_eadminEJB.jar
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [J2EE Deployer Default] Starting module eadmin-web.war
> 2001-04-02 04:13:37 - ContextManager: Adding context Ctx( /eadmin_1 )
> [Auto deploy] Add env-entry securityAdapterClassName  java.lang.String
> au.com.bm
> soft.weborders.util.J2eeSecurityAdapter no description
> [Auto deploy] Binding ejb/stock to TheStock
> [Auto deploy] Binding ejb/mailer to TheMailer
> [Auto deploy] Binding ejb/cclog to com_bmsoft_cclog
> [Auto deploy] Binding ejb/setting to com_bmsoft_settings
> [Auto deploy] Binding ejb/customercollection to TheCustomerCollection
> [Auto deploy] Binding ejb/spprice to TheSpPrice
> [Auto deploy] Binding ejb/adminclient to
> TheAdministratorClientController
> [Auto deploy] Binding ejb/administrator to com_bmsoft_admin_users
> [Auto deploy] Binding ejb/sanction to TheSanction
> [Auto deploy] Binding ejb/settingCollection to TheSettingCollection
> [Auto deploy] Binding ejb/order to TheOrder
> [Auto deploy] Binding ejb/company to TheCompany
> [Auto deploy] Binding ejb/selector to TheSelector
> [Auto deploy] Binding ejb/reporter to TheReporter
> [Auto deploy] Binding ejb/customer to TheCustomer
> [Auto deploy] Binding ejb/ccclearance to TheCreditCardClearance
> [Auto deploy] Binding ejb/serverinfo to TheServerInfo
> [Auto deploy] Binding EOrdersDataSource to java:/EOrdersDB_1
> 2001-04-02 04:13:37 - Ctx( /eadmin_1 ): FORM: WARNING, login page starts
> with co
> ntext path /eadmin_1/signin.jsp /eadmin_1
> 2001-04-02 04:13:37 - Ctx( /eadmin_1 ): FORM: WARNING, error page starts
> with co
> ntext path /eadmin_1/error.html
> [Container factory]
> Deploying:file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deplo
> y/Default/bmsoft_eadmin_1.ear
> [Verifier] Verifying
> file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default
> /bmsoft_eadmin_1.ear/ejb1004.jar
> [Verifier]
> Bean   : com_bmsoft_cclog
> Section: 9.2.9
> Warning: The primary key class must override equals().
>
> [Verifier]
> Bean   : com_bmsoft_cclog
> Section: 9.2.9
> Warning: The primary key class must override hashCode().
>
> [Container factory] Deploying com_bmsoft_settings
> [Container factory] Deploying com_bmsoft_admin_users
> [Container factory] Deploying TheOrder
> [Container factory] Deploying com_bmsoft_cclog
> [Container factory] Deploying TheCustomer
> [Container factory] Deploying TheServerInfo
> [Container factory] Deploying TheSpPrice
> [Container factory] Deploying TheCompany
> [Container factory] Deploying TheCreditCardClearance
> [Container factory] Deploying TheCustomerCollection
> [Container factory] Deploying TheSelector
> [Container factory] Deploying TheAdministratorClientController
> [Container factory] Deploying TheStock
> [Container factory] Deploying TheSanction
> [Container factory] Deploying TheSetting
> [Container factory] Deploying TheReporter
> [Container factory] Deploying TheMailer
> [JAWS] Created table 'com_bmsoft_cclog' successfully.
> [Container factory] No resource manager found for MailSession
> [JAWS] Created table 'com_bmsoft_admin_users' successfully.
> [JAWS] Created table 'com_bmsoft_settings' successfully.
> [Container factory] Deployed application:
> file:/C:/jboss-tomcat-2.1-beta/jboss-2
> .1/tmp/deploy/Default/bmsoft_eadmin_1.ear
> [J2EE Deployer Default] J2EE application:
> file:/C:/jboss-tomcat-2.1-beta/jboss-2
> .1/deploy/bmsoft_eadmin_1.ear is deployed.
> [Auto deploy] Started
> [Service Control] Started 28 services
> [Default] JBoss 2.1-BETA Started in 0m:26s
>
> Best Regards
>
> Lac La
> mailto:[EMAIL PROTECTED]
> Business Manager Software
> Tel: (03) 9813 3022
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to