Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate ORM with DB2/400 on AS/400 (iSeries)

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want a bit of advice.

My current project involves a legacy modernization - the current app is developed on AS/400 (iSeries) using the DB2/400 database (operating system: OS/400)

My to-be system: A modern j2EE based application, with a browser based UI, utilizing jQuery, Spring MVC, coupled with Spring POJO and Hibernate ORM

However my client has made substantial investment in hardware and so wants to retain the AS/400 machine and wants the new modern application on the same DB2/400 database.

(the application server, would be: IBM WebSphere 6.x or whichever is latest)

I chanced across some old posts, in which the writer has expressed problems when using Hibernate with DB2/400 (which is normally non-journaled in production)

(https://forum.hibernate.org/viewtopic.php?t=924511&highlight=sql7008 )
(http://mikewitters.wordpress.com/2007/12/04/hibernating-with-websphere-and-a-non-journaling-db2400-system/ )

I had thought, Hibernate was database independent; simply change the dialect and it can work with "any" database.

But these posts have left me thinking -
* these posts are pretty old (5 year old), so does the same still hold true?
* given these findings, I have a serious doubt - should or should-I-not adopt Hibernate, for my migration project; if not what ORM can I use?

Please advise.

~g1


 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't go and read those posts because I assumed you were going to ask a direct question. So let me just say that yes, you do have to journal files on the IBM i if you want to access them via Hibernate. If they aren't journalled right now -- a likely situation for old systems -- then your first step is to start journalling them.

As for whether you should use Hibernate, that isn't a question that can be answered without a lot of inquiry into the background of the project. All we know is the environment you propose to run your application in. It is possible to use Hibernate on IBM i, I've seen it done and at any rate there wouldn't be an AS400Dialect if you couldn't.

However one of your mandates is to build a "modern" application. That implies that your database updates should use transactions, and that implies you'll have to journal the tables anyway.
 
Jeevan Sunkersett
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Paul.

My client reverted with a specific questions .... please can you help?

For Hibernate to work, do you need both before and after image for the journaled files?



Please can you help me answer that?

thanks
g1
reply
    Bookmark Topic Watch Topic
  • New Topic