× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hey James:

I am not in total agreement with Thorbjørn, but I can't say I disagree either.

My take ... version 3 of EJB is getting traction and has good feedback ... third time is the charm. But most things that really use EJB are big framework applications which involve buying into the framework and buying tools. I wouldn't write them off.

The basic technology for talking to databases is "JDBC" which is
essentially a tunnel allowing you to send SQL-statements and get the
answers back.

I agree. If your only database engine is an i5 then consider the jtOpen direct file access tools. In some cases, especially considering your background, using these will be more efficient. On one hand these classes are more like what you already know how to use. They can be more efficient with big, complicated database relationships. On the other hand using these classes puts off learning other persistence options.

I would suggest that you create a small application with
JDBC to learn how it works because you need to know when using
frameworks that do persistence because you WILL need to debug some day...

I can't say I disagree however I would suggest going directly to JPA (Hibernate or Eclipselink) or iBatis instead of learning JDBC in depth unless you will be working with apps that use JDBC which you have to maintain.

JDBC is too close to the metal. There is a lot of coding, condition handling and resource management. This is done for you with JPA or iBatis. You deal with it at a higher level and let JPA/iBatis take care of the details.

Regards
Bill Blalock

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Thorbjørn Ravn Andersen
Sent: Tuesday, October 21, 2008 4:52 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Understanding Object Usage

James Perkins skrev:
totally pleased with it. Out of curiosity would you suggest EJB's or

EJB's were basically created to allow a Java application to
transparently call Java code running in _ANOTHER_ Java virtual machine.
Don't go there unless you really have to!

The basic technology for talking to databases is "JDBC" which is
essentially a tunnel allowing you to send SQL-statements and get the
answers back. I would suggest that you create a small application with
JDBC to learn how it works because you need to know when using
frameworks that do persistence because you WILL need to debug some day...

/Thorbjørn

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.