Gents;
Just to follow up on my idea before Christmas. ? to build a JSON AJAX client
for 5250 data.
I have made a simple running prototype so I?m convinced it can be done.
This tiny emulator demo is written 100% in RPGLE, and can be used as
workstation scripting screen scraper prototype.
The current version is simply is using plain HTML, but the real goal - a
more fancy JSON / AJAX providing data for JavaFX or just javaScript will be
super simple to implement.
The prototype is fare from stable and lot of stuff to be done, but you can
give it a try it on:
http://icebreak.org:60000/icecap04.aspx
Login with user: DEMO and password: DEMO ? You need to type in UPPERCASE
? please don?t do anything stupid while you logged on .
The source is available at:
http://demo.icebreak.org/webfiles/icebreak/iceCap.zip
The iceCap.zip contains the following:
iceCap.rpgle.h The prototypes for the client
iceCap04.aspx This is the tiny emulator implementation
written in RPGLE for IceBreak
scv242.c The iceCap API module that deals
with all the ugly 5250 stuff
vtTrace.txt A JSON log of a simple session login
on, CFGTCP etc.
I have used IceBreak as the server (I?m a little biased here) but I have
made the iceCap API reentrant so it can be ported to CGIDEV2 if anyone will
be interested ?
The code is a monolith ? I know ? it?s a prototype ? don?t complain?
Best regards
Niels Liisberg
IceBreak Chief SW Architect
System & Metode Technologies
Håndværkersvinget 8, DK-2970 Hørsholm
Phone: +45 70 20 36 10
Fax: +45 70 20 30 11
Direct: +45 45 177 055
Mobile: +45 31 158 861
E-mail: <blocked::mailto:nli@xxxxxxxxxxxxxxxxx> nli@xxxxxxxxxxxxxxxxx
Web: <blocked::
http://www.system-metode.com/> www.system-method.com and
<blocked::
http://www.icebreak.org/> www.Icebreak.org
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Niels Liisberg
Sent: 23. december 2008 15:23
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400]Pete's web5250 was->Re: Business Developers was ->Re:
IBM Gives RPG Devotees Their Own Café
john e wrote: Maybe it's an idea to replace the bloated browser with a
java client, JavaFX to be precise<
Hi John.
I had never heard about JavaFX - but after browsing around, download it to
my NetBeans .. must say .. I'm in love :)
The language is a crossover between java and javascript. Fx is a dynamic
language where you access java classes and define object just like in
javascript. Very slick way of inherence and the way to expose methods as
properties with a simple "bind" keyword - is just brilliant.
JavaFX is actually another good argument for making the 5250 javascript
proxy - JavaFX will just swallow the JSON stream I am talking about....
Best regards
Niels Liisberg
IceBreak Chief SW Architect
System & Metode Technologies
Håndværkersvinget 8, DK-2970 Hørsholm
Phone: +45 70 20 36 10
Fax: +45 70 20 30 11
Direct: +45 45 177 055
Mobile: +45 31 158 861
E-mail: nli@xxxxxxxxxxxxxxxxx
Web: www.system-method.com and www.Icebreak.org
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of john e
Sent: 23. december 2008 14:13
To: web400@xxxxxxxxxxxx
Subject: [WEB400] RE: Pete's web5250 was->Re: Business Developers was ->Re:
IBM Gives RPG Devotees Their Own Café
Answer 1:
JavaFX is a layer upon the normal JVM. In fact, it *is* simply Java, but
with a new nice declarative language with which it is far easier to build
attractive UI's as with Swing. But it's simply Java. For some that seems to
be a problem, for others its a big advantage.
So JavaFX is delivered through the normal JVM plugin, which is Java 6 update
10 (or 11 now). The start-up time seems to be reduced, and you can even drag
an applet to the desktop so it runs outside the browser (dont need the
browser anymore the start the app).
For public apps, depending on the app and the customer, HTML/Javascript
maybe a better option. Because it's ubiqious.
JavaFX 1.0 has now one week or so old, so don't judge it now, but keep your
eyes on it. The big advantage of JavaFX is that it is based on the stable,
robust and efficient Java platform. IMO, it has big potential. To contrast
it with Flex, the latter is more for apps where design and looks is more
important than functionality. You can't build a complex app in Flex (flash)
without running into all kinds of problems, like memory leaks and
performance problems. It is no basis for business application development,
but more for ads and the like.
Answer 2:
JavaFX is rather new, but if you google then there are enough example apps
you can try.
I googled one up for you:
http://javafx.com/samples/
Date: Tue, 23 Dec 2008 06:27:13 -0600
From: aaronbartell@xxxxxxxxx
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Pete's web5250 was->Re: Business Developers was
->Re: IBM Gives RPG Devotees Their Own Café
<Ignorance warning>
How is JavaFX originally delivered to the users desktop? Is it similar
to a "browser add-on" like Flash or Silverlight, or is it more like
downloading the .NET framework (guessing the latter). If that's the
case then I can see it working for internal apps, but that still leaves
the need to do public web sites where the viability of your business can
depend on how easy/non-intrusive it is to use your website - hence why
HTML+CSS+JavaScript will seemingly forever be trying to mirror what
other "thicker" technologies can do better.
Question 2: Do you know of any current online sites that use JavaFX?
Everytime I see an update about the technology I always try to take the
time to read it, but I don't believe I have ever actually seen a JavaFX
app. Do you know of any by chance?
Thanks,
Aaron Bartell
http://mowyourlawn.com
john e wrote:
Maybe it's an idea to replace the bloated browser with a java client,
JavaFX to be precise which is quite efficient and can provide a very
aesthetic look. Its better suited for business apps (e.g. it can be made
keyboard centric much easily as html/javascript) *and* you have the
availability of the vast java platform libraries on the client, *and* you
have far less security problems. For example it would be possible to access
the local disk in a controlled way.
As others (well, at least one other person) already stated, the browser
is a dead end for serious (business) apps, IMHO.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
_________________________________________________________________
De leukste online filmpjes vind je op MSN Video!
http://video.msn.com/video.aspx?mkt=nl-nl
As an Amazon Associate we earn from qualifying purchases.