You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jon Brisbin <jo...@jbrisbin.com> on 2008/12/03 15:15:55 UTC

servicemix namespacehandlers in spring dm

I fashion myself a reasonably intelligent individual and I can't for  
the life of me understand how to make Spring DM use the ActiveMQ XBean  
mapping in either Felix or dm Server! I read every post or message on  
this topic I could find and the scattered information never fleshes  
out a full scenario. They only give you bits and pieces.

How does ServiceMix get their custom NamespaceHandlers recognized?  
Does it use a fragment? To what host does it attach in the Fragment- 
Host?

I've spent several days experimenting with different things and I just  
can't figure this out. Any help you could give would be greatly  
appreciated! :)

Thanks!

Jon Brisbin
http://jbrisbin.com


Re: servicemix namespacehandlers in spring dm

Posted by Jon Brisbin <jo...@jbrisbin.com>.
I tried using ActiveMQ 5.2 XBean configs in ServiceMix kernel  
(compiled from trunk and 1.0.0) and I get the same error: unrecognized  
namespace mapping.

It works fine in plain Felix. I just have xbean-spring-3.5-SNAPSHOT  
loaded early in the process. I edited the startup.properties file in  
SM kernel to load the xbean-spring bundle right after the file monitor  
(so it would catch all the registration events), but no dice. I still  
get errors.

If I can figure out how to configure the logging in Felix, I'll be  
getting closer...

Thanks!

Jon Brisbin
http://jbrisbin.com

On Dec 3, 2008, at 8:37 AM, Guillaume Nodet wrote:

> Each JBI component has the META-INF/spring.handlers file registering
> the XBean namespace handler.
> Spring-DM introspects all the bundles for such files, and simply call
> the registered namespace handler which happen to be provided by XBean.
> Then, XBean finds the meta data needed inside the component bundle
> because the bundle takes care of exporting the needed package.
> XBean has a dynamic import package on
> META-INF.services.org.apache.xbean.spring.* which is the reason why it
> can find the metdata.
> Does it help a bit ?
>
> On Wed, Dec 3, 2008 at 3:15 PM, Jon Brisbin <jo...@jbrisbin.com> wrote:
>> I fashion myself a reasonably intelligent individual and I can't  
>> for the
>> life of me understand how to make Spring DM use the ActiveMQ XBean  
>> mapping
>> in either Felix or dm Server! I read every post or message on this  
>> topic I
>> could find and the scattered information never fleshes out a full  
>> scenario.
>> They only give you bits and pieces.
>>
>> How does ServiceMix get their custom NamespaceHandlers recognized?  
>> Does it
>> use a fragment? To what host does it attach in the Fragment-Host?
>>
>> I've spent several days experimenting with different things and I  
>> just can't
>> figure this out. Any help you could give would be greatly  
>> appreciated! :)
>>
>> Thanks!
>>
>> Jon Brisbin
>> http://jbrisbin.com
>>
>>
>
>
>
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com


Re: servicemix namespacehandlers in spring dm

Posted by Jon Brisbin <jo...@jbrisbin.com>.
On Dec 3, 2008, at 8:37 AM, Guillaume Nodet wrote:

> Does it help a bit ?


I think this might have pointed me in the right direction. I built  
xbean 3.5 from source, copied the jar into Felix, loaded it as early  
in the process as possible, and it recognized the ActiveMQ namespace!  
Now I'm going to try this with SM kernel/NMR (but I need a Jetty  
container to deploy wars with, as well as JBI SUs).

Thanks!

Jon Brisbin
http://jbrisbin.com


Re: servicemix namespacehandlers in spring dm

Posted by Jon Brisbin <jo...@jbrisbin.com>.
On Dec 3, 2008, at 8:37 AM, Guillaume Nodet wrote:

> XBean has a dynamic import package on
> META-INF.services.org.apache.xbean.spring.* which is the reason why it
> can find the metdata.

I checked out the XBean trunk and during the Maven build, it errored  
out on creating the Dynamic-Import because the package name has a "-"  
in it (META-INF). I'm using xbean 3.5-SNAPSHOT and Felix 1.4.0 (Felix  
1.4.3 maven plugin).

How does it work in servicemix, which uses Felix, but not in plain  
Felix? Is there a specific version I should be using?

Thanks for the help!

Jon Brisbin
http://jbrisbin.com


Re: servicemix namespacehandlers in spring dm

Posted by Jon Brisbin <jo...@jbrisbin.com>.
Have you tried running NMR in SpringSource dm Server? I created a  
subsystem (copied one of the others) and put all the NMR dependencies  
in there and the namespace problem is rearing its ugly head again.

I think I'm just going to stick with Felix/SM kernel for now. dm  
Server is turning into too much trouble to work with.

Thanks!

Jon Brisbin
http://jbrisbin.com

On Dec 3, 2008, at 8:37 AM, Guillaume Nodet wrote:

> Each JBI component has the META-INF/spring.handlers file registering
> the XBean namespace handler.
> Spring-DM introspects all the bundles for such files, and simply call
> the registered namespace handler which happen to be provided by XBean.
> Then, XBean finds the meta data needed inside the component bundle
> because the bundle takes care of exporting the needed package.
> XBean has a dynamic import package on
> META-INF.services.org.apache.xbean.spring.* which is the reason why it
> can find the metdata.
> Does it help a bit ?
>
> On Wed, Dec 3, 2008 at 3:15 PM, Jon Brisbin <jo...@jbrisbin.com> wrote:
>> I fashion myself a reasonably intelligent individual and I can't  
>> for the
>> life of me understand how to make Spring DM use the ActiveMQ XBean  
>> mapping
>> in either Felix or dm Server! I read every post or message on this  
>> topic I
>> could find and the scattered information never fleshes out a full  
>> scenario.
>> They only give you bits and pieces.
>>
>> How does ServiceMix get their custom NamespaceHandlers recognized?  
>> Does it
>> use a fragment? To what host does it attach in the Fragment-Host?
>>
>> I've spent several days experimenting with different things and I  
>> just can't
>> figure this out. Any help you could give would be greatly  
>> appreciated! :)
>>
>> Thanks!
>>
>> Jon Brisbin
>> http://jbrisbin.com
>>
>>
>
>
>
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com


Re: servicemix namespacehandlers in spring dm

Posted by Guillaume Nodet <gn...@gmail.com>.
Each JBI component has the META-INF/spring.handlers file registering
the XBean namespace handler.
Spring-DM introspects all the bundles for such files, and simply call
the registered namespace handler which happen to be provided by XBean.
Then, XBean finds the meta data needed inside the component bundle
because the bundle takes care of exporting the needed package.
XBean has a dynamic import package on
META-INF.services.org.apache.xbean.spring.* which is the reason why it
can find the metdata.
Does it help a bit ?

On Wed, Dec 3, 2008 at 3:15 PM, Jon Brisbin <jo...@jbrisbin.com> wrote:
> I fashion myself a reasonably intelligent individual and I can't for the
> life of me understand how to make Spring DM use the ActiveMQ XBean mapping
> in either Felix or dm Server! I read every post or message on this topic I
> could find and the scattered information never fleshes out a full scenario.
> They only give you bits and pieces.
>
> How does ServiceMix get their custom NamespaceHandlers recognized? Does it
> use a fragment? To what host does it attach in the Fragment-Host?
>
> I've spent several days experimenting with different things and I just can't
> figure this out. Any help you could give would be greatly appreciated! :)
>
> Thanks!
>
> Jon Brisbin
> http://jbrisbin.com
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com