Deploying Servlet on Tomcat with WebSocket Streaming feature

pivottrading.net
Hi Sujith,

I can easily do streaming on my Java desktop application.

My query is can i do the same if i write the same code in Servlet and deploy it on any of my web server.

Any precaution / care to be taken while deploying servlet on tomcat (unix box)?
Any port / special feature that needs to be turned on the JVM Tomcat Server.

If this works out, it will solve my problem of streaming data in PHP. i will deploy dedicated server for streaming data for my algos in Java Servlet.

Share your thoughts. If you have any other idea, do share that as well.

Thanks,
Sourabh.
  • pivottrading.net
    Hey Sujith,

    I check with GAE, it is not allowed to listen socket. So, i think i cannot deploy it on GAE.

    Check below
    ----------------------
    Although App Engine supports sockets, there are certain limitations and behaviors you need to be aware of when using sockets:

    Sockets are available only for paid apps.
    You cannot create a listen socket; you can only create outbound sockets.
    FTP is not supported.
    You can only use TCP or UDP; arbitrary protocols are not allowed.
    You cannot bind to specific IP addresses or ports.
    Port 25 (SMTP) is blocked; you can still use authenticated SMTP on the submission port 587.

    Private, broadcast, multicast, and Google IP ranges (except those whitelisted below), are blocked:



    -x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x--x-x-x-


    How about deploying this on JVM (Unix server)
  • joy
    try azure. they have both windows and linux servers and the free version supports 5 websocket connections. We use it to relay back the postbacks to our desktop app.

    please refer here to know how our connection works
    http://arthachitra.com/support/ac1/Help/html/1a316563-8b37-48b3-b23a-b6d9a3a57d3f.htm
  • pivottrading.net
    @joy
    Can i have exact URL or website for Azure

    Did you meant https://azure.microsoft.com/en-us/pricing/ ?

    If yes, this is microsoft Cloud product, will it allow Java uploading ?
    Sorry, lazy to check all details, but if u already did it, ur analysis will save my time.

    Can i have ur email or contact number ?
  • joy
    Yes, on shared plan and above. Not on the free plan.

    Yes, for complete details check out the section "App service limits" from here
    https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits

    Didnt try java uploading so cant say exactly. Since all my developments revolve round .net technologies, and visual studio has a built-in integration with azure, I found it very convenient to use.

    I am currently using it only to relay back the postback to my desktop app.

    I suppose sign up to the free plan and do some sample testings.

    you can PM me or write to me at support[at]arthachitra[dot]com
Sign In or Register to comment.