I need some help with SSL, I am using an EMSTemplate.Send() to publish a message to Tibco EMS, when the actual send occurs i am getting "unable to establish SSL" exceptions.

Can someone tell me what values in the xml need to be configured for SSL, or point me to an example.

<!-- EmsConnectionFactory refers to JndiEmsConnectionFactory to fetch EMS Connection Factory-->
<object id="DEV_EmsConnectionFactory" type="Spring.Messaging.Ems.Common.EmsConnectionFac tory, Spring.Messaging.Ems" lazy-init="true">
<constructor-arg ref="DEV01_JndiEmsConnectionFactoryLogger"/>
<property name="UserName" value="Username" />
<property name="UserPassword" value="Password" />
<!--<property name="ConnAttemptCount" value="10"/>
<property name="ReconnAttemptCount" value="10"/>
<property name="ReconnAttemptDelay" value="20"/>-->
<!-- SSL setting -->
<property name="TargetHostName" value="THValue" />
</object>

<!-- Fetch EMS Connection Factory from JNDI-->
<object id="DEV_JndiEmsConnectionFactory" type="Spring.Messaging.Ems.Jndi.JndiLookupFactoryO bject, Spring.Messaging.Ems" lazy-init="true">
<!-- SSL connection factory which contains SSL EMS URL -->
<property name="JndiName" value="SSLQueueConnectionFactory"/>
<property name="JndiProperties[LookupContext.PROVIDER_URL]" value="tibjmsnaming://Host:SSLPort,tibjmsnaming://Host2:SSLPort"/>
<property name="JndiProperties[LookupContext.SECURITY_PRINCIPAL]" value="Username"/>
<property name="JndiProperties[LookupContext.SECURITY_CREDENTIALS]" value="Password"/>
</object>