Hi
i'm working with ibatis, struts and Oracle 9... when I get data
published by a form, UTF-8 encoded, it's stored
in a nvarchar2 column (Oracle 9)... When I display this data, it's
displayed as in the html code...
I'm working with Oracle's thin client,
The basic steps are these:
1. Create an SqlMapConfig.xml file that lists all the generated SQL map files. This file also needs to specify the database connection properties, and make sure that statement namespaces are enabled. You can read about the format of the SqlMapConfig file in the SQL Map
Title: Need Help with JNDI Connection
Hi,
Please help me with this error.
SqlMapConfig.xml
transactionManager type=JDBC
dataSource type=JNDI
property name=cams value=java:jdbc/cams_dev/
/dataSource
/transactionManager
I have connection pooling datasource set on the test server in
Title: Need Help with JNDI Connection
Should be:
name=cams should be: name=DataSource
Niels
From: Ali, Mohammed
(Liquidity Risk Technology) [mailto:[EMAIL PROTECTED]
Sent: maandag 17 april 2006 18:07
To: user-java@ibatis.apache.org
Subject: Need Help with JNDI
Connection
Title: Need Help with JNDI Connection
Looks like you need to specify the "DataSource"
property. My config looks like this:
transactionManager type="JDBC"
dataSource type="JNDI"
property name="DataSource" value="dev.ap.ap.datasource"/
/dataSource
/transactionManager
From: Ali,
Title: Message
Hi
Niel,
I
changed to as per your suggestion and still getting same error. Also tried
without"java:" from value and same results
I have
2 config files as 2 different datasources. Is this the issue as application
needs to see 2 databases.
SqlMapConfigCams.xml
I am using a datasource, and here is how it is defined. This seems to work. I
know I had to remove the java: prefix.
transactionManager type=JDBC
dataSource type=JNDI
property name=DataSource value=jdbc/MyDatasourceName /
/dataSource
/transactionManager
I am using a datasource with Websphere 5.1 and here is how mine is defined. I
know I had to remove the java: previx.
transactionManager type=JDBC
dataSource type=JNDI
property name=DataSource value=jdbc/myDataSourceName /
/dataSource
/transactionManager
Title: Message
Ali,
Try this
!-- JNDI DataSource JDBC
Transaction Manager --transactionManager commitRequired="true"
type="EXTERNAL" property name="DefaultAutoCommit"
value="false"/property name="SetAutoCommitAllowed"
value="false"/ dataSource type="JNDI"property
name="DataSource"
I believe your JNDI reference should
read either as:
property
name=cams
value=java:comp/env/jdbc/cams_dev/
or
property
name=cams
value=jdbc/cams_dev/
The correct one depends upon your context.
Chris Mathrusse
[EMAIL PROTECTED]
Sybase, Inc
One Sybase Drive
Dublin, CA 94568
(925) 236-5553
Title: Message
All
Thank You,
Your
suggestion worked. Just curios for multiple datasources, do I need separate
config files or add Datasource in the one file ?
transactionManager type="JDBC"
dataSource type="JNDI"
property name="DataSource"
value="jdbc/cams_dev"/
/dataSource
If you are going to have multiple data
sources then you need to place them in separate config files. Then that
also means you are going to need to think about distributed transactions
and an external transaction manager.
Chris Mathrusse
[EMAIL PROTECTED]
Sybase, Inc
One Sybase Drive
Dublin, CA
I have no trouble using unicode with iBatis, and didn't have to do any
configuration for it to work;
However, I use Sybase and ran into a similar problem with unicode and java
although not related to iBatis, so maybe this will help.
You should connect to oracle saying I'm Unicode, and I want a
Title: Message
I use
multiple datasources...
I use
separate instances of SqlMapClient, each built from separate config files... I
don't think iBatis supports having a single SqlMapClient with multiple
datasources (it might have in the 1.x series). But it's a good idea not to
support that
I need this too. Its only thing that miss in ibatis for me.On 2/23/06, Richard Lin [EMAIL PROTECTED] wrote:
Is there anyway to add/load a sqlmap XML file at runtime instead ofincluding in the sqlmap-config file?
I'm working on a framework that needs to discover and load sqlmapfiles dynamically
When using Ibatis 2.x do I need to have the setting
useStatementNamespaces=true in order to access select statements in other
sql mapping files?
At present I don't and I'm getting an error when trying to access a
statement in another file.
For example I have a result map entry:
result
16 matches
Mail list logo