ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Fremantle <>
Subject Re: [Sadesha2] Using Hibernate API to implement the Persistence Storage
Date Wed, 02 Nov 2005 08:03:13 GMT

I think that would be one approach. If we do that I would suggest creating a
set of Data Access Object interfaces, and put the Hibernate specific
implementations of them in a separate JAR. That way we could reimplement
those DAOs another way and remove the dependency on Hibernate at a later
stage if we desire. This is the model that Spring uses and is very

So the idea is:

[Sandesha.jar] depends on [HDAO.jar] which depends on [ Hibernate.jar]


[Sandesha.jar] does not depend on [Hibernate.jar]


On 11/2/05, Sanka Samaranayake <> wrote:
> Hi Everyone,
> I want to know whether we can put java codings (which use the hibernate
> API) in repository and not include the hibernate.jar with the main
> distribution. Those classes wont compile unless hibernate.jar is present
> - hence the user is allowed to download it separately and recompile the
> code if support for persistence storage is needed
> If I recall correctly Axis1 did the same thing by not including the
> activation.jar in the main distribution and allowing the user to
> download it separately if they wanted the support.
> Best,
> Sanka
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message