Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 7th June 2008, 11:46 PM   #1
kthnx Thread Starter
Member
 
kthnx's Avatar
 
Join Date: Apr 2006
Location: NSW
Posts: 1,132
Default Running Java applications serverside

So, I have this little box thing called an Xport. It connects to a serial device (a water level sensor) and you can connect to it for settings etc via it's ethernet port. It spews the data to a designated local IP, where a receiver program catches the transmission and displays it to a user. That all works fine.
I'm trying to set it up to work on a web server so that I can store the variables in a SQL db and display them on a graph (no worries coding the graphing application // retrieving the variables).
My problem is somehow getting the server to receive the databursts being sent to it. I know a guy who's done it but he actually owns his server, whereas I just rent hosting space, so I'm having a bit more trouble since I can't just run applications. Not really 100% but I'm lead to believe Java is the way to go for receiving the transmissions. Would you agree? How hard is it to get Java running serverside (I'm guessing there's some kind of horrible package to install?)
My knowledge is basically limited to HTML / PHP / AS2 so no idea if I'm on the right path here or what. Any thoughts?
__________________
Quote:
Originally Posted by kevmif
Fucking hell... Batman can get ADSL and i'm stuck on dial up.
eBay FS: null | BakeOff Finalist 06 | Google it | 30+ successful trades for total >$1500
kthnx is offline   Reply With Quote

Join OCAU to remove this ad!
Old 8th June 2008, 7:23 PM   #2
lazjen
Member
 
lazjen's Avatar
 
Join Date: Feb 2003
Location: Brisbane
Posts: 373
Default

Getting some java application to listen on a port for these transmissions would not be difficult to achieve. Depending on what you need or the skills available to you this could mean just a standalone java app, or some deployed application in an appserver (like Tomcat or Glassfish). I suspect the latter might be overkill for your needs though. Installation of java is very simple - there's RPMs for example - some other OSes have other packages. At worst there's a tarball.

I think the biggest problem you're going to have (besides writing the app) is convincing the site you're hosting with to allow you to use java (or anything really) to run your app. Servers that allow you to run apps are generally more expensive than just web hosting.

Now, you might be able to simplify this a bit, depending on the device hooked up to your sensor. If you can write something there to catch the data there, you could resubmit it as a HTTP request (post) to your web host, where I assume you can use PHP to process it.
__________________
One of my interests: Girraween National Park
Astrobin
Flickr
lazjen is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 11:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!