JavaFX as a SaaS/ How good is it for Client-Server work?

I was under the impression that FX could be used to produce a Client-Server application as well as SaaS.
a member of another forum said "I'm sure you meant to say "Desktop". JavaFX will not be making inroads on the web as a client-side technology."
To which I said
There have been examples of FX used with EE
http://www.oracle.com/technetwork/java/javafx/samples/index.html
http://docs.oracle.com/javafx/2/overview/jfxpub-overview.htm
Sales Dashboard (DataApp)
DataApp is a client-server application for a fictional global automobile company called Henley Car Sales. Automobile sales are simulated on an EJB server using JavaDB, and the data is available via Derby and a RESTful web service. The client demonstrates a variety of data presentations by using a mix of FXML and JavaFX.
I thought originally that JavaFX was "Desktop" only also, until I found this example. I couldn't get it to run due to some weird Database line read issue that others also had. I'm not sure if this is now due to FX's integration, or if this was something new, but I believe I have seen another FX client-server app as well.
I'm not that familiar with the client-server side of Java yet, so if you have other Information I would like to know, because I am looking to design a Client-Server app with FX, and I don't see why it would be an issue, unless there are huge limitations."
He ended up saying "Those are still desktop apps. Sure, they are client-server in that they connect to a remote database. But they are still traditional fat-client apps rather than web-based thin-client SAAS web applications which, these days, most people will think of when you say "client".
My point is to be more precise when you use the word "client".
But if your point is just that JavaFX is taking over from Swing for the limited areas in which Swing is used, I have no insight into that area."
Now I don't really like attitudes when I get my question answered, but the high and mighty needs to stop. It clearly says Client-Server so I don't know why it's being denounced by this dude who thinks he obviously knows better.
Anyways he talks about it only being able to connect to a DB, to which it says it uses EE tech such as EBJ, Restful, and Derby, so that's more than just DB right(I don't know since I havent' learned that yet)?
It seems as if he's saying that only EE code can go up on a server? Or can SE code go up there as well?
I'm looking to design a SaaS software with FX, so if this isnt' possible I would like to know possible other options(or just having all of the gui work on the client, and the rest on the backend)???
Thanks!
~KZ
Edited by: KonradZuse on Apr 30, 2013 11:26 AM

