[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [jboss-user] [JNDI/Naming/Network] - Using JNDI data source to
From: venukb <do-not-reply () jboss ! com>
Date: 2009-01-30 19:55:31
Message-ID: 10011737.1233345331443.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
I have configured a connection pool in JBoss to talk to MySQL DB (using a *-ds.xml in \
deploy directory) The datasource is bound to JNDI and is used by applications \
running in a different VM
Basic query/update has always been fine :)
Recently I had to store a java object in MySQL DB
I used preparedstatement.readobject and writeobject(). This seems to be throwing \
JbossLazyUnmarshallingException
I used the same code in a normal Java program (using DriverManager rather than the \
JNDI to get the SQL connection) This ran fine (both for reading and writing objects)
How to avoid the Unmarshallingexception? Do I need to use Streams to write and read \
data? Or is there is a config to disable Lazy Unmarshalling?:
Configuration:
----------------
Jboss 4.2.3 GA
Mysql 5.0.46 enterprise
Mysql connector : 5.1.7
thanks in advance :)
Venu
View the original post : \
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205989#4205989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205989
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic