Jump to content
  • Advertisement

Tomcat/Glassfish non-web application(please help!)

Recommended Posts

Posted (edited)

 All I want to do is create a java application that executes and performs server side polling on a turn based game after authentication to an address space(java web hosting service).I'm a couple years away from writing web applications that ran through a remote server, but leveraged my local tomcat server to perform the server side logic. 

First question, can tomcat/glassfish be used to generate non-web based applications?

Secondly.That being said, is it sufficient to simply use glassfish/tomcat to connect to a java-web hosting service(address space)? And is a web-hosting service simply an address space that runs java application code?



Edited by Charley_43613

Share this post

Link to post
Share on other sites

There exist many different web hosting setups. You need to have a better description of what a "web hosting space" is for whatever host you're using.

There's nothing in Java preventing a Tomcat or Glassfish service from spawning a thread, calling bind() / listen() / accept() and running whatever protocol you want. However, wherever that Tomcat is running might have other requirements on processes that will make that not actually work the way you want.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!