[hibernate-dev] Why do Services need to be Serializable?

Steve Ebersole steve at hibernate.org
Wed Sep 26 08:32:12 EDT 2012


Hmm, not sure why I wrote that.  I don't think they have to actually 
given how we "serialize" the SessionFactory.

On 09/26/2012 07:24 AM, Sanne Grinovero wrote:
> I just found this comment on org.hibernate.service.Service:
>
> /**
>   * Marker interface for services.
>   * <p/>
>   * NOTE : All services must be {@link Serializable}!
>   *
>   * @author Steve Ebersole
>   */
> public interface Service extends Serializable {
>
>
> What kind of bad things will happen to us if violating this recommendation?
>
> In OGM we have for example connection pools managed in a Service, we
> can hardly serialize that.
>
> Sanne
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>

-- 
steve at hibernate.org
http://hibernate.org


More information about the hibernate-dev mailing list