Reputation: 21
I have a software project running in IBM Websphere 8.5.5. It needs to lookup the JTA TransactionManager from the application server. Currently it uses the com.ibm.ws.Transaction.TransactionManagerFactory
class, and then calls getTransactionManager()
on that.
My question is this: Is it legitimate to do this in IBM Websphere 8.5? It seems there are newer interfaces around (e.g. UOWManager
). However, I haven't been able to find any documentation on the use of com.ibm.ws.Transaction.TransactionManagerFactory
beyond Websphere 5. It doesn't say anywhere that it can be used. It doesn't say anywhere that it shouldn't be used either.
So does com.ibm.ws.Transaction.TransactionManagerFactory
still work, albeit old-fashioned? Or is it problematic and shouldn't be used?
(I haven't seen the code fail so far, but this might mean either a) it works properly, or b) we just haven't hit the right test cases!)
Upvotes: 2
Views: 1510
Reputation: 3211
com.ibm.ws.Transaction.TransactionManagerFactory is considered a product internal and is therefore not supported by application use (that is why it isn't documented). The UOWManager is supported and should support the key use cases people ask for TransactionManager access for. Without knowing what the use case is I can't provide better advice.
Upvotes: 4