Alessandro Radaelli ha scritto:
> I think that geotools is a very powerful library and I want to 
> congratulate with all the developers.
> 
>  
> 
> We are developing an application that have to  
> 
> 1 – insert a new feature in a geotools datastore (actually an 
> OracleDatastore). We are going to use geotools to accomplish this task
> 
> 2 – insert some records  in a lot of other db tables (in the same Oracle 
> schema). We are going to use jdbc to accomplish this task
> 
>  
> 
> We need to issue both operations  under the same transaction. How can we 
> do? Is there any example?

No examples, but you can do the following:
* create a new DefaultTransaction
* call getConnection(transaction) from the JDBC data store you're using
* use the connection to do whatever jdbc operations you need
* use the same gt2 transaction in feature operations
* commit the gt2 transaction
* close the gt2 transaction

Oh, don't close the connection you get at the second point, geotools
will do it when you do close the gt2 transaction.

Hope this helps

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to