Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Okay issues have now been resolved. Below is the extract of code which is creating and starting the connection. One of the main problems was the SSL keys were made for a user called dev1, whereas my user is mcanty. If I'd known more I'm sure this result would have come sooner.</p> <pre><code> public SISMQConnection(string connectionFactoryName, string queueName, string sslPeerName, string bindingsFilePath, string sslKeyRepository) { try { Hashtable aHashtable = new Hashtable { { "XMSC_IC_URL", bindingsFilePath } }; InitialContext jndi = new InitialContext(aHashtable); //Java Naming and Directory Interface (JNDI) _queueObject = (IDestination)jndi.Lookup(queueName); _queueManager = (IConnectionFactory)jndi.Lookup(connectionFactoryName); _queueManager.SetStringProperty(XMSC.WMQ_SSL_PEER_NAME, string.Format("CN=\"{0}\"", sslPeerName)); _queueManager.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT_UNMANAGED); _queueManager.SetStringProperty(XMSC.WMQ_SSL_KEY_REPOSITORY, sslKeyRepository); _queueManager.SetStringProperty(XMSC.WMQ_SSL_CIPHER_SPEC, "DES_SHA_EXPORT"); } catch (Exception e) { } } public void Connect() { try { IConnection QueueConnection = _queueManager.CreateConnection(); QueueSession = QueueConnection.CreateSession(true, AcknowledgeMode.AutoAcknowledge); IMessageConsumer QueueConsumer = QueueSession.CreateConsumer(_queueObject); QueueConsumer.MessageListener = OnNewMessageCallback; QueueConnection.Start(); } catch (Exception e) { } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload