Re: Command Line Client
Re: Command Line Client
- Subject: Re: Command Line Client
- From: Jean-François GUILLAUD <email@hidden>
- Date: Tue, 30 Nov 2004 09:02:33 +0100
- Organization: CRI - Universite de La Rochelle
Des Oates wrote:
Hi Jean Francois,
Thank you. This is exactly the kind of information I was looking
for. I had already started to investigate subclassing EOApplication.
But the information you provide is very useful.
I do have one question on this though. I do understand that the
entry point is on the EOClientApplicationSupport class, but how is my
(subclass of) EOApplication associated with the
EOClientApplicationSupport application? Does the JavaClient
component on the server tell the WebObjects client which class to
initialize as its application?
That's exactly right. The JavaClient component does this for you :-).
I originally thought I would have to instantiate a new
EOClientApplicationSupport object, and pass that as a parameter to
EOApplication.startApplication(). However what you describe seems
even more straight forward than that.
Formerly (version 5.1), the EOApplication object was launch by itself.
Since 5.2.1, it's launch by EOClientApplicationSupport. I don't know
exactly why.
Actually, when you start a JavaClient application, the communication
with the server is started, a server session is open and the class
loading is started. Then EOApplication or it's derived class is
instanciated. I think that's what EOApplicationSupport does.
Thanks a lot.
You're welcome. :-)
JF
Des
On Nov 28, 2004, at 9:19 PM, Jean-François GUILLAUD wrote:
Hi Des,
I'm sorry that I had not answered your first post but I didn't know
about Jython and, actually, I didn't understand what you expected.
If you only need to develop a JavaClient application with no GUI,
you can create a new JavaClient projet. In the JavaClient component,
you should replace the "interfaceControllerClassName" line by the
following:
applicationClassName =
"fr.univlr.cri.convention.client.ApplicationClient";
where ApplicationClient is your client main class derived from
EOApplication. You can put your initialization code in
"finishInitialization()" which is called at launch time.
All the classes you need within the client are in
"JavaEODistribution.framework/WebServerResources/Java/
wojavaclient.jar" that bundles different packages.
The entry point for JavaClient applications is the
EOClientApplicationSupport class, so you could launch your
application by the following command line:
java -cp [your classpath]
com.webobjects.eoapplication.client.EOClientApplicationSupport
-applicationURL http://[your application URL]
From then on, the dialog with the application server in started.
Please, note that there are Java Client bugs with WO 5.2.3 so you
would prefer 5.2.1 or 5.2.2 (don't forget the patch) :-(.
Hope this helps.
Regards.
JF
Des Oates wrote:
On Nov 27, 2004, at 3:33 PM, Bill Bumgarner wrote:
On Nov 27, 2004, at 8:20 AM, Des Oates wrote:
Has anyone every built or seen a WO system with a java-based
command-line client? I'm curious to understand the minimal set
of client side EOF components I need use to create a very basic
app that talks to the server. E.g. An app with no GUI, that runs
in a shell and invokes a single simple remote method on the
server that returns a String, which in turn gets printed on
System.out.
Does anyone know where I could find any examples of such a setup?
If that is all the functionality that you need, it sounds like you
don't need to use WO or EO on the client side.
Unfortunately its not. I'm trying to determine how to build a
client side Java library that can be used within the Jython
scripting environment. What I need is a non-GUI scripting based
client. I posted a more direct (but also more verbose) question to
the list a few days ago but didn't get any bites, so I thought I'd
pare it back a bit and try again from a different angle.
Cheers
Des
_______________________________________________
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
--
Jean-Francois GUILLAUD
CRI - Universite de La Rochelle
23 Avenue A. Einstein
17000 La Rochelle
Tel: 05 46 45 82 14
_______________________________________________
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
--
Jean-Francois GUILLAUD
CRI - Universite de La Rochelle
23 Avenue A. Einstein
17000 La Rochelle
Tel: 05 46 45 82 14
_______________________________________________
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