[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: RE: Re[2]: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified f
From: "Jboss Percy" <jbosspercy () hotmail ! com>
Date: 2003-03-31 14:41:17
[Download RAW message or body]
I will try it, thanks for the information
Christian
-----Original Message-----
From: jboss-user-admin@lists.sourceforge.net
[mailto:jboss-user-admin@lists.sourceforge.net] On Behalf Of Alex
Loubyansky
Sent: maandag 31 maart 2003 15:02
To: Jboss Percy
Subject: Re[2]: [JBoss-user] CMR uses the default datasource in stead of
the one specifically specified for the CMP 2.0 EJB entity beans
concerned
Just ported the fix to JBoss_3_0.
You need to check out the source from CVS and build it yourself. For 3.0
version: cvs -z3
-d:pserver:anonymous@cvs.jboss.sourceforge.net:/cvsroot/jboss
co -r Branch_3_0 jboss-3.0
alex
Monday, March 31, 2003, 3:02:15 PM, Jboss Percy wrote:
JP> I use the normal download (with Tomcat integrated) from the Jboss
JP> Site jboss-3.0.6_tomcat-4.1.18. Here is the release log.
JP> JBoss Release: JBoss-3.0.6 CVSTag=JBoss_3_0_6
JP> How and where can I get that latewst release? Is that build or do I
have
JP> to retrieve the sources and build
JP> My own version from a merge?
JP> -----Original Message-----
JP> From: jboss-user-admin@lists.sourceforge.net
JP> [mailto:jboss-user-admin@lists.sourceforge.net] On Behalf Of Alex
JP> Loubyansky
JP> Sent: maandag 31 maart 2003 13:40
JP> To: Jboss Percy
JP> Subject: Re: [JBoss-user] CMR uses the default datasource in stead
JP> of the one specifically specified for the CMP 2.0 EJB entity beans
JP> concerned
JP> What JBoss version are you using?
JP> This was fixed in Branch_3_2 recently.
JP> alex
JP> Monday, March 31, 2003, 2:05:25 PM, Jboss Percy wrote:
JP>> I am new to JBoss and to MySql (although the problem has not
JP>> specifically to do with MySql). I am trying to port a rather large
JP>> application from Borland BES 5.2 to JBoss 3.06 and ran in a little
JP>> problem. The application uses different databases, which I all
JP>> hosted to MySql. Each deployable unit has its own database with its
JP>> own tables. This situation prevents me from using the simple
JP>> solution of setting a single database a default data source (in the
JP>> <JbossInstallDir>\server\default\conf\standardjaws.xml and
JP>> <JbossInstallDir>\server\default\conf\standardjbosscmp-jdbc.xml)
JP>> So I define my multiple data sources in multiple
JP> mysql-xxxx-service.xml
JP>> files (one per database) and configure each of these services in
JP>> the
JP>> <JbossInstallDir>\server\default\conf\login-config.xml)
JP>> All runs fine except for the CMR. When I create a new (EJB 2.0
JP>> entity
JP>> bean) relation I see that the Hypersonic SQL driver is selected
JP> in-stead
JP>> of the MySql one, although I specifically specified the datasource
JP>> element of EJB 2.0 CMP each entity bean. On top I cannot specify
JP>> the <datasource> element in the relation (It is specified in the
JP> <entity>
JP>> element although but that seems to be ignored in the relationship
JP>> elements that uses these entities). Both entities that are parts of
JP> the
JP>> relation are in the same datasource (read database).
JP>> I can of course also include a <defaults> element in the
JP>> jbosscmp-jdbc.xml file in the deployed unit but there again that
JP> would
JP>> be for the whole deployable unit (which could contain may different
JP>> entity beans which would not necessarily all use the same
JP>> datastore.
JP> My
JP>> guess is that the relationships should automatically inherit
JP> whatever
JP>> datastore specification the entity bean to which the relationship
JP>> belongs has. This seems logic as I cannot understand where the data
JP>> should be stored elsewhere as in the same database as the rest of
JP> the
JP>> data of the bean.
JP>> Has anyone an Idea of how to overcome this problem.
JP>> Thanks for any advance.
JP>> Percy Christian
JP>> jbosspercy@hotmail.com
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic