I believe that type 2 connections are extensively documented in the DB2 manuals. I don't know which additional information you may need for those. Also, we have no idea about your application and programming language.
If you are inside a stored procedure, your only option in federation. Federation already comes with the necessary infrastructure for distributed transactions, i.e. it performs two-phase commit itself and DB2 acts as a transaction manager in that case.