Hi Stefan, what does JNDIView of jmx-console or web-console say? Does it show all your beans twice, each with a different JNDI-Name?
Do you have a jboss-app.xml file in the ear-files, which contains e.g.:
<jboss-app>
<loader-repository>nw.app:loader=my-app-v1</loader-repository>
</jboss-app>
The second app with "v2" instead of "v1".
Without the loader-repository you get warnings while deploying the second ear,
which say "duplicate classloader for package xyz". And undeploying first ear
will destroy second ear too.
Bernd
Stefan Groschupf wrote:
> 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
>
>
--
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: [EMAIL PROTECTED]
pgp00000.pgp
Description: PGP signature
