Author |
Message
|
bart simpson |
Posted: Fri Apr 08, 2011 1:01 am Post subject: Connection to the MQ through a proxy |
|
|
Newbie
Joined: 04 Apr 2011 Posts: 6
|
Hello.
Tell me how to configure the connection java client with the MQ through a proxy? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 08, 2011 1:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
First create a connection java client with the MQ.
Then change the connection information to point to the proxy.
Then make sure the proxy points at the right MQ. |
|
Back to top |
|
 |
bart simpson |
Posted: Fri Apr 08, 2011 1:29 am Post subject: |
|
|
Newbie
Joined: 04 Apr 2011 Posts: 6
|
And where you can read about it or look at the examples, but it is not clear. I put setProxyHostName setProxyPort, but the connection vserovno goes on line. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Apr 08, 2011 1:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't just use any kind of proxy server with an MQ Client connection. Particularly if it's an HTTP Proxy.
MQ is not HTTP.
You will probably get better answers if you show the code you are trying to use. |
|
Back to top |
|
 |
bart simpson |
Posted: Fri Apr 08, 2011 1:48 am Post subject: |
|
|
Newbie
Joined: 04 Apr 2011 Posts: 6
|
Here is a code to connect
Code: |
MQQueueConnectionFactoryfactory = new MQQueueConnectionFactory();
Properties prop = settings.getPropertiesMQ();
factory.setHostName(...);
factory.setPort(...);
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
factory.setChannel(...);
factory.setQueueManager(...);
factory.setCCSID(...);
factory.setSSLCipherSuite(...);
factory.setProxyHostName(...);
factory.setProxyPort(...);
ConnectionFactory qcf = factory;
connection = qcf.createConnection("user", "password");
|
|
|
Back to top |
|
 |
bart simpson |
Posted: Mon Apr 11, 2011 12:36 am Post subject: |
|
|
Newbie
Joined: 04 Apr 2011 Posts: 6
|
Does not anyone faced with the proxy settings for MQ? |
|
Back to top |
|
 |
|