× 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.



Okay, maybe I will at least check out EJB's then. It can't hurt anything.

I have seen the JTOpen classes for reading physical files, but I wondered
how fast they were. I have a pretty good understanding of JDBC and SQL
statements to ResultSet's seem to work pretty fast.

I have heard a lot of good things about Hibernate. I will have to check it
out.

James R. Perkins


On Wed, Oct 22, 2008 at 6:19 AM, Blalock, Bill <Bill.Blalock@xxxxxxxx>wrote:

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
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

_____________

The information contained in this message is proprietary and/or
confidential. If you are not the
intended recipient, please: (i) delete the message and all copies; (ii) do
not disclose,
distribute or use the message in any manner; and (iii) notify the sender
immediately. In addition,
please be aware that any message addressed to our domain is subject to
archiving and review by
persons other than the intended recipient. Thank you.
_____________
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.