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_NAMEconnFactInjector)



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.

Might be completely off with this, so any help is appreciated.

Regards,
Dejan