On 8/7/06, Sergio Fernandes <[EMAIL PROTECTED]> wrote:


Guillaume,

I got confused... Service Unit can also carry components, can't it?


Not really.
The confusion comes from lightweight components, but these do not use
standard jbi
packaging.  They can only be used in serviceimx-lwcontainer and are
ServiceMix specific
things.

So the components packaged inside the SU won't see the shared libs?


When a component is installed on the JBI container, you need a
jbi.xmldescriptor.
This descriptor will have references to Shared Libraries.  The container
will use
these to build a classloader for the given component, but this can only be
used
at component design-time and only for standard JBI components.

Regards,

----------------------------------------------------------
Sergio Fernandes
Software Engineering
[EMAIL PROTECTED]

Sakonnet Technology
Centro Empresarial Mourisco
Praia de Botafogo 501 1°Andar
Bloco A - Torre Pão de Açúcar
22250-040 - Rio de Janeiro, RJ Brazil
www.sknt.com

+55 (21) 2586 6072 direct
+55 (21) 8272 7193 mobile
+55 (21) 2586 6001 fax


-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 05, 2006 3:58 AM
To: [email protected]
Subject: Re: Question on Shared Libraries

Shared libraries are used by components, not by service assemblies /
service units.

On 8/5/06, Kiran Addepalli - SECF <[EMAIL PROTECTED]> wrote:
>
> I am a bit confused about the utility of shared libraries and how to
> use them. My scenario is the following
>
> CoreProject - Packaged as jar
> ServiceUnitA
> ServiceUnitB -
> ServiceUnitX
> ServiceUnitY
> ServiceAssemblyA - Assembly of SU A and B.
> ServiceAssemblyX - Assembly of SU X and Y
>
> Both assemblies use common libraries that I package as a shared library.
>
> SharedLibrary - Bundle of CoreProject, Third party libraries and open
> source libraries (hibernate, spring etc)
>
> I deploy the shared library to service mix successfully. But when I
> deploy the service assemblies, it results in ClassNotFoundExceptions
> for classes in the CoreProject or any of the other libs.
>
> The easiest way is of course to copy all jars to the lib folder to
> make it work but just wondering if there is a better way.
>
> Regards
> Kiran
> ***************************************************************
> The information in this email is confidential and may be legally
> privileged. It is intended solely for the addressee. If you have
> received this communication in error, please contact the sender
> immediately, return the original message to the sender, and delete the
> material from your computer.  Thank you.
> ***************************************************************
>



--
Cheers,
Guillaume Nodet




--
Cheers,
Guillaume Nodet

Reply via email to