Where/How/Do you specify what datasource is used for each entity?
alex
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 Im sure the
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-repositorynw.app:loader=my-app-v1/loader-repository
/jboss-app
The
I had something like this working at some point but it has been awhile.
It seems I had problems because of the Universal Class Loader. There is a
config somewhere that allows you to turn this off, and then each ear will
have its own class loader and therefore 'see' the appropriate classes.
Like
What about your datasource specification? Did you set the datasource on
each copy of your jbosscmp-jdbc.xml?
First Instance
jbosscmp-jdbc
defaults
datasourcejava:/SomeDatasourceName/datasource
datasource-mappingOracle9i/datasource-mapping
I used to have the same problem, one app instance is
accessing the datasource of another app2 instance. I
resolved the problem by adding a jboss-app.xml with a
unique loader repository name for every new app
instance.
Regards,
Rene
-Original Message-
From: Stefan Groschupf