tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhuvanesh Pattanashetti <bhuva...@gmail.com>
Subject Re: Query on Tomcat Server.xml
Date Mon, 07 Sep 2009 04:00:10 GMT
Hello chris,

Thanks for your suggestions,
this is service injected spring dM(spring and OSGI combination). This is
same <service/> tag present in server.xml , injected by spingdM in object
format(instance of ). SpringDm or Spring does not support connector for
tomcat.

I wanted to create connector using tomcat Apis.

Connector conn = new Connector();
conn.setPort(8070);

service.addConnector(conn);

This above code is working fine. I m able to access the appication with this
connector port (8070).

*But i wanted to configure the Https port in the same manner. *

Connector class does not have* setKeyStoreFile* of *setKeyStorePassword*method.

I tried with connector.setAttribute("keystoreFile", filePath);

But this is not working. :(

Is there any specific way to for creating https connector using tomcat APIs?

Thanks,
Bhuvan P



On Fri, Sep 4, 2009 at 2:29 AM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bhuvan,
>
> On 9/2/2009 1:44 AM, Bhuvanesh Pattanashetti wrote:
> > Thanks for your suggestion,
> > I wanted only some part of tomcat to be customized.So it would be risky
> and
> > time consuming if i override the whole part.
> >
> > I have reached some extent.
> >
> > i m using spring-DM running on tomcat. Spring-DM is able to inject
> > the <Service/> object my business class.
>
> Wait... are you trying to have Spring inject Tomcat's Service object
> into one of your own classes? I suspect you're getting a worthless
> Service object (that is, one created from scratch that has nothing to do
> with the currently-running Tomcat).
>
> > I wanted to add https port(Http11NioProtocol connector element) to
> > this <Service/> through coding.
>
> If you're using Spring, and you already have a Service object, why not
> just have Spring create a Http11NioConnector object and attach it to
> that service?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkqgLh0ACgkQ9CaO5/Lv0PCGJwCghScN9K9OyQ4hI5yYZmeHJV6N
> YyUAn0AOSBst6R05W+sevQCDTcyUI3Lh
> =01Mq
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message