Server with Java support question.

Hi.
I was thinking about making an 2d mmorpg in an applet and distribute it on a webserver with mysql. I realise I will propably have to make a java server that is located on the same server as the applet, that handles all the clients connected. My question is, is there any webserver out there, that can handle a running java server also?

/ svartberg

there’s no free solution for your problem, I’ve already been wondering about that but I didn’t find any free solution. PHP/MySQL are the usual available for free in webhosting.
The best way to have a J2EE capable server is to build your own Apache/Tomcat host and to reference it in one of those Dynamic DNS provider like DynDNS.org and others.

Yes. I thought about making the web content with PHP and MYSQL, and the game in an applet. But I think its to slow to store every part of my mmorpg in the mysql database, cause i need frequently updates about every clients. So thats why I thought about making a running server with sockets for my game.

About Tomcat and servlets, isnt that made for web content or can it handle clients on applets also?

Depending on your game you could just create the needed functionality in a php-script. With some clever application context caching you can reduce the amount of communication needed with the mysql. You even have the advantage that such a setup would allow communication over proxies as well. But as I said. Depending on your game the HTTP protocoll might not be suited for what you are after.

Well I gonna make an 2d mmorpg in an applet, and what I know I can only communicate to a mysql server from the applet, and much of the code will be on the server side (like handling every position of every people in the game, handling every item such as weapon ),

Then I think I need a running server program written in java that listen’s to client connections and handle them, and because of that im not sure where to find a webhost that offer a running program also, maybe I should looking for a game host instead, or is the only solution to buy a server computer and running it 24/7 ?

Have anyone experience or know how to get it work with this?

Thanks / svartberg

You can try http://www.myjavaserver.com/

You don’t want the applets to access the mysql database immediately. Rather, you want to talk to a java server, who manages the transactions. And I see no problem running a JVM on the same box as the http server. Of course, that means you can’t take out-of-the-box http hosting as your server, you’ll have to get a server where you can start your own processes.

I’m not a darkstar fanboi, but it seems to me you might want to take a look into it. The server logic will take care of a lot of the nitty gritty detail, and you might get a free (beta) server in the process.