db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujahid Malaysia" <harimaumal...@fastmail.fm>
Subject Two EAR and two Torque.properties
Date Tue, 13 Jan 2004 03:57:26 GMT
Hi all,

I have two different J2EE applications in two .EAR in a single JBoss.
Each application is going to connect to its' own database through Torque.
So, each application has its' own Torque.properties etc.

Let's name these two applications with App1.ear and App2.ear. Now, if I
connect to App1.ear first, the db connection in App2.ear can't be
initialized. So does vice-versa.

Does that means I can't have two Torques running in two separate
applications? 

Thanks.

=============================

The error message is as follows

[LogInterceptor] TransactionRolledbackLocalException, causedBy:
java.lang.NullPointerException
        at org.apache.torque.Torque.initialize(Torque.java:240)
        at org.apache.torque.Torque.init(Torque.java:406)
        at
        com.xcompany.api.dao.DAOFactory.getInstance(DAOFactory.java:55)
        at
        com.xcompany.security.xdoclet.security.bean.UserMapSBean.searchUserMap(Unknown
        Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)

-----------------------------
Mujahid Malaysia
"Kembalikan Keagungan Islam"

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message