users@glassfish.java.net

setting imqSSLIsHostTrusted property

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Jun 2009 08:14:22 PDT

Hi,

I need to set the "imqSSLIsHostTrusted" property to true for a remote broker which I connect to via glassfish (via AddressList). This to enable SSL. When I add the property, though, I see it tries to call setImqSSLIsHostTrusted on startup (which obviously fails).

I also constantly see constructors with imqSSLIsHostTrusted=false as an argument, eg:

MQJMSRA_MC1101: constructor:Created mcId=66:xacId=8621052851820719616:Using xacf config={imqOverrideJMSPriority=false, imqConsumerFlowLimit=1000, imqOverrideJMSExpiration=false, imqAddressListIterations=3, imqLoadMaxToServerSession=true, imqConnectionType=TCP, imqPingInterval=30, imqSetJMSXUserID=false, imqConfiguredClientID=, imqSSLProviderClassname=com.sun.net.ssl.internal.ssl.Provider, imqJMSDeliveryMode=PERSISTENT, imqConnectionFlowLimit=1000, imqConnectionURL=http://localhost/imq/tunnel, imqBrokerServiceName=, imqJMSPriority=4, imqBrokerHostName=localhost, imqJMSExpiration=0, imqAckOnProduce=, imqEnableSharedClientID=false, imqAckTimeout=0, imqAckOnAcknowledge=, imqConsumerFlowThreshold=50, imqDefaultPassword=guest, imqQueueBrowserMaxMessagesPerRetrieve=1000, imqDefaultUsername=guest, imqReconnectEnabled=true, imqConnectionFlowCount=100, imqAddressListBehavior=RANDOM, imqReconnectAttempts=3, imqSetJMSXAppID=false, imqConnectionHandler=com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler, imqSetJMSXRcvTimestamp=false, imqBrokerServicePort=0, imqDisableSetClientID=false, imqSetJMSXConsumerTXID=false, imqOverrideJMSDeliveryMode=false, imqBrokerHostPort=7676, imqQueueBrowserRetrieveTimeout=60000, imqSetJMSXProducerTXID=false, [b]imqSSLIsHostTrusted=false[/b], imqConnectionFlowLimitEnabled=false, imqReconnectInterval=5000, imqAddressList=localhost:7676, imqOverrideJMSHeadersToTemporaryDestinations=false}

Am I looking in the wrong place? Where can I set this darn property? I tried setting it explicitly in the code, but instead of getting the queue I get the adapter. Is it even possible to do through glassfish or do I need to do it on the remote broker?

Any assistance greatly appreciated.
[Message sent by forum member 'sirfalse' (sirfalse)]

http://forums.java.net/jive/thread.jspa?messageID=351217