[wildfly-dev] Making RemoteConnectionFactory available in subsystem
Dejan Kitic
kdejan at gmail.com
Tue Jun 17 09:23:57 EDT 2014
Hi Jeff,
Big thanks for your answer. Alternative with JNDI binding sounds good -
think that might just do the trick for me here.
Dejan
On Tue, Jun 17, 2014 at 2:16 PM, Jeff Mesnil <jmesnil at redhat.com> wrote:
>
> On 17 Jun 2014, at 13:27, Dejan Kitic <kdejan at gmail.com> wrote:
>
> > Hi guys,
> >
> > I am trying to figure out if it's possible to make HornetQ
> RemoteConnectionFactory available within subsystem using something like:
> >
> > final CastingInjector<ConnectionFactory> connFactInjector = new
> CastingInjector<ConnectionFactory>(connFactInjector,
> > ConnectionFactory.class);
> > and then doing something like:
> >
> > ...
> > .addDependency(ConnectionFactoryService.SERVICE_NAME, connFactInjector)
> >
> >
> > within SubsystemAdd performRuntime.
> >
> > Above is just thinking on the subject, the actual problem would be what
> to put in the addDependency call for service name, and even how to specify
> that I need to wait for the RemoteConnectionFactory to become available.
>
> Unfortunately, that will not work.
>
> You could create a dependency on the connection factory name but the
> service does not return the JMS ConnectionFactory as its value (long story
> short, HornetQ creates the object internally and does not expose it from
> its management API).
> An alternative would be to depend on the JNDI binding of the remote
> connection factory instead.
>
> jeff
>
>
> --
> Jeff Mesnil
> JBoss, a division of Red Hat
> http://jmesnil.net/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20140617/592a875a/attachment.html
More information about the wildfly-dev
mailing list