How to make a custom exec block as a Transaction

Hi ,

I have to call a custom java method from my Gatling exec block , but since its not using a standard protocol like http etc . . , this exec block even though does work , its not reported in the html report for the test. Is there a way to name this exec block and have gatling pick this exec block as a transaction and hence provide stats for this transaction in the html report ?

val sqsMsgSend=
val dataLine=session(“dataLine”).as[String];
var jj=PublishTextMessageToQueue(jmsUrl,jmsUsername,jmsPwd,jmsQname,dataLine)

Why not use our JMS support?