Problem committing records using IBATIS in embedded jar file

2006-12-12 Thread Ross, Niall
Hi, I am having the following problem and I was wondering had anyone encountered this type of thing before or could someone possibly lend a hand with a solution. Ok here's the setup: Project A uses ibatis to control all transaction management functionality needed. Project B also uses ibatis

Re: Problem committing records using IBATIS in embedded jar file

2006-12-12 Thread Joakim Olsson
Are you by chance using Oracle from Geronimo? I had exactly this problem when I switched to Geronimo. The cause was some problem in the DBPool-setup. Shutdown Geronimo, edit the file geronimo-root/var/config/config.xml. In the gbean for your DBPool, add attribute

Data conversion or data mapping error.

2006-12-12 Thread Cornel Antohi
Hello, I have a big problem on one of my application that is ussing IBatis v2.1.7, DB2 AS400 V5R3 and WAS 6.0. During the tests (few users) the application is working fine but when we run the loading tests (many users in paralel) we received the following error. What is strange it is that the

Re: Problem committing records using IBATIS in embedded jar file

2006-12-12 Thread Brandon Goodin
Please post your dao.xml and sqlmap-config.xml from ProjectA and ProjectB. Also, post any supporting code that is failing to commit (code that loads the dao.xml, code that loads sqlmapconfig.xml, code that starts and commits the transaction, etc). This will help us to see what you are doing

RE: Using parameterMaps

2006-12-12 Thread Dave Rodenbaugh
Thanks for the feedback...That all makes sense, except #4. CDATA sections, while not necessary here, are placed there because in the future, I probably won't be the one maintaining this code. If someone alters a WHERE clause to use or , then I've protected them from future errors in their

Re: Using parameterMaps

2006-12-12 Thread Larry Meadors
I wouldn't do it because I am a minimalist and it adds more mess to the code, but if you sleep better at night knowing it's there, go for it. :) Hopefully you'll have a maintainer that knows *something* about XML, though. Larry On 12/12/06, Dave Rodenbaugh [EMAIL PROTECTED] wrote: Thanks

RE: Using parameterMaps

2006-12-12 Thread Dave Rodenbaugh
Yes, one would hope to have that. :) As a side note, what are your thoughts on the advanced inline parameter map syntax: WHERE Order_id = #orderId,javaType=java.lang.String# I ask because I'm using a code generator that needs certain type information to spit out lots of classes for me so I

usage of namespace

2006-12-12 Thread Viktor_X . _Kopit
To all, In IBATIS documentation I cannot see any usage of namespace (global setting in sql-map-config,xml and references in sqlMap namespace=xx portion of xml files included in sql-map-config,xml ). Please send me example of code.

Re: usage of namespace

2006-12-12 Thread Larry Meadors
Basically, it works like a package in java, or namespaces in C#. If you have a mapped statement named insert with a namespace of department, you call it using the name department.insert. So, why do that instead of insertDepartment? Well, it makes things lots easier if you want to make smarter