Ok, so I made the following entries in to the datasources xml file. Things
appear to work better. But I have three questions:
1. Which data source are my beans using?
2. How do I tell a particular bean to use a different data source?
3. Where did you find this information out?
Thanks.
-AP_
<data-source class="com.evermind.sql.ConnectionDataSource"
location="jdbc/DefaultDS">
<name></name>
<description></description>
<url>jdbc:mysql://australia.apara.org/garman</url>
<connection-driver>org.gjt.mm.mysql.Driver</connection-driver>
<username>wwong</username>
<password></password>
</data-source>
<data-source
class="com.evermind.sql.DefaultConnectionPoolDataSource"
location="jdbc/DefaultPooledDS">
<name></name>
<description></description>
<source-location>jdbc/DefaultDS</source-location>
</data-source>
<data-source class="com.evermind.sql.DefaultXADataSource"
location="jdbc/xa/DefaultXADS">
<name></name>
<description></description>
<source-location>jdbc/DefaultPooledDS</source-location>
</data-source>
<data-source class="com.evermind.server.ejb.EJBDataSource"
location="jdbc/DefaultEJBDS">
<name></name>
<description></description>
<source-location>jdbc/xa/DefaultXADS</source-location>
</data-source>
-----Original Message-----
From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 25, 1999 4:27 AM
To: Alex Paransky; Orion-Interest
Subject: RE: How do I tell my Container Managed entity bean which data
sourcetouse?
You need to specify at least one XA datasource (transactional) in your
datasources.xml file.
If you've done that, Orion will automatically use the default XA datasource
when it creates the deployment descriptor orion-ejb-jar.xml (a mild
annoyance as I often want to change it BEFORE orion creates tables - but
alas the deployment tools are coming - I know Magnus already has a lot to do
;)). After it has deployed properly, go in there and you can change the
<datasource> tag to whatever datasource you want. Unless you delete the file
(hrrrmmm ;)) it should keep that datasource updated when you redeploy each
time.
Hope this helps,
Mike
__
| | Director - The BookmarkBox P/L
| | http://www.bookmarkbox.com <http://www.bookmarkbox.com/>
|/\| Manage and share your bookmarks online!
Do you enjoy our service? Why not tell your friends about us?
http://www.bookmarkbox.com/email.cfm
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky
> Sent: Saturday, 25 December 1999 4:54
> To: Orion-Interest
> Subject: How do I tell my Container Managed entity bean which data
> source touse?
>
>
> I must be missing something. I am not sure how to tell my
> container managed
> entity bean which pooled data source to use. I have created the entity
> bean, and I have created the pooled data source. When I start
> orion 0.8.2,
> I get the following error message:
>
> Auto-deploying file:/E:/work/site/lib/... Error compiling
> file:/E:/work/site/lib/:
> Error finding a suitable DataSource: No default XADataSource and no source
> specified
>
> Some help would be greatly appreciated.
>
> Thanks.
> -AP_
>
>
>