My problem is I definitely require the session bean to handle the database
logic as I want my entitys bean to be independant of the data store. So I need
to some how pass a data source or a connection across the beans. Is there any
work around to achieve this at all on JBOSS? Please let know if anyone can
think of  a solution. Thanks!!
Madhu...

Rickard �berg <[EMAIL PROTECTED]> wrote:
Hi!

Madhukar Rajendra wrote:
> 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?

DataSource and XADataSource are NOT serializable. And shouldn't be. If
WebLogic supports sending a DS from one bean to another, it means they
have a bug with either:
* they have made DataSource serializable
* they don't do pass-by-value of method arguments.

Both of which are bugs. (the last one is actually a known bug in
WebLogic, although they claim it's a feature)

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


____________________________________________________________________
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]

Reply via email to