Im using IBATIS with WebSphere Appliation
Server 5.1.
In the init method of a Start-up servlet Im
using Ibatis to execute a SELECT on a DB2 Database.
Its work fine but the method ends I
catch the following exception :
[03/03/06 11:36:12:452 CET]
3dfd084f LocalTranCoor E WLTC0033E:
You need to set the correct property for your datasource in your configuration.
See what properties it supports. If you are using
SimpleDataSource then set
JDBC.DefaultAutoCommit to true i.e
property name=JDBC.DefaultAutoCommit value=false /
From:
Title: RE: Autocommit property
Hi Roberto,
1)Perform the following steps to modify WebSphere Studio Application Developer Integration Edition:
a. Open the Web project window.
b. Click Web Deployment Descriptor to open the web project/WebContent/WEB-INF/web.xml file.
c. Click the Servlet
How do I implement
map of maps using Ibatis? I have included the sql config
file.
I am expecting a following
result:
HashMap --
key-- manager
value -- java.util.Map
-- key -- orderId
value --List of beans of type test.Trade
I appreciate all the
help.
sqlMap namespace=reportresultMap
Following should do the trick:
sqlMapClient.flushDataCache();
or
sqlMapClient.flushDataCache(cache id);
Look in the com.ibatis.sqlmap.client.SqlMapClient interface.
Regards,
Sven
Joe Wolf wrote:
Is there any way to programmatically flush a cache? I'm getting ready to head
down the road
I've been wondering about a related question -- is there any way to
flush a cache for only one particular object?
I'd like to be able to say I've only modified this Foo bean, so flush
it, but keep the other Foo beans that are in the cache. Are there
problems associated with this that I'm
No that's not possible, and probably will never be. There's a JIRA open
for it http://issues.apache.org/jira/browse/IBATIS-222 which I would
like to close as won't fix ;-).
The problem is that iBATIS has no concept of object identity. If you
look at the caching code, caching is on the level
Clinton sez, in the message referenced in that bug: This is where
custom, or domain specific, caching comes into play. Apologies if this
is in TFM, but is there a way to get Ibatis to use your own cache
implementation? Or is this something that you'd have to write at your
DAO level?
Sven
Hi
Recently i had asked question about designing java
classes for resultset,
So if i have desgined my java classes as per my
requirement, and using java.util.HashMap to get result
using ibatis, and then in my java program loading
values from HashMap in my java class,
am i not making the process