-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
Sprint 10.0.0.Alpha1, Sprint 10.0.0.Alpha2, Sprint 10.0.0.Beta1, DataGrid Sprint #31, DataGrid Sprint #32, DataGrid Sprint #33
The RemoteCacheManager.getCache() methods would fail to return a transactional cache if the cache in server isn't transactional. It would throw an exception! NotTransactionalException?
The user can fallback to the non transaction case, example
try { cache = remoteCacheManager.getCache("some-cache", TransactionMode.NON_XA); } catch(NotTransactionalException e) { cache = remoteCacheManager.getCache("some-cache", TransactionMode.NONE); }
In addition, some helper method can be added to the RemoteCacheManager to avoid dealing with exceptions:
boolean supportsTransactions(String cacheName);
simple example:
boolean txCache = remoteCacheManager.supportsTransactions("some-cache"); remoteCacheManager.getCache("some-cache", txCache ? TransactionMode.NON_XA : TransactionMode.NONE);
- blocks
-
TEIID-5449 Infinispan: Update Infinispan translator to 9.3 version
- Resolved