You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Matt Pavlovich <ma...@gmail.com> on 2014/09/10 03:31:58 UTC

Wiring up Bus without Spring

I’m trying to wire up a Bus without Spring, and include a couple extensions. Scanning through unit tests in the source gets me part of the way there.  I see the Bus register via JMX, but the deployed service and CounterRepository doesn’t wire up to JMX correctly. 

Is there some order of operations here that I am missing?

Code snippet:
http://pastebin.com/54dxxDzS

Screenshot of JMX:
http://imgur.com/zJz2Q4N

Thanks,
Matt

Re: Wiring up Bus without Spring

Posted by Matt Pavlovich <ma...@gmail.com>.
Hi Dan-

I tried as you suggested— (http://pastebin.com/LMpwqYi0), but the result is the same. For grins, I enabled Jetty’s JMX extension and wired it into the platform mbean server to rule out any platform vs new mbean server type issue.

-Matt

On Sep 12, 2014, at 9:22 AM, Daniel Kulp <dk...@apache.org> wrote:

> 
> You’re creating the counterRepository before creating the instrumentation manager.  Thus, all the counter related stuff may not have access to the Instrumentation manager and wouldn’t show up.   Likewise for the work queues and such.   Create the instrumentation manager as the very first thing after the bus.
> 
> Dan
> 
> 
> 
> On Sep 9, 2014, at 9:31 PM, Matt Pavlovich <ma...@gmail.com> wrote:
> 
>> I’m trying to wire up a Bus without Spring, and include a couple extensions. Scanning through unit tests in the source gets me part of the way there.  I see the Bus register via JMX, but the deployed service and CounterRepository doesn’t wire up to JMX correctly. 
>> 
>> Is there some order of operations here that I am missing?
>> 
>> Code snippet:
>> http://pastebin.com/54dxxDzS
>> 
>> Screenshot of JMX:
>> http://imgur.com/zJz2Q4N
>> 
>> Thanks,
>> Matt
> 
> -- 
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com
> 


Re: Wiring up Bus without Spring

Posted by Daniel Kulp <dk...@apache.org>.
You’re creating the counterRepository before creating the instrumentation manager.  Thus, all the counter related stuff may not have access to the Instrumentation manager and wouldn’t show up.   Likewise for the work queues and such.   Create the instrumentation manager as the very first thing after the bus.

Dan



On Sep 9, 2014, at 9:31 PM, Matt Pavlovich <ma...@gmail.com> wrote:

> I’m trying to wire up a Bus without Spring, and include a couple extensions. Scanning through unit tests in the source gets me part of the way there.  I see the Bus register via JMX, but the deployed service and CounterRepository doesn’t wire up to JMX correctly. 
> 
> Is there some order of operations here that I am missing?
> 
> Code snippet:
> http://pastebin.com/54dxxDzS
> 
> Screenshot of JMX:
> http://imgur.com/zJz2Q4N
> 
> Thanks,
> Matt

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


RE: Wiring up Bus without Spring

Posted by Andrei Shakirin <as...@talend.com>.
Hi,

On the first view I don't see any obvious problem in your code in comparison with NoSpringServletServer test.
Do you see any exception thrown by running that?
Could you try to comment out all JMX and instrumentation stuff and try only server start with endpoint publishing?

Regards,
Andrei.

> -----Original Message-----
> From: Matt Pavlovich [mailto:mattrpav@gmail.com]
> Sent: Mittwoch, 10. September 2014 03:32
> To: users@cxf.apache.org
> Subject: Wiring up Bus without Spring
> 
> I'm trying to wire up a Bus without Spring, and include a couple extensions.
> Scanning through unit tests in the source gets me part of the way there.  I see
> the Bus register via JMX, but the deployed service and CounterRepository
> doesn't wire up to JMX correctly.
> 
> Is there some order of operations here that I am missing?
> 
> Code snippet:
> http://pastebin.com/54dxxDzS
> 
> Screenshot of JMX:
> http://imgur.com/zJz2Q4N
> 
> Thanks,
> Matt

Re: Wiring up Bus without Spring

Posted by Matt Pavlovich <ma...@gmail.com>.
The NoSpringServletServer was the basis for the test code.

I do send a request through to the endpoint, generate the error (which
would count against the fault count)

I understand that the CounterRepository wouldn't show up until a request
goes through, but the endpoint entry should show up without any requests--
at least that's the observed behavior when running in container with Spring
or Blueprint.

On Wed, Sep 10, 2014 at 5:50 AM, Aki Yoshida <el...@gmail.com> wrote:

> have you sent at least one message through?
> If I remember it correctly, CR doesn't show up before the counting
> really starts (i.e., before the first message goes through).
>
> 2014-09-10 3:31 GMT+02:00 Matt Pavlovich <ma...@gmail.com>:
> > I’m trying to wire up a Bus without Spring, and include a couple
> extensions. Scanning through unit tests in the source gets me part of the
> way there.  I see the Bus register via JMX, but the deployed service and
> CounterRepository doesn’t wire up to JMX correctly.
> >
> > Is there some order of operations here that I am missing?
> >
> > Code snippet:
> > http://pastebin.com/54dxxDzS
> >
> > Screenshot of JMX:
> > http://imgur.com/zJz2Q4N
> >
> > Thanks,
> > Matt
>

Re: Wiring up Bus without Spring

Posted by Aki Yoshida <el...@gmail.com>.
have you sent at least one message through?
If I remember it correctly, CR doesn't show up before the counting
really starts (i.e., before the first message goes through).

2014-09-10 3:31 GMT+02:00 Matt Pavlovich <ma...@gmail.com>:
> I’m trying to wire up a Bus without Spring, and include a couple extensions. Scanning through unit tests in the source gets me part of the way there.  I see the Bus register via JMX, but the deployed service and CounterRepository doesn’t wire up to JMX correctly.
>
> Is there some order of operations here that I am missing?
>
> Code snippet:
> http://pastebin.com/54dxxDzS
>
> Screenshot of JMX:
> http://imgur.com/zJz2Q4N
>
> Thanks,
> Matt