Subject | Re: Record Locking |
---|---|
Author | Roman Rokytskyy |
Post date | 2003-05-23T08:01:07Z |
Hi,
will not work for sure. FBWrappingDataSource has method
setTransactionParameters(FBTpb params). FBTpb is defined in
org.firebirdsql.jca.* package. It has constructor that takes
FBTpbMapper instance, which in turn has constructor taking Map as
param. So code would look like this:
HashMap tpbMap = new HashMap();
tpbMap.put("TRANSACTION_READ_COMMITTED",
"isc_tpb_read_committed,isc_tpb_write,...");
...
FBTpbMapper mapper = new FBTpbMapper(tpbMap);
FBTpb tpb = new FBTpb(mapper);
myWrappingDataSource.setTransactionParameters(tpb);
Best regards,
Roman Rokytskyy
> How can a set my custom TPB mapping with FBWrappingDataSource?I'm not sure if URL way will work there, and FBConnectionRequestInfo
> Should I use FBConnectionRequestInfo.setProperty or the explained
> above JDBC url way?
will not work for sure. FBWrappingDataSource has method
setTransactionParameters(FBTpb params). FBTpb is defined in
org.firebirdsql.jca.* package. It has constructor that takes
FBTpbMapper instance, which in turn has constructor taking Map as
param. So code would look like this:
HashMap tpbMap = new HashMap();
tpbMap.put("TRANSACTION_READ_COMMITTED",
"isc_tpb_read_committed,isc_tpb_write,...");
...
FBTpbMapper mapper = new FBTpbMapper(tpbMap);
FBTpb tpb = new FBTpb(mapper);
myWrappingDataSource.setTransactionParameters(tpb);
Best regards,
Roman Rokytskyy