Literally, HiveMind does the following:
classLoader.getResources("META-INF/hivemodule.xml")
Toe find all the module deployment descriptors for every JAR on the classpath,
inlcuding the
descriptors packaged with the HiveMind library itself!
See http://jakarta.apache.org/hivemind/bootstrap.html
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
Creator, HiveMind
http://howardlewisship.com
> -----Original Message-----
> From: Kebekus, Christian [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 7:17 AM
> To: [email protected]
> Subject: RE: HiveMind JAR Service packages
>
>
>
> That's what I through (and I had some trouble at the
> beginning with the
> descriptor), but
>
> - the jar is on the classpath (I'm able to instantiate the class
> directly via)
> - I use the same descriptor file that works in the same jar
>
> Let me ask you a dumb question: where does the desciptor go?
> I tried to
> use only one in the calling application, didn't work.
> I also tried to use one in the calling application and on in the jar
> (only specifiying the service point).
>
> What's the right way?
>
> -----Original Message-----
> From: Johan Lindquist [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 23, 2004 7:10 AM
> To: [email protected]
> Subject: Re: HiveMind JAR Service packages
>
> This usually happens when either:
>
> - the jar cannot be found on the class-path
> - the descriptor doesn't define the module 'mypackage.test'
> - the descriptor can't be parsed for whatever reason
>
> Any other error being reported when creating the registry?
>
> Johan
>
> On Fri, 23 Apr 2004 06:58:54 -0400, Kebekus, Christian
> <[EMAIL PROTECTED]> wrote:
>
> > I would like to use a service/implementation packed in a jar from a
> > simple test class. The same simple test class works fine in the jar
> > with the service interface and implementation itself. I tried all
> > kinds of stuff, but nothing works. I always get something like
> >
> > org.apache.hivemind.ApplicationRuntimeException: Registry does not
> > contain module 'mypackage.test'.
> > at
> >
> org.apache.hivemind.impl.RegistryImpl.getModule(RegistryImpl.java:76)
> > at
> >
> org.apache.hivemind.impl.RegistryImpl.getService(RegistryImpl.java:86)
> > at com.mckesson.coil.examples.ex1.Main.main(Main.java:66)
> > Confidentiality Notice: This e-mail message, including any
> > attachments, is for the sole use of the intended
> recipient(s) and may
> > contain confidential and privileged information.
> > Any unauthorized review, use, disclosure or distribution is
> > prohibited. If you are not the intended recipient, please
> contact the
>
> > sender by reply e-mail and destroy all copies of the
> original message.
> >
> >
>
>
>
> --
> you too?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]