You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2012/04/23 16:41:01 UTC
Tomcat embedding
Last year, I took a look at tomcat as an alternative to Jetty for
embedding purposes.
I ran aground, I was just too ignorant.
Since I seem, again, to be hitting jetty bugs that close 'idle'
connections inappropriately, I've got myself interested again.
Is anyone who has a grip on server transports willing to help me out?
Re: Tomcat embedding
Posted by Willem Jiang <wi...@gmail.com>.
It could be more easy to leverage the servlet transport (which could be
used across the web container)
instead of starting the engine inside the CXF.
On Tue Apr 24 08:44:13 2012, Benson Margulies wrote:
> On Mon, Apr 23, 2012 at 8:09 PM, Glen Mazza<gl...@gmail.com> wrote:
>> Really? AFAICT the code I linked to *is* using Tomcat, if perhaps not
>> directly in the manner that you're interested.
>> Glen
>
> Really. Currently, when you just 'launch an endpoint', CXF launches
> Jetty behind your back. I'd love to make it possible for CXF to do the
> same with Tomcat; however, your scheme gets me the same end-user
> benefits for a lot less effort than building a http_tomcat transport
> next to the http_jetty transport.
>
>
>>
>>
>> Benson Margulies wrote
>>>
>>> Glen,
>>>
>>> This is very helpful if I want to cheap out of actually teaching CXF
>>> to embed tomcat as it currently embeds Jetty:-)
>>>
>>> On Mon, Apr 23, 2012 at 1:46 PM, Glen Mazza<glen.mazza@> wrote:
>>>>
>>>> Benson Margulies wrote
>>>>>
>>>>> Last year, I took a look at tomcat as an alternative to Jetty for
>>>>> embedding purposes.
>>>>>
>>>>> I ran aground, I was just too ignorant.
>>>>>
>>>>> Since I seem, again, to be hitting jetty bugs that close 'idle'
>>>>> connections inappropriately, I've got myself interested again.
>>>>>
>>>>> Is anyone who has a grip on server transports willing to help me out?
>>>>>
>>>>
>>>> I had done an example with embedded Tomcat a while back, perhaps it might
>>>> help you:
>>>> http://www.jroller.com/gmazza/entry/junit_web_service_testing#testtc
>>>>
>>>> Glen
>>>>
>>>> --
>>>> View this message in context:
>>>> http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660035.html
>>>> Sent from the cxf-dev mailing list archive at Nabble.com.
>>>
>>
>>
>> --
>> View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660755.html
>> Sent from the cxf-dev mailing list archive at Nabble.com.
>
--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang
Re: Tomcat embedding
Posted by Benson Margulies <bi...@gmail.com>.
On Mon, Apr 23, 2012 at 8:09 PM, Glen Mazza <gl...@gmail.com> wrote:
> Really? AFAICT the code I linked to *is* using Tomcat, if perhaps not
> directly in the manner that you're interested.
> Glen
Really. Currently, when you just 'launch an endpoint', CXF launches
Jetty behind your back. I'd love to make it possible for CXF to do the
same with Tomcat; however, your scheme gets me the same end-user
benefits for a lot less effort than building a http_tomcat transport
next to the http_jetty transport.
>
>
> Benson Margulies wrote
>>
>> Glen,
>>
>> This is very helpful if I want to cheap out of actually teaching CXF
>> to embed tomcat as it currently embeds Jetty:-)
>>
>> On Mon, Apr 23, 2012 at 1:46 PM, Glen Mazza <glen.mazza@> wrote:
>>>
>>> Benson Margulies wrote
>>>>
>>>> Last year, I took a look at tomcat as an alternative to Jetty for
>>>> embedding purposes.
>>>>
>>>> I ran aground, I was just too ignorant.
>>>>
>>>> Since I seem, again, to be hitting jetty bugs that close 'idle'
>>>> connections inappropriately, I've got myself interested again.
>>>>
>>>> Is anyone who has a grip on server transports willing to help me out?
>>>>
>>>
>>> I had done an example with embedded Tomcat a while back, perhaps it might
>>> help you:
>>> http://www.jroller.com/gmazza/entry/junit_web_service_testing#testtc
>>>
>>> Glen
>>>
>>> --
>>> View this message in context:
>>> http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660035.html
>>> Sent from the cxf-dev mailing list archive at Nabble.com.
>>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660755.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by Glen Mazza <gl...@gmail.com>.
Really? AFAICT the code I linked to *is* using Tomcat, if perhaps not
directly in the manner that you're interested.
Glen
Benson Margulies wrote
>
> Glen,
>
> This is very helpful if I want to cheap out of actually teaching CXF
> to embed tomcat as it currently embeds Jetty:-)
>
> On Mon, Apr 23, 2012 at 1:46 PM, Glen Mazza <glen.mazza@> wrote:
>>
>> Benson Margulies wrote
>>>
>>> Last year, I took a look at tomcat as an alternative to Jetty for
>>> embedding purposes.
>>>
>>> I ran aground, I was just too ignorant.
>>>
>>> Since I seem, again, to be hitting jetty bugs that close 'idle'
>>> connections inappropriately, I've got myself interested again.
>>>
>>> Is anyone who has a grip on server transports willing to help me out?
>>>
>>
>> I had done an example with embedded Tomcat a while back, perhaps it might
>> help you:
>> http://www.jroller.com/gmazza/entry/junit_web_service_testing#testtc
>>
>> Glen
>>
>> --
>> View this message in context:
>> http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660035.html
>> Sent from the cxf-dev mailing list archive at Nabble.com.
>
--
View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660755.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by Benson Margulies <bi...@gmail.com>.
Glen,
This is very helpful if I want to cheap out of actually teaching CXF
to embed tomcat as it currently embeds Jetty:-)
On Mon, Apr 23, 2012 at 1:46 PM, Glen Mazza <gl...@gmail.com> wrote:
>
> Benson Margulies wrote
>>
>> Last year, I took a look at tomcat as an alternative to Jetty for
>> embedding purposes.
>>
>> I ran aground, I was just too ignorant.
>>
>> Since I seem, again, to be hitting jetty bugs that close 'idle'
>> connections inappropriately, I've got myself interested again.
>>
>> Is anyone who has a grip on server transports willing to help me out?
>>
>
> I had done an example with embedded Tomcat a while back, perhaps it might
> help you:
> http://www.jroller.com/gmazza/entry/junit_web_service_testing#testtc
>
> Glen
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660035.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by Glen Mazza <gl...@gmail.com>.
Benson Margulies wrote
>
> Last year, I took a look at tomcat as an alternative to Jetty for
> embedding purposes.
>
> I ran aground, I was just too ignorant.
>
> Since I seem, again, to be hitting jetty bugs that close 'idle'
> connections inappropriately, I've got myself interested again.
>
> Is anyone who has a grip on server transports willing to help me out?
>
I had done an example with embedded Tomcat a while back, perhaps it might
help you:
http://www.jroller.com/gmazza/entry/junit_web_service_testing#testtc
Glen
--
View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5660035.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by Olivier Lamy <ol...@apache.org>.
Hello Benson,
Maybe I can help on this area :-).
Note using tomcat embedding need to have a 1.6 build.
2012/4/23 Benson Margulies <bi...@gmail.com>:
> Last year, I took a look at tomcat as an alternative to Jetty for
> embedding purposes.
>
> I ran aground, I was just too ignorant.
>
> Since I seem, again, to be hitting jetty bugs that close 'idle'
> connections inappropriately, I've got myself interested again.
>
> Is anyone who has a grip on server transports willing to help me out?
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
Re: Tomcat embedding
Posted by Benson Margulies <bi...@gmail.com>.
I
On Sat, Aug 18, 2012 at 4:52 PM, rpomeroy <rp...@me.com> wrote:
> I'm interested in a one-for-one replacement for cxf jetty transport. I
> actually love jetty but I'm trying to deliver a onejar packaged web service
> and there's a bug that breaks resource resolution so I'm looking at
> alternatives. Is there any prior art I might lean on?
My prior efforts did not achieve 'art'.
>
> And embedded JBoss http transport would also be an option for my customer.
>
> Any pointers greatly appreciated. I only ran into the Jetty Onejar
> incompatibility late in the development cycle - so it's a bit stressful 😱
>
> Ron
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5712769.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by rpomeroy <rp...@me.com>.
I'm interested in a one-for-one replacement for cxf jetty transport. I
actually love jetty but I'm trying to deliver a onejar packaged web service
and there's a bug that breaks resource resolution so I'm looking at
alternatives. Is there any prior art I might lean on?
And embedded JBoss http transport would also be an option for my customer.
Any pointers greatly appreciated. I only ran into the Jetty Onejar
incompatibility late in the development cycle - so it's a bit stressful 😱
Ron
--
View this message in context: http://cxf.547215.n5.nabble.com/Tomcat-embedding-tp5659578p5712769.html
Sent from the cxf-dev mailing list archive at Nabble.com.
Re: Tomcat embedding
Posted by Benson Margulies <bi...@gmail.com>.
On Tue, Apr 24, 2012 at 5:57 AM, Freeman Fang <fr...@gmail.com> wrote:
> Hi Benson,
>
> May not answer you question directly about the tomcat embedding.
> You mentioned that the jetty bugs that close 'idle' connections, I ran
> into a similar issue months ago, and setMaxIdleTime on jetty can perfectly
> resolve it, not sure it's exactly same problem you encounter with jetty, but
> it's worthy of checking.
> Please take a look at [1] to get more details.
>
> [1]http://cxf.547215.n5.nabble.com/CXF-retrying-an-operation-td5072484.html#a5074035
Recently, that problem returned to us regardless of our setting of
maxIdleTime. I fear a new Jetty bug.
> Freeman
>
>
>
> On 2012-4-23, at 下午10:41, Benson Margulies wrote:
>
>> Last year, I took a look at tomcat as an alternative to Jetty for
>> embedding purposes.
>>
>> I ran aground, I was just too ignorant.
>>
>> Since I seem, again, to be hitting jetty bugs that close 'idle'
>> connections inappropriately, I've got myself interested again.
>>
>> Is anyone who has a grip on server transports willing to help me out?
>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: http://weibo.com/u/1473905042
>
>
>
>
>
>
>
>
>
>
Re: Tomcat embedding
Posted by Freeman Fang <fr...@gmail.com>.
Hi Benson,
May not answer you question directly about the tomcat embedding.
You mentioned that the jetty bugs that close 'idle' connections, I
ran into a similar issue months ago, and setMaxIdleTime on jetty can
perfectly resolve it, not sure it's exactly same problem you encounter
with jetty, but it's worthy of checking.
Please take a look at [1] to get more details.
[1]http://cxf.547215.n5.nabble.com/CXF-retrying-an-operation-td5072484.html#a5074035
Freeman
On 2012-4-23, at 下午10:41, Benson Margulies wrote:
> Last year, I took a look at tomcat as an alternative to Jetty for
> embedding purposes.
>
> I ran aground, I was just too ignorant.
>
> Since I seem, again, to be hitting jetty bugs that close 'idle'
> connections inappropriately, I've got myself interested again.
>
> Is anyone who has a grip on server transports willing to help me out?
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042