Subject Re: Record Locking
Author Roman Rokytskyy
Hi,

> How can a set my custom TPB mapping with FBWrappingDataSource?
> Should I use FBConnectionRequestInfo.setProperty or the explained
> above JDBC url way?

I'm not sure if URL way will work there, and FBConnectionRequestInfo
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