This response is not a tutorial, I hope it gives you some verbiage to use in further searches.
SaaS to me means that the service is running on the server. If you have the server and permission to run java apps there then you can use Java FX by having the server shuttle requests to the Java FX app. But this is probably not the intent of Saas (it would be more appropriate to use a java implemented web service).
If you are using Netbeans then it is very easy to create demo projects; use "File/New Project" to run them on your local computer.
Example File/New Project/Java Web/Web Application will give you a hello world web site very quickly. This will 1) start either tomcat or glassfish as the server. 2) launch an html page with "hello world". then you can use java script to talk with the server via ajax. Using this approach you are going to need to study JSP or J2EE stuff.
After this is running you could start one of the Java Fx examples in Netbeans: File / New Project / Samples / WebViewBrowser. This will start a javaFX app that acts like a browser and runs on the client.
So, start the "hello world" app in netbeans by right clicking it in the project pain and selecting "debug". Then start the webviewBrowser app the same way to load that web page that has "hello world" in it as all browsers do. In the WebviewBrowser (which is java fx) you can get at the javascript in the web page and do all kinds of stuff. You'll need to search for webviewBrowser examples.
The above all assumes a Netbeans solution. But, as you probably know, there are no rules. The server can be in C++ and the client in C (or any other language). The server and client usally communicate via http or tcp. So you could have a server written in java (maybe J2ee or you can rewrite a http server from scratch which isn't that hard - search for "HttpServletRequest and HttpSession" ) and the client can be in Java FX (where the Java FX talks directly with the server via http (no javascript or web page in the middle) again there are probably hundreds of libraries to talk to a http server).
I use HttpServletRequest and HttpSession on the server side with MySQL and xml. On the client I use javaScript but I am moving to a strictly Java FX solution. This will give me close to 100% java on both sides and for my purposes this will work. (I may need a little html in the middle for drag and drop installation.) I am hoping that work continues with porting Java FX to most devices: Android, IOS, WinPhone. It is already on Linux, Windows Desktops and Mac.
Edited by: KevinPas on May 1, 2013 9:50 AM
Edited by: KevinPas on May 1, 2013 9:56 AM

Similar Messages

  • How to set proxy for client-server socket connection?

    Hi,
    I'm using the code found on the following page to create a client (mobile) to server (pc) connection and send a text message.
    http://javafaq.nu/java-example-code-503.html
    This works with mobile operators without proxy, but does nothing when the operator uses a proxy. The question is, exactly how to set the proxy and port values for using that code.
    Any help is greatly appreciated, thanks,

    It's part of the cellular settings, and is usually set up by your 3G provider. You can't choose your own proxy server

  • Overall how good is Numbers for the IPAD?

    Overall how good is Numbers for the IPAD?

    Learning curve required  but it works well. The user quide is very good, maybe look at that first..
    Different options available on Numbers for iPad to what's available on Numbers for Mac.
    Dragging around spreadsheet columns on an iPad is fun but probably overall not as intuitive as most apps until you get used to it.

  • How do I get Apache web server working ...

    How do I get Apache web server working on my MacBook Pro, which is running Leopard 10.5.8?
    When I enter 'http://localhost/~username/' (without the quote marks) as a URL in my Firefox browser on the MacBook, I do not see any result at all(!). I do have Web Sharing on in System Preferences on that machine. But the browser does nothing whatever for that URL ...
    On my other computer, an iMac running Leopard 10.5.8, when I enter 'http://localhost/~username/' I see the default "Your Website Here" page. That same default page is in fact the index.html file I expect to see on the MacBook Pro. But it isn't getting invoked for some reason. Nothing is happening ...
    When on the iMac I try 'http://10.0.1.18/~username/' (10.0.1.18 is the local IP address I see under 'Web Sharing: On' on the MacBook) I get "Unable to connect: Firefox can't establish a connection to the server at 10.0.1.18."
    When on the MacBook I try 'http://10.0.1.5/~username/' (10.0.1.5 is the local IP address I see under 'Web Sharing: On' on the MacBook) I see the default "Your Website Here" page.
    It is the same on my iPhone: Using the same local IP addresses and usernames, Safari can see the index.html page on my iMac but not on my MacBook.
    It looks as if Apache is not working on the MacBook, while on the iMac it works fine.
    On the MacBook I can see (after I use 'defaults write com.apple.finder AppleShowAllFiles TRUE' in Terminal) a /private/etc/apache2/ directory with what look to be(?) the usual contents. So it looks like Apache is duly installed, as far as I can tell.
    On the MacBook I don't see a file at /private/var/log/apache2/error_log, which is the location for 'ErrorLog' given in the httpd.conf file.
    That about exhausts my understanding of how to get a handle on my problem.
    Any advice or suggestions from those who have more expertise with Apache will be much appreciated ...

    Okai, so we are getting somewhere, but not quit there yet :-)
    I opened the Kenneth.conf file using the command: vi Kenneth.conf
    This is what it said:
    <Directory "/Users/Kenneth/Sites/">
    Options Indexes Multiviews
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    </Directory>
    "Kenneth.conf" [readonly] 6L, 139C
    I therefore changed the AllowOverride from AuthConfig Limit to None, which was the only difference from what you posted above. Something did change, when I tried to open XAMPP it prompted me a password, but Apache still wont start :-/

  • How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    How do you copy, for example I work with blue prints and I want to copy a section and copy into another new page?

    Forgot to add that it would be an adjustment layer with some kind of mask on it already. The mask is uncentered when copy and pasted which throws it off.
    I guess the same question would go towards doing the same for an object. How to copy and paste it over to a new doc, keeping its position within the document? is this possible?

  • How does creative cloud for Enterprises licensing works?

    how does creative cloud for Enterprises licensing works? witch is the method of verification of keys?
    how does it works with active directory?

    There is no difference please be aware that each login is provided with two activations however.  If you wish to have a computer at both work and home activated though that is perfectly fine as long as your employer is ok with using company software at home.

  • How to use itunes for windows server 2003

    how to install itunes for windows server 2003

    Purchased music from the iTUnes store is in a "AAC protected" format. It can only be used in iTUnes. Any music you buy online these days will have some protection on it where you can only use it in there program.
    The way around this is to burn the purchased songs to a CD in iTUnes. Then goto edit>preferences>advanced tab>Import sub tab and set your import settings to something like MP3.
    Now put the burned CD back in the PC and "Re"import it into iTunes so its imported in a MP3 format so you can use it in any program. Before importing it tho you need to manually add the name of the song, artist album ect ect

  • Startup disk is full and the laptop can't operate.  How I remove files for it to work?

    Startup disk is full and the laptop can't operate.  How I remove files for it to work?

    Can you turn on the Macbook Pro?
    If yes, can you see the hard drive icon?
    Have you emptied the trash?

  • How to delete the workbench client server name in FDM

    Hi Gurus
    How to delete/change the workbench client server name in FDQM?
    regards
    Sarilla

    OK, I understand now. You are referring to the Load Balance Server Group. Yes, this can be done:
    a) Browse to Oracle\Middleware\EPMSystem11R1\Products\FinancialDataQuality\SharedComponents\Config
    b) Locate the LoadBalanceServerGroups.xml file
    You can delete this file. The next time the workbench is launched it will ask you to set the load balance server group again and will create this file again.

  • How can I make the web server work on port 80 and not 443. I can only access my website using https.

    On a Mac Mini server with OS X Lion 10.7.2, I am unalbe to get the web server working on port 80. It switches automatically to port 443 (https).
    This situation complicates the access to FileMaker Web publishing, as I don't want my clients having to use https.
    How can I change that? Does anyone know?
    Thanks for any reply

    in the server: I checked the SSL certificate. Tried several configuration.
    Well, that's a problem for a start.
    Your port 80 connection should NOT use SSL. Port 80 is the standard HTTP port, not HTTPS and most applications that connect to port 80 will not expect to use SSL
    If you want to run a site under both HTTP and HTTPS then you create two sites, one on port 80 without SSL and one on port 443 with SSL

  • How to get the FTP clients to work?

    This is something that (to me at least) should be trivial but I just can't
    get it to work at all.
    How do you get an FTP client to work?
    I've tried several GUI clients as well as the terminal FTP command and they
    all seem to get stuck entering passive mode - according to the log entries
    they send the command.... And then nothing or a timeout, the following is
    from the terminal FTP command:
    Titania:~ susan$ ftp ftp.apple.com
    Trying 17.254.16.11...
    Connected to ftp.apple.com.
    220 17.254.16.11 FTP server ready
    Name (ftp.apple.com:susan): anonymous
    331 Anonymous login ok, send your complete email address as your password.
    Password:
    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    501 EPSV: Operation not permitted
    227 Entering Passive Mode (17,254,16,11,223,157).
    200 PORT command successful
    421 Service not available, remote server timed out. Connection closed
    ftp>
    In my System Preferences -> Network panel in the Proxies tab, I have the
    "use Passive FTP mode (PASV) checked.
    I also have checked the FTP firewall option (but I think that is only if I'm
    acting as an FTP server).
    I am connected to the internet via a Netgear wireless router.
    I also have an old Windows laptop that also uses the same wireless router
    and it can FTP quite happily!!!!!
    Any suggestions would be gratefully received.
    Susan

    ejn - thanks for your continued assistance.
    I've tried turning the firewall off but this does not appear to make any difference(*). Also, I have Parallels installed and I'm sharing the internet connection with this (even though Parallels itself is not currently running). Turning this sharing off doesn't seem to change anything either.
    I have noticed some entries in the ifpw.log file that coincide with some of the ftp actions. Given the following terminal session:
    Titania:~ susan$ ftp ftp.apple.com
    Trying 17.254.16.10...
    Connected to ftp.apple.com.
    220 17.254.16.10 FTP server ready
    Name (ftp.apple.com:susan): anonymous
    331 Anonymous login ok, send your complete email address as your password.
    Password:
    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    501 EPSV: Operation not permitted
    227 Entering Passive Mode (17,254,16,10,245,46).
    200 PORT command successful
    421 Service not available, remote server timed out. Connection closed
    ftp>
    at the time the "200 PORT command successful" is displayed, the ifpw log starts showing:
    Sep 5 09:11:21 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:24 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:27 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:30 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:33 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:36 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    Sep 5 09:11:42 Titania ipfw: 12190 Deny TCP 17.254.16.10:20 192.168.0.5:49162 in via en1
    which makes sense as the system tries to go for an active transfer.
    (*) Actually, while I've been writing this, I've been playing on the terminal as well. I've found the combination of:
    1) turning off the firewall
    2) starting ftp
    3) issuing the 'passive' command to turn off passive mode
    4) issuing 'ls' etc. works
    Looks like I've not been waiting long enough for the ftp client to get sick of trying the passive transfer and switching to an active one with the firewakk turned off!
    Still doesn't answer the question - why does passive mode not work?
    Susan

  • Any good training videos for project server 2010

    Hi All,
    I am working on SharePoint for several years and we had installed project server & created PWA site. But project server looks lot different from SharePoint. is there any good training video's for project server 2010?
    Thanks for any help
    Rithu

    Rithu,
    This would be a good place to start: http://technet.microsoft.com/en-us/library/ff628958(v=office.14).aspx
    There are also several videos on Youtube as well. I am not sure if there is a 'structured' course available for Project Server 2010
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • How to install license for Weblogic Server 6.1

    Hi,
    I downloaded WebLogic Server 6.1, it works fine.
    but I want to change the JDBC to Oracle (the default is Cloudscape). I follow the
    instructions in page "Installing WebLogic jDriver for Oracle". it looks fine until
    "java utils.dbping ORACLE james 1234 DBServer"
    it says: Missing license file for: Weblogic Server 6.1.
    I found the licese.bea is in c:\bea, I use "updatelicense.cmd" to do it several times,
    it still doesn't work.
    I am using Win2k and Oracle 8.1.7
    Thanks.
    James

    Hi.
    http://edocs.bea.com/wls/docs61/jcom.html
    or do you have a more specific issue?
    Regards,
    Michael
    Raymond Cheng wrote:
    Anybody know how to prepare JCOM environment for developer to intetrate their windows client.
    Thanks a lot.
    Raymond Cheng.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to install sp2 for sql server 2012 , where sql server 2012 instnce is installed in cluster mode

    Hi Everyone,
    I want to install sp2 for sql server 2012, My sql server 2012 instance is installed in cluster mode.
    Please suggest the best practice to install sp2 , what are prerequisite and recommendation.
    Please share installation guide for sp2 in cluster instance, if any one have.
    Thanks All
    Aditya

    Did you searched a bit before posting question.
    Please read
    https://support.microsoft.com/kb/958734?wa=wsignin1.0
    http://blogs.msdn.com/b/john_daskalakis/archive/2014/09/05/how-to-install-a-service-pack-at-a-sql-server-2012-failover-instance-best-practices.aspx
    http://blogs.msdn.com/b/jason_howell/archive/2012/08/28/how-to-patch-sql-server-2012-setup-with-an-updated-setup-package-using-updatesource-to-get-a-smart-setup.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • How 2 generate SMS for SAP server backup

    Hello experts,
    Please advice how can I proceed for generating an SMS on successful/unsuccessful completion of SAP server backup.
    Thanks in advance,
    Aastha.

    Hi,
    Check this :
    Is there any Function Module available to send SMS (Short Message Service)?
    And Use the search below;
    [Search Results For send sms (~325 results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=send+sms&cat=sdn_all&start=1]
    Regards
    Karthik D

Maybe you are looking for

  • Can I ask InDesign to resample as it exports to PDF?

    When I export an InDesign CS document to PDF I'd like to know what InDesign does to the images that it exports. InDesign Help, in this case, was no help. I'll give a preamble so you know what I'm on about. Originally when I first started this project

  • Can not have more than one screen open at a time PLEASE HELP

    some how I've made it so when I open more than one application or screen the current one open goes off the screen to the left. Can someone help so that I can again have more than on screen open at a time. Thank You in advance for your courtesy

  • It doesn't display the name of who sent the text m...

    okay, so i have always had nokias, which have this feature. i now have a nokia E63 - and when i first got the phone it showed the name of who's text i received before i opened it - so i know the phone has the feature. however, its stopped doing it, i

  • Wireless connection problems (SOLVED)

    Seems to randomly work now, thanks Yesterday I was doing normal things on the web and suddenly the airport logo went blank, connection is gone.  Strange, so I try a few things: - messing with Network Preferences, which after manually trying to connec

  • Bridge cs3 not letting me label with colors or rate with stars.

    I can't rate with stars or label with colors anymore in bridge.  I went into preferences to see if I had accidentally changed something but there was nothing different there.  I redownloaded my software from adobe and had it correct problems but it d