Attached is the sample Hibernate application that I have written. Like I said, it is very simple portlet with a submit button. When you click submit button, it selects all the records from "CLUBS" table on HSQL (it comes with jetspeed 2) and system.out's the records on console or catalina.out.

I have not attached any of the hibernate libraries for size purpose. But you would need those jar files. Go to http://caveatemptor.hibernate.org/ and download the sample application and copy all the jar files from their lib to WEB-INF/lib of this tar file. Make a war file out of it, and just deploy it in the deploy directory of your jetspeed.

Include this in your default.psml so that you can view this portlet.

       <fragment id="dp-25" type="portlet" name="testPortal::FirstPortlet">
           <property name="row" value="3" layout="TwoColumns"/>
           <property name="column" value="0" layout="TwoColumns"/>
       </fragment>

Let me know if any questions !!!

Cheers,
Amit

----Original Message Follows----
From: "Han, Richard" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <jetspeed-user@jakarta.apache.org>
To: "Jetspeed Users List" <jetspeed-user@jakarta.apache.org>
Subject: RE: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 15:00:48 -0700

I'm definitely interested to see your codes! (I just asked for the sample
code today). I have some experience using turbine/velocity, a have tried
hibernate briefly. I just need some sample codes to get me started (built &
deployed)
Thanks!

Richard

-----Original Message-----
From: Shah Amit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 2:56 PM
To: jetspeed-user@jakarta.apache.org
Subject: Re: Can I use Hibernate with Jetspeed 2 ??


I have written a very simple portlet that uses hibernate on the backend to connect to DB with c3p0 connection pool. The portlet is very very simple. Just has a submit button on the front and when you click that button, it selects all records from a "table" and System.out's the records on console (or catalina.out). (I am working on making it do more as I get time)

The "table" is the "clubs" table of the Database browser application that is
shipped with jetspeed.

Also I have used the "Thread Local Session" pattern at a very simple level
which is sugggested by hibernate.

I would like to share the portlet if anyone is interested. This way I can
share the work and get more suggestions towards my approach.

Please let me know if anyone is interested. I dont know if I can simply mail
the portlet in a zip file attachment on this mailing list under this thread.

Regards,
Amit

----Original Message Follows----
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <jetspeed-user@jakarta.apache.org>
To: Jetspeed Users List <jetspeed-user@jakarta.apache.org>
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 13:06:18 -0800

Jonathan Hawkins wrote:
>What is the issue with the licences.
>
see:

http://www.apache.org/licenses/GPL-compatibility.html

Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports
from Hibernate.


-- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194

---------------------------------------------------------------------
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to