Author |
Message
|
jeevan |
Posted: Thu Sep 13, 2012 1:18 pm Post subject: can a single port be configured to listen both http/https re |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
can we configure a port to listen - http and https both request in websphere message broker. This is in context a webservice call. we are changing from http to https and trying to avoid creating another url and give to LB folks. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Sep 14, 2012 5:01 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
jeevan wrote: |
can we configure a port to listen - http and https both request in websphere message broker. This is in context a webservice call. we are changing from http to https and trying to avoid creating another url and give to LB folks. |
You can have both http and https traffic processed by your message flow, but you need two input nodes, one with 'useHTTPS' set to true and one set to false.
The port number will be different, not the same number: one for S and one for not. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
jeevan |
Posted: Fri Sep 14, 2012 5:30 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
lancelotlinc wrote: |
jeevan wrote: |
can we configure a port to listen - http and https both request in websphere message broker. This is in context a webservice call. we are changing from http to https and trying to avoid creating another url and give to LB folks. |
You can have both http and https traffic processed by your message flow, but you need two input nodes, one with 'useHTTPS' set to true and one set to false.
The port number will be different, not the same number: one for S and one for not. |
I understand that having two different port works. My questions was can I change a port which was listening a http traffie to receive the https traffic. There is not need of receiving http traffic any more.
Last edited by jeevan on Fri Sep 14, 2012 7:34 am; edited 1 time in total |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 14, 2012 5:53 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
jeevan wrote: |
lancelotlinc wrote: |
jeevan wrote: |
can we configure a port to listen - http and https both request in websphere message broker. This is in context a webservice call. we are changing from http to https and trying to avoid creating another url and give to LB folks. |
You can have both http and https traffic processed by your message flow, but you need two input nodes, one with 'useHTTPS' set to true and one set to false.
The port number will be different, not the same number: one for S and one for not. |
I understand that having two different port works. My questions was can I change a port which was listening a http traffie to receive the https traffic. There is not need of receing http traffic any more. |
Yes.
You can set the HTTPSConnector to use any port you want, as long as that port is not in use (for example, in use by the HTTPConnector). |
|
Back to top |
|
 |
jeevan |
Posted: Fri Sep 14, 2012 7:32 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
mqjeff wrote: |
jeevan wrote: |
lancelotlinc wrote: |
jeevan wrote: |
can we configure a port to listen - http and https both request in websphere message broker. This is in context a webservice call. we are changing from http to https and trying to avoid creating another url and give to LB folks. |
You can have both http and https traffic processed by your message flow, but you need two input nodes, one with 'useHTTPS' set to true and one set to false.
The port number will be different, not the same number: one for S and one for not. |
I understand that having two different port works. My questions was can I change a port which was listening a http traffie to receive the https traffic. There is not need of receing http traffic any more. |
Yes.
You can set the HTTPSConnector to use any port you want, as long as that port is not in use (for example, in use by the HTTPConnector). |
Oh, ok. I understand now. if that port is assigned to httpconnector I have to release it from there and assign to httpsconnector.
one more question, lets say we did not assign another port for ssl connection ( leave the default), and send the request to the same port( means https request to http port which is working now), will that traffic be routed to the ssl port automatically?
thanks
Last edited by jeevan on Fri Sep 14, 2012 7:35 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Sep 14, 2012 7:34 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
jeevan wrote: |
, will that traffic be routed to the ssl port automatically? |
No. Have you attended the class? These are basic questions provided in training WMB Dev I class. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
jeevan |
Posted: Fri Sep 14, 2012 7:37 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
lancelotlinc wrote: |
jeevan wrote: |
, will that traffic be routed to the ssl port automatically? |
No. Have you attended the class? These are basic questions provided in training WMB Dev I class. |
I am not a develoepr by the way. I understand from admin point of view. But one of my was guy said, that works in WAS( that means redirect happens automatically when the ssl uses the default port 443 in case of WAS). |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Sep 14, 2012 7:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
In general, you are recommended to put an HTTP Server of some kind in front of your message broker installs. The HTTP Server itself would then handle things like redirecting SSL connections to the correct port.
This is part of the reason I made noise recently about the new features in FixPack 1 of Broker v8 to make it easier to do exactly that. |
|
Back to top |
|
 |
