Re: Migrating from embedded Tomcat6 to Tomcat8

2015-07-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Maxim,

On 7/3/15 8:28 AM, Mark Thomas wrote:
 On 03/07/2015 12:43, Maxim Solodovnik wrote:
 Hello,
 
 sorry for the newbie question but I was unable to find the answer
 using search :( I'm trying to migrate custom embedded tomcat
 loader from Tomcat6 (works as expected with Tomcat7 with lots of
 deprecations) to Tomcat8.
 
 Previously it was possible to add multiple Engines to Tomcat
 instance, how this can be achieved in Tomcat8?
 
 source file for Tomcat.java  states: // Single engine, service,
 server, connector - few cases need more, they can use server.xml
 unfortunately I need to do it using java (without server.xml)
 
 Thanks in advance for your answers!
 
 Use Tomcat as your starting point.

Just to clarify, this is the org.apache.catalina.startup.Tomcat class
that Mark is talking about.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVmunxAAoJEBzwKT+lPKRYeoIQAIbyDnbhEJvEN86gHIZmskrD
r3Reg4ItnSD6fvLz6WZIqxfUkajKRhayz6L8Y2VZKedBfY7acwevNhuauxevKXKu
hU3O382FjjXRRsr8Uhgo8CmFVd1BaclOeSAvSS9NWlNHFSR9FS/BFHovjfGSxZa4
P9nzhLuUZgSaGUWm/71tmJPkySD8watndIeBsWBsOYlH9Fx4P3G5ohvaU3GEF+Eo
RJDcWNhfx2KivvTYFQRwmrqwKDEgRKwNDFlNh9vcjbc70P9UwcmgLbTP4ICwpxQx
GodD3LlKsdLeiID/EdVjQhsK0NsulJ8NSTpxkTCJeFCRaUUFaqSFI+l+kcRyJypq
SDIueEayNoLSPBZ+d3/SJ4dozO5g4Dr6zatJpve93bU78bQC0pUxEvKQByhYOjwc
Z8winJMXRODb1eDNPul1A/QDu4llfy/sqjXtKg464Qw5uV4S3StTQ85biZIiIFRV
oviOPjq5gKu/FsxZYRDeh26gYWqIahKDzILOiBqCCwiOHZnljLi2HmwScrYLEDML
2FDjKc5S5qgDb6V7XzywLf9l9szKLyspx4KInztRs0d9cLV6yxcZDX0lBj52i8LB
Vt8/GvF+rdUH15Lyd55z6s/kC2UY9Olbz0wJCoTxD5RxWon0X7PyWvTK4ql5VsbB
3rdkykgjns764Wgimwek
=wov6
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Migrating from embedded Tomcat6 to Tomcat8

2015-07-06 Thread Maxim Solodovnik
Thanks Mark and Chris,

I was able to successfully migrate the code :)

On Tue, Jul 7, 2015 at 2:49 AM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Maxim,

 On 7/3/15 8:28 AM, Mark Thomas wrote:
  On 03/07/2015 12:43, Maxim Solodovnik wrote:
  Hello,
 
  sorry for the newbie question but I was unable to find the answer
  using search :( I'm trying to migrate custom embedded tomcat
  loader from Tomcat6 (works as expected with Tomcat7 with lots of
  deprecations) to Tomcat8.
 
  Previously it was possible to add multiple Engines to Tomcat
  instance, how this can be achieved in Tomcat8?
 
  source file for Tomcat.java  states: // Single engine, service,
  server, connector - few cases need more, they can use server.xml
  unfortunately I need to do it using java (without server.xml)
 
  Thanks in advance for your answers!
 
  Use Tomcat as your starting point.

 Just to clarify, this is the org.apache.catalina.startup.Tomcat class
 that Mark is talking about.

 - -chris
 -BEGIN PGP SIGNATURE-
 Comment: GPGTools - http://gpgtools.org

 iQIcBAEBCAAGBQJVmunxAAoJEBzwKT+lPKRYeoIQAIbyDnbhEJvEN86gHIZmskrD
 r3Reg4ItnSD6fvLz6WZIqxfUkajKRhayz6L8Y2VZKedBfY7acwevNhuauxevKXKu
 hU3O382FjjXRRsr8Uhgo8CmFVd1BaclOeSAvSS9NWlNHFSR9FS/BFHovjfGSxZa4
 P9nzhLuUZgSaGUWm/71tmJPkySD8watndIeBsWBsOYlH9Fx4P3G5ohvaU3GEF+Eo
 RJDcWNhfx2KivvTYFQRwmrqwKDEgRKwNDFlNh9vcjbc70P9UwcmgLbTP4ICwpxQx
 GodD3LlKsdLeiID/EdVjQhsK0NsulJ8NSTpxkTCJeFCRaUUFaqSFI+l+kcRyJypq
 SDIueEayNoLSPBZ+d3/SJ4dozO5g4Dr6zatJpve93bU78bQC0pUxEvKQByhYOjwc
 Z8winJMXRODb1eDNPul1A/QDu4llfy/sqjXtKg464Qw5uV4S3StTQ85biZIiIFRV
 oviOPjq5gKu/FsxZYRDeh26gYWqIahKDzILOiBqCCwiOHZnljLi2HmwScrYLEDML
 2FDjKc5S5qgDb6V7XzywLf9l9szKLyspx4KInztRs0d9cLV6yxcZDX0lBj52i8LB
 Vt8/GvF+rdUH15Lyd55z6s/kC2UY9Olbz0wJCoTxD5RxWon0X7PyWvTK4ql5VsbB
 3rdkykgjns764Wgimwek
 =wov6
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
WBR
Maxim aka solomax


Re: Migrating from embedded Tomcat6 to Tomcat8

2015-07-03 Thread Mark Thomas
On 03/07/2015 12:43, Maxim Solodovnik wrote:
 Hello,
 
 sorry for the newbie question but I was unable to find the answer using
 search :(
 I'm trying to migrate custom embedded tomcat loader from Tomcat6 (works as
 expected with Tomcat7 with lots of deprecations) to Tomcat8.
 
 Previously it was possible to add multiple Engines to Tomcat instance, how
 this can be achieved in Tomcat8?
 
 source file for Tomcat.java  states: // Single engine, service, server,
 connector - few cases need more, they can use server.xml unfortunately I
 need to do it using java (without server.xml)
 
 Thanks in advance for your answers!

Use Tomcat as your starting point.

The  Single... refers to the utility methods (e.g. getConnector()).
They will only return the first created instance of each type.

You can still call getServer().addServicer(...) etc. to add multiple
Services, Connectors etc.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Migrating from embedded Tomcat6 to Tomcat8

2015-07-03 Thread Maxim Solodovnik
Hello,

sorry for the newbie question but I was unable to find the answer using
search :(
I'm trying to migrate custom embedded tomcat loader from Tomcat6 (works as
expected with Tomcat7 with lots of deprecations) to Tomcat8.

Previously it was possible to add multiple Engines to Tomcat instance, how
this can be achieved in Tomcat8?

source file for Tomcat.java  states: // Single engine, service, server,
connector - few cases need more, they can use server.xml unfortunately I
need to do it using java (without server.xml)

Thanks in advance for your answers!

-- 
WBR
Maxim aka solomax