JBoss - datasources

A

Artur Wronski

Hi!

I wrote application (ejb/cmp + web/struts, jboss 3.2.3) and it works great.
I want to deploy the same application but with different datasource and
different layout.

So I've changed:
- layout (jsp files)
- datasource in jbosscmp-jdbc.xml
- all jndi-names for all beans to different (ant coresponding
contex.lookup(..))
- and rebuild ejb.jar, war, and create new ear with different filename.

After that I've deployed my apps one again. Deploy phase went ok, without
any errors. First deployed app works great but the second one (with
different layout, datasource...) use datasource form the first one!

I've changed order and first deployed second app and than first. But the
problem is the same. Second deployed app always use datasource from first
app.

I've checked jbosscmp-jdbc.xml and datasource and are correct in each ear.
JBoss event create missing database tables during deploy in correct
datasource but later during method call on beans always use only the first
source for both my apps.

What can be the problem?

Please help,
Artur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top