• 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: Command Line Client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command Line Client


  • Subject: Re: Command Line Client
  • From: Des Oates <email@hidden>
  • Date: Mon, 29 Nov 2004 14:22:57 +0000

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?

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.

Thanks a lot.
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


_______________________________________________ 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: Command Line Client
      • From: Jean-François GUILLAUD <email@hidden>
    • Re: Command Line Client
      • From: Nick Pilch <email@hidden>
References: 
 >Command Line Client (From: Des Oates <email@hidden>)
 >Re: Command Line Client (From: Des Oates <email@hidden>)
 >Re: Command Line Client (From: Jean-François GUILLAUD <email@hidden>)

  • Prev by Date: Re: Deploying WO on Linux
  • Next by Date: RE: printing
  • Previous by thread: Re: Command Line Client
  • Next by thread: Re: Command Line Client
  • Index(es):
    • Date
    • Thread