<div dir="ltr"><div>Hey Arun,<br></div><div>Are you trynig to do this using standalone JBoss Modules? If so... why not look at the work we've done with Furnace - <a href="https://github.com/forge/furnace">https://github.com/forge/furnace</a></div>
<div><br></div><div>It's basically CDI-light, and is what we use to power the Forge Addon service mechanism. I'd be happy to share more details if this is something you're interested in.</div><div><br></div><div>
If you're trying to use Wilfly's native module system and service container for this, then I can't be of much help :) But thought I'd ask.</div><div class="gmail_extra"><br></div><div class="gmail_extra">~Lincoln<br>
<br><div class="gmail_quote">On Tue, Feb 18, 2014 at 8:36 PM, Arun Gupta <span dir="ltr"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Adding beans.xml in the implementation module solved the issue.<br>
<br>
I updated the implementation module and copied the JAR file over to<br>
org/samples/greet/main directory but had to restart the application<br>
server in order to pick up the new implementation.<br>
<br>
Are the modules not dynamically loaded ? Can this behavior be enabled ?<br>
<br>
I'm trying to figure out if I can implement something like OSGi<br>
service using JBoss Modules.<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Tue, Feb 18, 2014 at 2:07 PM, Tomaž Cerar <<a href="mailto:tomaz.cerar@gmail.com">tomaz.cerar@gmail.com</a>> wrote:<br>
> We found inital issue, it was typo in modules.xml instead of module.xml<br>
><br>
> But there are different issues :)<br>
><br>
><br>
> On Tue, Feb 18, 2014 at 10:38 PM, David M. Lloyd <<a href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>><br>
> wrote:<br>
>><br>
>> On 02/18/2014 02:29 PM, Arun Gupta wrote:<br>
>> > On Tue, Feb 18, 2014 at 2:05 AM, Tomaž Cerar <<a href="mailto:tomaz.cerar@gmail.com">tomaz.cerar@gmail.com</a>><br>
>> > wrote:<br>
>> >> What do you mean resolution of service?<br>
>> >> you have some service registered via ServiceLoader pattern?<br>
>> > Yes, the API, Impl, and and application module are defined at:<br>
>> ><br>
>> > <a href="https://github.com/arun-gupta/wildfly-samples/tree/master/jboss-modules" target="_blank">https://github.com/arun-gupta/wildfly-samples/tree/master/jboss-modules</a><br>
>> ><br>
>> >><br>
>> >> in that case you need to import also services when you are "importing"<br>
>> >> module to your application.<br>
>> > OK, I'm missing this step.<br>
>> ><br>
>> > How can this be done ?<br>
>> ><br>
>> >><br>
>> >> as for logging goes, you can set org.jboss.modules to TRACE<br>
>> > I enabled TRACE logging but saw no additional log entries. Here is how<br>
>> > I enabled it:<br>
>> ><br>
>> > /subsystem=logging/logger=org.jboss.modules:add<br>
>> ><br>
>> > /subsystem=logging/logger=org.jboss.modules:write-attribute(name="level",<br>
>> > value="TRACE")<br>
>><br>
>> The corresponding handler (console or file or whatever) has to be<br>
>> enabled at TRACE as well.<br>
>><br>
>> --<br>
>> - DML<br>
>> _______________________________________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Lincoln Baxter, III<br>
<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."
</div></div>