Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Online poker system suggestion  (Read 3894 times)
0 Members and 1 Guest are viewing this topic.
Offline FanTic

Junior Newbie





« Posted 2010-12-10 12:40:21 »

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
Offline cylab

JGO Ninja


Medals: 49



« Reply #1 - Posted 2010-12-10 13:45:27 »

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.

Mathias - I Know What [you] Did Last Summer!
Offline FanTic

Junior Newbie





« Reply #2 - Posted 2010-12-10 14:18:51 »

Thanks.. but what about game logic.. the server needs to handle al the game(poker) logic. Is this possible with servlets ?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 49



« Reply #3 - Posted 2010-12-10 15:03:01 »

sure, why not?

Mathias - I Know What [you] Did Last Summer!
Offline FanTic

Junior Newbie





« Reply #4 - Posted 2010-12-10 15:34:51 »

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

Junior Newbie





« Reply #5 - Posted 2010-12-10 15:40:18 »

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..  Smiley
Offline cylab

JGO Ninja


Medals: 49



« Reply #6 - Posted 2010-12-10 16:15:40 »

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

You where talking about using an AppServer and EJBs...

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

Mathias - I Know What [you] Did Last Summer!
Offline FanTic

Junior Newbie





« Reply #7 - Posted 2010-12-11 18:07:29 »

Yes you are right... thanks.
Offline divxdede

Junior Member





« Reply #8 - Posted 2010-12-24 10:30:07 »

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 ?





Offline FanTic

Junior Newbie





« Reply #9 - Posted 2011-01-05 23:24:25 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mr_Light

Senior Member


Medals: 1


shiny.


« Reply #10 - Posted 2011-01-08 05:27:01 »

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.


It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline DzzD
« Reply #11 - Posted 2011-01-08 10:37:11 »

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.
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

Offline FanTic

Junior Newbie





« Reply #12 - Posted 2011-01-09 10:21:30 »

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...)

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (17 views)
2014-09-21 02:42:18

BurntPizza (13 views)
2014-09-21 01:30:30

moogie (13 views)
2014-09-21 00:26:15

UprightPath (24 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (71 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!