+ Reply to Thread
Results 1 to 6 of 6

Thread: Running Java on x10

  1. #1
    ParallelLogic is offline x10Hosting Member ParallelLogic is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    33

    Question Running Java on x10

    The basics of what I want to do is take information sent from a Flash app not hosted on x10, process it and generate a few GET/POST calls, using Java, that are then sent to another site.

    I currently have a method to go from the Flash app, XML and PHP to get to x10 (which I presume could then be filtered into Java). I also have a Java program that can generate the GET/POST calls necessary (I can run this program on my home computer). Ideally, I'd like my Java program to run on x10 in some form because I'd like it to ping a website (via the GET/POST calls) every 5 or 10 minutes or so to show that the program is running. Also, on occasion a user will interact with the Flash app, providing the second form of communication. So I need this system to accomplish two things: ping a server and communicate with a user (from a Flash app through Java and to a GET/POST call). The latter is more important than the former, so I could have the program 'wake up' each time a user interacts with the Flash app and simply drop the pinging of the server, but I'd prefer to show the user the program is online as well.

    In my ideal situation, I could host my Java program on the x10 servers. I haven't looked into this deeply yet as I don't have experience with server-side operations and I was hoping some other users could provide some insight into what is and isn't technically possible.

    This isn't an applet, although I may be able to convert it into one, I do fear however that that would limit or prevent me from sending GET/POST calls.

    I am open to working in other languages, I'm just more familiar with Java and have a working program there - if there's a way to send POST/GETs, etc with PHP or another more appropriate language, please feel free to direct me to that

    Fun stuff, thanks for reading

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Running Java on x10

    There is no way to get Java to run on x10hosting unless you are talking about a VPS. Java is not set up on the servers.

    Also, any continuous running script is against the TOS.

    Lastly, your description is so vague that I have no idea what you are proposing.
    Nothing is always absolutely so.

  3. #3
    ParallelLogic is offline x10Hosting Member ParallelLogic is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    33

    Re: Running Java on x10

    ~Also, any continuous running script is against the TOS.
    I suspected as much, ah well. x10 has pretty good uptime (at least from what I've observed), so I'm hoping it won't be a problem to be on-the-spot rather than continuously running

    ~your description is so vague that I have no idea what you are proposing.
    Well, I use WireShark to view the packets my computer is sending when I view a webpage and I've reverse engineered the method to generate those packets using GET and POST calls in Java (I'm using Sockets, BufferedReaders, etc to send the packets). I'd like to know if there's a similar method to send GET or POST calls with other languages. I'm not terribly familiar with languages outside of Java, so I'm not really sure what the best option would be. It sounds like Java wouldn't be a viable option, so I'll need to do something in another language, but I'm not sure where the best language to go to would be.

    I'm looking to provide an automated service for a website (the topic of spamming comes up a lot, I wouldn't waste my time on something that would get banned in 20 seconds after months of work, I'm looking to provide an honest service), so I'm logging in and asking the account to perform actions through the GET and POST calls. Ideally, I'd like to have users use a Flash app hosted on this website, which would send commands to PHP/XML hosted on x10 and the 'bot' would then, using some language, generate the appropriate packets and send them to another site. I feel like I have nearly everything scoped out, i just don't know how to generate the GET/POST packets from the server.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Running Java on x10

    Again, too vague.
    Nothing is always absolutely so.

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Running Java on x10

    Quote Originally Posted by ParallelLogic View Post
    Well, I use WireShark to view the packets my computer is sending when I view a webpage and I've reverse engineered the method to generate those packets using GET and POST calls in Java [...]
    You mean you reverse engineered HTTP?

    Most languages have library support for HTTP. However, the free X10 hosts block most ports, including outgoing connections to port 80, so it's unlikely you'll be able to connect to the other server.
    Last edited by misson; 02-28-2011 at 10:49 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Running Java on x10

    Let me see if I have this straight..

    A flash application embedded in somebody elses web site passes information to your web site...

    what data exactly are you extracting exactly?
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


+ Reply to Thread

Similar Threads

  1. VPS - JAVA JDK Help
    By allofus in forum Programming Help
    Replies: 12
    Last Post: 03-14-2009, 12:09 PM
  2. Java
    By Rhianna in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 03-07-2009, 06:22 PM
  3. Java
    By slhshos in forum Free Hosting
    Replies: 1
    Last Post: 08-06-2008, 11:19 PM
  4. Java Help
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 01-29-2007, 07:20 PM
  5. java
    By joni806 in forum General
    Replies: 7
    Last Post: 10-29-2006, 08:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers