Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference?
I am able to run the service either secure or insecure using:
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
or
<transport-guarantee>NONE</transport-guarantee>
inside sun-ejb-jar.xml
IE.
<ejb>
<ejb-name>MyEJB</ejb-name>
<webservice-endpoint>
<port-component-name>MyWebService</port-component-name>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</webservice-endpoint>
</ejb>
Suggestions?
Why you just not proxy app server with Apache HTTP server or similar? I usually do this way and leave SSL handshaking/open text connection to HTTP in front of it.
just remove the <transport-guarantee>CONFIDENTIAL</transport-guarantee>
, your beans will be available on http and https also.
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
means strict security, any http request coming is redirected to https(ssl).
removing this <transport-guarantee>CONFIDENTIAL</transport-guarantee>
you will get great flexibility.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With