Hi,
To make it use https, you need to configure transport-level security
on the corresponding URI pattern in the web.xml for your application.
E.g. by including this xml element in <web-app> xml element of web.xml:
<security-constraint>
<display-name>SSL</display-name>
<web-resource-collection>
<web-resource-name>REST API</web-resource-name>
<description/>
<url-pattern>/webresources/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Regards,
Martin
On Sep 16, 2010, at 2:13 PM, glassfish_at_javadesktop.org wrote:
> I have successfully built and run a few of the RESTful web services
> in the Samples that came with Glassfish3/NetBeans.
>
> Is there a place to configure the ports which the newly created web
> services (WS) will listen to? Be default, it is always bound to the
> http-listener-1.
> I want my WS to bind to http-listener-2 (which is a secure channel).
>
> How do I do that? Anyone?
>
> Thanks!
> [Message sent by forum member 'arthury']
>
> http://forums.java.net/jive/thread.jspa?messageID=483002
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>