Online poker system suggestion

Hi,

I’m thinking of developing a online poker system in Java (client/server) and I’m thinking of using Java EE… as a three tier application… so database tier (MySQL), where all player data will be stored, such as login data, nickname, bankroll etc… middle tier (app server, EJB) for interacting betwen this data and client tier which will be java applet…all the game(bussines) logic will be on the server side (app server-JBoss)… I’m writing this becouse im interested what are your opinions…? Or if you have any other suggestion… It’s possible to create a game server this way…? on a java app server or what… ?!

Thanks

Sure, but I would skip the EJB part. Just use some simple servlets and use jetty or tomcat as Container. If you bring this into production think about hiding the Container behind an apache Proxy path.

Thanks… but what about game logic… the server needs to handle al the game(poker) logic. Is this possible with servlets ?

sure, why not?

dont know I was thinking more of a multithreaded game server… but this is just an option.

Just for info… I am talking poker online system like www.bwin.com poker (applet client not application)…ok ist just client all you can see…so I realyy dont know how its done at server side… :slight_smile:

You where talking about using an AppServer and EJBs…

Anyway, a Servlet is code running in a muitithreaded server, so…

Yes you are right… thanks.

A J2EE is a multihreaded server !
Why it should skip the EJB part ? It’s a good place for put it’s business logic. no ?

Custom multithreaded game server will be used… so no app server like jboss, tomcat… custom java app (multithreaded socket server) and for client I’ve choosed flash(actionscript), which will connect to server via socket.

A Java Servlet container can be multithreaded and to allow servlets to run across containers it needs to be thread safe but there is nothing that saids it has to be multi-threaded per se. Anyway all well known are.

Anyway J2EE is death we started calling newer versions JEE ages ago.

So to actually be constructive, if I had to go about it I would forget about the 3 tier cause it makes no sense for short-lived stuff like a poker system apart from winnings and other stuff you need to track but you might want to focus on getting things to work first. Given this I would look at the channel api and async responses introduced in JEE6 you can go ajax or html5 canvas easily. Hell have a look at vaadin while your at it.

tomcat may be a good choice, it is very stable & efficient

If I had to do such project I would have used server side : tomcat+mysql, and client side : javascript+DHTML

Thanks guys. I agree with Mr_Light, but I’ve already started building a custom multithreaded game server (TCP sockets) and for now its working for me. I have some test app to test the server, but as soon as I get it about 90% working, I will start building a client (falsh-actionscript - i choose flash because of faster graphics development). My game server has also a policy server requested for flash client. So mabye when I finish the first phase I’ll post some source if you want. Oh yes and I’m also using a little mysql for some player data storage (like winnings and bankroll etc…)