By using the CICS Transaction Gateway ( CTG ). There are ibm jar files which can connect you to CICS
By connecting directly to CICS with IPIC connection (http://jeethoughts.wordpress.com/2010/06/04/calling-cics-without-a-ctg-using-the-resource-adapter/)