Hi I have an API that wraps Jena's, and I want to detect isInTransaction in all cases. Apparently this implies to detect whether a Dataset is closed.
Currently I'm obliged (not sure !) to do : public boolean isInTransaction() { try { return dataset.isInTransaction(); } catch ( JenaTransactionException e){ if (e.getMessage().contains( "Already closed")) return false; else throw e; } } Is there a better way ? -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui