-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Hibernate Client Jar
PostPosted: Wed Jul 19, 2006 6:04 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:55 pm
Posts: 37
Hi All,

Quick suggestion, I just noticed that the JBoss 4.0.4 release comes with a hibernate-client.jar (I do not think that it was the case before, eg 4.0.3RCx).

Would it be possible to ship this client jar with Hibernate itself? It would be useful for whoever needs to receive objects that contain persistent collections over RMI.

Thanks!

Benoit

<feelFreeToDismiss>
As an aside, I'd prefer if Hibernate was using jar names with versions... e.g. hibernate-3.1.3.jar

I know it was dismissed before on the ground of being easier to just replace the hibernate3.jar with the latest one... but I prefer explicit changes to "latest" and unclear jars....
</feelFreeToDismiss>


Top
 Profile  
 
 Post subject: Re: Hibernate Client Jar
PostPosted: Wed Jul 19, 2006 6:24 am 
Regular
Regular

Joined: Sun May 08, 2005 2:48 am
Posts: 118
Location: United Kingdom
benoitx wrote:
<feelFreeToDismiss>
As an aside, I'd prefer if Hibernate was using jar names with versions... e.g. hibernate-3.1.3.jar

I know it was dismissed before on the ground of being easier to just replace the hibernate3.jar with the latest one... but I prefer explicit changes to "latest" and unclear jars....
</feelFreeToDismiss>


Here here... library version management it always best done with a unique name per version. Just take a look at windows DLL mess to understand why, even they use soname like versioned filenames now with DotNET.

But its no problem to rename it before use, I always do.


It would also be good practice to see all the JARs in the lib/ directory of the distribution to follow suit. It just makes version management so much simpler and understand for everyone.

The only bad point is the possibility of duplicate JARs of different versions getting into the classpath, but this problem is so easy to spot its really a non-issue, than the opposite problem of having to dig into every jar to verify its version when you have a versioning concern. This becomes a waste on everyones time and so easy to fix at source.

YMMV


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 8:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
there is an open task for generating the hibernate-client.jar in context of the hibernate project. Anyone feeling up for it ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Isn't it done?
PostPosted: Wed Jul 19, 2006 9:09 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:55 pm
Posts: 37
Hi

I'd not mind giving a hand but isn't something already fixed for JBoss 4.0.4 GA? Would they recompile the hibernate code? or use a Jar? and if so would they split it?

So, let me know if it is still required and I shall have a quick look ...

Benoit


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 9:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
basically what we need is to take a look at what was done in context of jboss and reproduce it in hibernate regi + hopefully a unittest or similar for checking if it actually is correct ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: here you go...
PostPosted: Wed Jul 19, 2006 9:38 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:55 pm
Posts: 37
Hi All,

Well, thanks to Fisheye, I've found where JBoss splits the hibernate jar to a client:

See http://fisheye.labs.jboss.com/viewrep/J ... /build.xml

Code:
<!-- build hibernate-client.jar -->
   <!--
<unjar src="${hibernate.hibernate.lib}/hibernate3.jar"
         dest="${build.classes}" /> 
-->

<jar jarfile="${build.lib}/hibernate-client.jar">
   <zipfileset src="${hibernate.hibernate.lib}/hibernate3.jar">
<include name="org/hibernate/AssertionFailure.class"/>
<include name="org/hibernate/**/*Exception.class"/>
<include name="org/hibernate/collection/**"/>
<include name="org/hibernate/exception/Nestable*.class"/>
<include name="org/hibernate/exception/ExceptionUtils.class"/>
<include name="org/hibernate/engine/SessionImplementor.class"/>
<include name="org/hibernate/loader/CollectionAliases.class"/>
<include name="org/hibernate/persister/collection/**"/>
<include name="org/hibernate/pretty/MessageHelper.class"/>
<include name="org/hibernate/type/Type.class"/>
<include name="org/hibernate/EntityMode.class"/>
<include name="org/hibernate/util/**"/>
<include name="org/hibernate/proxy/**"/>
</zipfileset>
</jar>


I guess that the same approach would be easy to add to the hibernate build, if it is good enough for JBoss... should be ok for us...

I hope this is ok and am looking forward to see it integrated... :-)

many thanks

Benoit


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 9:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hehe - but where is the test for it ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: I know I know...
PostPosted: Wed Jul 19, 2006 9:54 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:55 pm
Posts: 37
But it was only expressed as ".... + hopefully a unittest..."

How is a piece of string for that kind of test...

I guess that Hibernate people will have to trust JBoss people...
Unless JBoss has a great test for it.

:-)

May be some words of caution in the release notes would be enough? ;-)

It would be a step in the right direction...

Cheers
Benoit


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.