Hi,
I have a session bean that invokes a business method of an entity bean and
passes it an instance of the DataSource as an argument. The DataSource is
obtained from a database connection pool that I set up during server startup.
But when my session bean tries to pass the DataSource as an argument, I get a
org.jboss.minerva.XAPoolDataSource NotSerializableException. I used to do the
same thing with other containers such as Weblogic and it used to work
perfectly fine. Shouldn't XAPoolDataSource be serializable?
My jboss.conf contains:
<MLET CODE = "org.jboss.jdbc.XADataSourceLoader"
ARCHIVE="jboss.jar,classes12_01.zip" CODEBASE="../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="assetDbPool">
<ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>
and my jboss.jcml contains:
<mbean name="DefaultDomain:service=XADataSource,name=assetDbPool">
<attribute name="Properties"></attribute>
<attribute
name="URL">jdbc:oracle:thin:@sugar.solbright.com:1521:devil</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="MaxSize">5</attribute>
<attribute name="Password">neo</attribute>
<attribute name="ShrinkPercent">0.33</attribute>
<attribute name="GCEnabled">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">false</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="JDBCUser">neo</attribute>
<attribute name="MinSize">0</attribute>
<attribute name="ShrinkMinIdleTime">600000</attribute>
<attribute name="ShrinkingEnabled">false</attribute>
</mbean>
Am I doing it the wrong way? Is there a way across this problem?
Please help as soon as possible. Many thanks in advance.
Regards,
Madhu...
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://home.netscape.com/webmail
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]