jeevan |
Posted: Fri Sep 14, 2012 7:48 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
mqjeff wrote: |
In general, you are recommended to put an HTTP Server of some kind in front of your message broker installs. The HTTP Server itself would then handle things like redirecting SSL connections to the correct port.
This is part of the reason I made noise recently about the new features in FixPack 1 of Broker v8 to make it easier to do exactly that. |
if I understood you correctly, if there was a webserver in front of the broker, then we will not need to bother changing url or creating a new entry in LB( this is our issue now, as we want to move from http to https, and just now i confirm that they still need http connection as well for sometime).
In our case, we have to create a new url or ask LB folks wtether they can sense the https ( same url but instead of http just has https) and forward that to server:httpsport instead of server:httpport
thanks |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Sep 14, 2012 7:55 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
jeevan wrote: |
lancelotlinc wrote: |
jeevan wrote: |
, will that traffic be routed to the ssl port automatically? |
No. Have you attended the class? These are basic questions provided in training WMB Dev I class. |
I am not a develoepr by the way. I understand from admin point of view. But one of my was guy said, that works in WAS( that means redirect happens automatically when the ssl uses the default port 443 in case of WAS). |
Then this training roadmap would be good for you to absorb:
http://www-304.ibm.com/jct03001c/services/learning/us/pdfs/roadmaps/wmb_v8_sa.pdf
Note the Administrator class Id is WM644. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
jeevan |
Posted: Fri Sep 14, 2012 8:03 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
lancelotlinc wrote: |
jeevan wrote: |
lancelotlinc wrote: |
jeevan wrote: |
, will that traffic be routed to the ssl port automatically? |
No. Have you attended the class? These are basic questions provided in training WMB Dev I class. |
I am not a develoepr by the way. I understand from admin point of view. But one of my was guy said, that works in WAS( that means redirect happens automatically when the ssl uses the default port 443 in case of WAS). |
Then this training roadmap would be good for you to absorb:
http://www-304.ibm.com/jct03001c/services/learning/us/pdfs/roadmaps/wmb_v8_sa.pdf
Note the Administrator class Id is WM644. |
I do not think I need any training. training is necessary for those who
do not know what they know
do not know what they do not know, and
do not know what they have to know,
but I
know what I know
know what I do not know, and
know what i need to know.
So I can find what I needed ( though not easy way but I love this). Learning is always torture as in true sense learning means change in behaviour which is always not easy).
thanks for suggestions though |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Sep 14, 2012 11:43 am Post subject: Re: can a single port be configured to listen both http/http |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
jeevan wrote: |
lancelotlinc wrote: |
Note the Administrator class Id is WM644. |
I do not think I need any training. training is necessary for those who
do not know what they know
do not know what they do not know, and
do not know what they have to know,
but I
know what I know
know what I do not know, and
know what i need to know.
So I can find what I needed ( though not easy way but I love this). Learning is always torture as in true sense learning means change in behaviour which is always not easy).
thanks for suggestions though |
Then why are you posting basic questions here which have clear and concise answers in the InfoCentre? If you know what you do not know, you should be reading the InfoCentre first, trying an example second, using Trace nodes , user trace, et al. to figure out why what you are trying is not working rather than inflicting your 'know what i need to know' pain on others.
Here are the InfoCentre pages that talk about setting up WMB runtime for secure and non-secure ports. After reading these pages, is there something that is not so obvious in the InfoCentre and needs clarification for you?
http://www-01.ibm.com/support/docview.wss?uid=swg21420032
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fap12234_.htm
http://www.ibm.com/developerworks/websphere/library/techarticles/0902_henley/0902_henley.html
Had you found these pages before? If not, did you use Google to look? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|