Re: Java Client (topic of the day!)
Re: Java Client (topic of the day!)
- Subject: Re: Java Client (topic of the day!)
- From: Stamenkovic Florijan <email@hidden>
- Date: Wed, 25 Mar 2009 18:22:28 -0400
Hi John
On Mar 25, 2009, at 17:46, John Ours wrote:
Funny to see all these messages about creating a Java Client, since
that's exactly what I've been working on today.
I've been following Florijan's write up and David's examples (thank
you both!) and I've actually got things working so far. After all
these years of grinding through client-server builds, this is like a
gift from God.
Cool to see that the hard work is being put to use :D For a while it
seemed like Dave and I were the only ones out there...
Anyhow, when working with this in development, what's the best way
to handle starting the app from the IDE?
I do exactly what you describe below, with some minor improvements.
Please read on.
The way it's set up now, I've got my WebObjects server application
in one project and my Swing client app in another. In the client
app I call EOClientApplicationSupport.main and pass in the URL to
the running server app. The problem is that the port changes on the
server app every time I start it. Is there a way to set it to a
fixed port?
Yes. Use the WOPort property in the server app's launch config (in the
WO tab of a WOLips launch config).
Or a better way to setup the run profiles for a Java Client app?
I don't do anything fancy there. Sometimes I set heap sizes, but
that's it.
Still, depending on what you're doing there might be a better way to
deal with EOClientAppSupport. Attached is a class that I use as a
parent class for the main class of my JC apps. It takes care of some
things for you... It's main purpose is to allow you to pass it
multiple URLs to try to connect to. It is a part of my WOJCKit
framework (a set of client and server side stuff for WOJC apps), which
I guess I should publish, seeing all the interest on WOJC lately :)
HTH,
F
Attachment:
EOAppSubclass.java
Description: Binary data
_______________________________________________
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