• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF and 100% Java client app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF and 100% Java client app


  • Subject: Re: EOF and 100% Java client app
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 28 Jul 2005 15:48:26 -0400

Darich,

I recently watched the WWDC2003 "Advanced EOF" session 616 on DVD. It included a demo of a a command line WO app named " SQL Tool 0.06" (the quicktime is too fuzzy to read the onscreen code) that incorporated EOF. Steve Miner, the demonstrator from Apple WebObjects team, briefly explained how his app worked and went over the code involved in making an EOF connection to the DB.

The simple app allowed him to enter lines of SQL, which the app executed and returned raw rows dictionaries which were output to the terminal console.

If you could get your hands on the source code, it would give you everything you need. Does anyone on the list have the source for this app that was demo'd at session 616 WWDC 2003 to share? I cannot find it on Google....

I don't have time to analyze the video right now, but he initialized the EOF stack starting with the model file
EOModel model = new EOModel( modelFilePath );


EOModelGroup = new EOModelGroup();

he added the model to the app model group
group.addModel( model );

then he made an EOAdaptor
EOAdaptor adaptor = EOAdaptor.adaptorWithModel( model );

then he made an adaptor context
adaptorContext = adaptor.createAdaptorContext();

then he made an adaptor channel
channel = adaptorContext.createAdaptorChannel()

then he opened the channel
channel.openChannel();

.... anyway between these clues and the API docs, you might be able to figure out what you need to do to make a "non application server" WO app. When you do, please share the important code features involved since I hope to make some WO app utilities for running cron jobs on the database.


Of course if anyone has the source to Steve Miner's SQL Tool WO app, please share it if it is in the public domain or open source.


HTH,

Regards,

-Kieran

___________________________________
Kieran Kelleher
Palm Harbor, Florida USA

On Jul 28, 2005, at 2:52 PM, Ricardo Strausz wrote:

Hola Darich!

On Jul 27, 2005, at 7:33 PM, email@hidden wrote:

Message: 4
Date: Wed, 27 Jul 2005 19:12:41 -0400
From: Darich Runyan/OMNI INFOSEC LTD HQ <email@hidden>
Subject: EOF and 100% Java client app
To: WebObjects Development <email@hidden>
Message-ID: <BF0D8D29.846FÚemail@hidden>
Content-Type: text/plain;    charset="US-ASCII"

All,

I was wondering if EOF can be used with non-WO client applications. I have
a 100% Java application that I think could benefit from some of the features
that I have found in EOF over the last couple of weeks working with it.
Have any of you done this and if so what is involved, is it as easy as
modifying the code and adding the jar files to the classpath?

It should be...

As you most know by now, there is an environment called Java Client which is three-tiered, but if I can read your mind, you most be thinking in a two-tiered app using something like "Swing-EOF app" right?
The model to follow here IHO is that of Cocoa-EOF but with Swing (or equivalent) in the View part of the app ---I am thinking, of course, in the VCM paradigm.
Try importing the following .jar files:
javaeoaccess.jar
javaeocontrol.jar
javaeointerface.jar
javafoundation.jar
javaxml.jar
which can be found inside the Resources/Java directory of each of the frameworks (e.g., System/Library/Frameworks/JavaEOAccess.framework).
Anyhow, you will have to have installed at least the WODeployment.pkg in your system ---and you will need some kind of licence for that.


Suerte!
Dino


Thanks, Darich



-- Ricardo Strausz email@hidden Business Applied C Objects http://homepage.mac.com/strausz/baco +5255 5437 8205



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: EOF and 100% Java client app
      • From: Darich Runyan/OMNI INFOSEC LTD HQ <email@hidden>
References: 
 >Re: EOF and 100% Java client app (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: Out of error debugging
  • Next by Date: Re: Out of error debugging
  • Previous by thread: Re: EOF and 100% Java client app
  • Next by thread: Re: EOF and 100% Java client app
  • Index(es):
    • Date
    • Thread