What about your datasource specification? Did you set the datasource on
each copy of your jbosscmp-jdbc.xml?

First Instance
--------------------
<jbosscmp-jdbc>

    <defaults>
        <datasource>java:/SomeDatasourceName</datasource>
        <datasource-mapping>Oracle9i</datasource-mapping>
        <create-table>false</create-table>
        <remove-table>false</remove-table>
    </defaults>

   <enterprise-beans>

                BLAH BLAH BLAH

Second Instance
--------------------
<jbosscmp-jdbc>

    <defaults>
        <datasource>java:/AnotherDatasourceName</datasource>
        <datasource-mapping>Oracle9i</datasource-mapping>
        <create-table>false</create-table>
        <remove-table>false</remove-table>
    </defaults>

   <enterprise-beans>

                BLAH BLAH BLAH



-----Original Message-----
From: Stefan Groschupf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2003 10:04 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] ear & jndi & different databases.


Hi,

Please please help me!!!

Since 3 days I try non stop to get 2 instances of the same project 
running in one jboss.
I scan all web pages, forums, documentations about that and I'm sure the

solution is very close, but I have a mistake I could not find.

1.) I use in each ejb dynamic xdoclet generated local jndi names.

* @ejb.bean 
local-jndi-name="${site}/org.weta.tm.document.entity.thesaurus.Term"

* name="Term"

* primkey-field="uniqueSequence"

* type="CMP"

* cmp-version = "2.x"

* view-type="local"

* schema = "Term"

2.) I have a script that update <jndi-name>Term</jndi-name> to 
<jndi-name>Term_myName</jndi-name>

3.) My projects a separated in different ears

4.) I have 2 datasource.xml file in my deploy folder with different 
datasource names.

5.) I had setup the different datasources in jbosscmp-jdbc.xml

Only the ejb names are the same, but as I hear that is not important.


Anyways both projects are well deployed, without any exception but the 
second deployed project use the database of the first project.


Looks like it use the ejbs of the first deployed project.

Please can someone give me a hint how to solve this problem?!

Thanks a lot!!

Stefan





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects. See the people
who have HELPED US provide better services: Click here:
http://sourceforge.net/supporters.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to