20 Replies - 263 Views - Last Post: 05 December 2012 - 10:38 PM
#1
Putting a Java Application Online
Posted 05 December 2012 - 09:21 PM
I have a website up and ready for it, running with PHP and MySQL. Now I'm looking into how I am going to get this product up online and available to people. I want to do this in the easiest way with a good amount of security.
Here are some factors to consider:
1. I do not want to just have the user download the application and run it on their CPU. My main goal is to have the application run completely on the web and my server, as it is going to be something that a user will have to pay monthly (or something of this nature) to actually use.
2. I'm proficient in Java and I have written a good deal of small applications in the language. However, I have never dealt with Java applets or put any of my applications online, so this is all new to me.
3. I have the website pretty much in place. There is currently functionality to register and login, but I'm not sure where to go from here.
Any ideas or help is really appreciated. I'm really just looking to talk about it to put together some sort of plan to get this thing up and running the way I envision it.
Thanks!
Replies To: Putting a Java Application Online
#2
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:24 PM
#3
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:26 PM
#4
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:26 PM
It's more common these days to use Java for server-side work, with a front end technology being used for the interface. Something like Javascript.
I noted that you want this to be as secure as possible - that's actually the reason corporations are moving away from applets - the Java browser plugin has become a very attractive attack vector for security exploits.
#5
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:29 PM
xclite, on 05 December 2012 - 09:26 PM, said:
It's more common these days to use Java for server-side work, with a front end technology being used for the interface. Something like Javascript.
I noted that you want this to be as secure as possible - that's actually the reason corporations are moving away from applets - the Java browser plugin has become a very attractive attack vector for security exploits.
Hmm.. ok. My Javascript knowledge is pretty minimal. How exactly would I go about doing something in Javascript that communicated with my application?
#6
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:31 PM
#7
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:33 PM
These serve up html responses to requests.
The Javascript bit can be used to make page content dynamic, and they simply make requests the same way a page load makes a request.
pbl, on 05 December 2012 - 11:31 PM, said:
I still seriously advise against an applet as it is a massive security hole, and many security experts recommend not even allowing your browser to execute Java.
Amazon explicitly rejects applets because securing them is nigh impossible.
Note: The security of applets isn't necessarily a risk to YOUR service, it also requires your consumers to have Java enabled in their browser, which makes them vulnerable to OTHER insecure apps.
This post has been edited by xclite: 05 December 2012 - 09:35 PM
#8
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:34 PM
How you don't recommend JSP? Is Spring a good option?
#9
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:36 PM
And for your Amazon story I would like to see links
#10
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:39 PM
If I went the way of the applet, would I need some sort of JSP or Spring to work with the applet or would the applet do all the communication with the Java application? Does this make sense? Am I thinking of this the right way?
Also, could you point me towards some good sources for how to communicate with a server within a Java application? I have no experience with this and don't really know where to start.
#11
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:43 PM
I can't link you to an internal memo and I'm not sure what the disclosure on specific announcements is. PHP is a security nightmare as well, and you won't find a single external-facing Amazon service running it for similar reasons.
If you seriously think Applets are secure, you're living under a rock. The recent zero day exploits that Oracle refused to take seriously are just one example:
http://nakedsecurity...ities-in-april/
http://nakedsecurity...ited-tax-email/
itsjimmy91,
Web development is a very broad area. You *can* make this work in an applet. However, anybody in tune with web applications these days should be able to tell you that that's the way of the past.
Spring and Play are popular Java frameworks for creating web applications. JSP, in my opinion, is a little less structured and less productive. You can certainly get things done however you want. I'm just suggesting that you avoid the applet route, because very few people are interested in using and deploying them.
itsjimmy91, on 05 December 2012 - 11:39 PM, said:
If I went the way of the applet, would I need some sort of JSP or Spring to work with the applet or would the applet do all the communication with the Java application? Does this make sense? Am I thinking of this the right way?
Also, could you point me towards some good sources for how to communicate with a server within a Java application? I have no experience with this and don't really know where to start.
As pbl pointed out, you can do this with sockets. If you were to go the applet route, you can open a socket in your applet to your server, which would be listening on a socket.
If you went the web framework route, you would most likely be using HTTP requests instead.
Both sockets and HTTP requests are effective ways of doing what you want. I'm not arguing against sockets, just applets.
Edit to the edit to the edit:
Using a Javascript/HTML frontend requires your users to install nothing additional. Every* browser has that. JRE? Maybe not.
This post has been edited by xclite: 05 December 2012 - 09:47 PM
#12
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:46 PM
#13
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:48 PM
#14
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:48 PM
I'll have a PHP page, in which I will have a framework (Spring, Play, etc), and that framework will communicate with my application through sockets, and the application will then communicate with a database? Is that the life cycle of what I'm trying to do?
#15
Re: Putting a Java Application Online
Posted 05 December 2012 - 09:52 PM
Another consideration - do you want your users to be able to visit this website on mobile devices?
Don't use an applet.
itsjimmy91, on 05 December 2012 - 11:48 PM, said:
I'll have a PHP page, in which I will have a framework (Spring, Play, etc), and that framework will communicate with my application through sockets, and the application will then communicate with a database? Is that the life cycle of what I'm trying to do?
That sort of depends. How do you communicate with the application right now?
It's possible for the application to run side by side with a web site that communicates with it, or it's possible to have the web site *be* the application, where you handle each request by communicating with the application code.
One advantage of applets is that they are probably simpler to understand than learning the entire web development stack that one needs to know to be effectively create web applications.
This post has been edited by xclite: 05 December 2012 - 09:54 PM
|
|

New Topic/Question
Reply




MultiQuote





|