On 1/25/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
Quoting Guillaume Nodet <[EMAIL PROTECTED]>:
> The codehaus wiki is rather old.
> Take a look at http://servicemix.org/site/client-api.html
Actually *that* is the URL i meant to paste, the spring stuff is missing
there too. I was wondering whether the missing example would be helpful?
I have fixed it : http://goopen.org/confluence/display/SM/Client+API
Other than that, i'll also investigate further on starting jms in
geronimo and/or the gbean approach.
Cool. It would be nice if you could contribute back any solution you
found ...
Thanks,
Manos
>
> There are several ways:
> * using a RemoteClient, but unfortunately, there is no jms flow
> started by default inside Geronimo, so it won't work without
> modifications
> * use a binding component: you can send a jms / http request to a
> binding
> component that you define in front of the jbi endpoint you want
> to access
>
> I guess retrieving a direct reference to the JBIContainer could be
> done, but you need to
> * modify the gbean interface to be able to access the internal jbi
> container
> * make sure the web app has a dependency on servicemix plugin (so
> that it can access the classloader)
> * retrieve the gbean and then the JBIContainer instance
>
> I think it would be easier to be able to retrieve a ClientFactory
> instance from
> the gbean, which would keep the JBIContainer hidden.
> Just add a getClientFactory() method to the Container interface in
> the geronimo
> plugin.
> I don't recall how to retrieve a gbean instance from code, but you
> should be able
> to find that on the Geronimo web site ...
>
>
> On 1/25/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
> >
> > Hello Guillaume,
> >
> > Thanks for your email.
> >
> > Quoting Guillaume Nodet <[EMAIL PROTECTED]>:
> > > This has not been implemented yet.
> >
> > Can you please provide suggestions on how to otherwise talk to the
> bus
> > from another webapp? More specifically, any way to instantiate a
> > ServiceMixClient by obtaining a ref to the JBIContainer? That would
> > allow me to patch up a custom client factory for my colleagues to
> > experiment right now, while working on the gbean thingy that is
> unknown
> > territory for me.
> >
> > BTW, i cant really figure out how to make this work with spring
> either;
> > the "Configuring the ServiceMixClient" part of the documentation
> says
> > "Here's an example of using a basic client" but doesn't really
> provide
> > the example.
> >
> > [1] http://servicemix.codehaus.org/Client+API
> >
> >
> > Thanks,
> >
> > Manos
> >
> >
> >
> >
> > > If you want to take a look at that, i think one way would be to
> > > define
> > > a gbean for the ClientFactory which would be started by
> ServiceMix
> > > plugin.
> > > You could then reference this gbean from your web app using
> geronimo
> > > deployment plan features.
> > > I'm not sure how this can be done using JNDI yet: i know some
> work
> > > about
> > > a global JNDI context has been done, but i haven't had any time
> to
> > > look at it.
> > > In any cases, could you report back if you have something working
> ?
> > >
> > > On 1/25/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Just noticed the problem:
> > > >
> > > >
> > > > [*********************> ] 93% 20s Starting
> > > > default/apache-servicem...11:26:04,199 WARN [ClientFactory]
> Cound
> > > not
> > > > start ClientFactory:
> javax.naming.OperationNotSupportedException
> > > >
> > > > Quoting Manos Batsis <[EMAIL PROTECTED]>:
> > > >
> > > >
> > > > Does anyone have any idea about this?
> > > >
> > > > Thanks,
> > > >
> > > > Manos
> > > >
> > > >
> > > > >
> > > > > Holla,
> > > > >
> > > > > I'm test driving the pre-build apache-servicemix-web-3.1 for
> > > geronimo
> > > > > as
> > > > > directed by [1]. What i'm trying to do is use the Client API
> to
> > > talk
> > > > > to
> > > > > the bus from a struts webapp in the same server. How can i
> modify
> > > the
> > > > > pre-build WAR to register the ClientFactory or otherwise
> obtain a
> > > > > reference to the JBIContainer instance to use?
> > > > >
> > > > > [1] http://servicemix.org/site/geronimo-integration.html
> > > > >
> > > > > Many thanks,
> > > > >
> > > > > Manos
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Architect, LogicBlaze (http://www.logicblaze.com/)
> > > Blog: http://gnodet.blogspot.com/
> > >
> >
> >
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/