<div dir="ltr">Hi guys,<div><br></div><div>I am trying to figure out if it&#39;s possible to make HornetQ RemoteConnectionFactory available within subsystem using something like:</div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco">

 <span style="color:rgb(147,26,104)">final</span> CastingInjector&lt;ConnectionFactory&gt; <span style="color:rgb(126,80,79)">connFactInjector</span> = <span style="color:rgb(147,26,104)">new</span> CastingInjector&lt;ConnectionFactory&gt;(<span style="color:rgb(126,80,79)">connFactInjector</span>,</p>


<p style="margin:0px;font-size:11px;font-family:Monaco">                ConnectionFactory.<span style="color:rgb(147,26,104)">class</span>);</p><p style="margin:0px;font-size:11px;font-family:Monaco">and then doing something like:</p>

<p style="margin:0px;font-size:11px;font-family:Monaco"><br></p><p style="margin:0px;font-size:11px;font-family:Monaco">...</p><p style="margin:0px;font-size:11px;font-family:Monaco">.addDependency(ConnectionFactoryService.<span style="color:rgb(3,38,204)">SERVICE_NAME</span>, <span style="color:rgb(126,80,79)">connFactInjector</span>)</p>

<p style="margin:0px;font-size:11px;font-family:Monaco"><br></p></div><div><br></div><div>within SubsystemAdd performRuntime.</div><div><br></div><div>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.</div>

<div><br></div><div>Might be completely off with this, so any help is appreciated.</div><div><br></div><div>Regards,</div><div>Dejan</div></div>