Backendless Support
 
Answered

Socket server using business logic

Hi, is it possible to setup a socket server using business logic (Java), like how you'd do with a vps.

I've downloaded and setup the coderunner correctly, linked it to my IDE (IntelliJ IDEA) but it gives this error

  1. "[ERROR] There is no code, which can be deployed to Backendless."

I'm sure the code has no errors thats why I want to know if its possible to create the socket server in the first place.. or if I'm doing something wrong somehow.

Leave a Comment

Comments (4)

photo
1

Hi Edgar,

Since business logic is only run on a special event or by a schedule, and also considering that business logic is currently limited to one thread only, I don't think it'll be of any use to create a socket server there. Actually, the whole Backendless platform is a server, so maybe if you specify your requirements we could advice you on how to achieve them using the built-in service.

And also to avoid the error you're getting, you need to compile your source code first so that the .class files appear.

photo
1

ah yes.. now that you mention it I did read somewhere on the documentation that the source code has to be compiled...anyway I'm developing an android app that links people to cabs, like "uber" or "lift" so I'm thinking of implementing the server side using sockets...for real time comm...A client sends a request to the server, which then distributes the request to the cabs. Are you guys capable of hosting such an event? Note that the client traffic may become large.......

P.S thanks for replying :)

photo
1

Our messaging service is a perfect fit for that, the publish-subscribe scheme: https://backendless.com/documentation/messaging/rest/messaging_overview.htm

photo
1

Thank you :)

photo