Questions tagged [server-application]

28 questions
107
votes
9 answers

How can I write a Java application that can update itself at runtime?

I would like to implement a java application (server application) that can download a new version (.jar file) from a given url, and then update itself at runtime. What is the best way to do this and is it possible? I guess that the application can…
Jonas
  • 121,568
  • 97
  • 310
  • 388
3
votes
4 answers

Google OAuth2: perform token refreshing server-side while refresh token or authorization code acquired via mobile app

TL;DR - How can I refresh tokens backend-side if the oauth2 authorization happens in native android/ios app? I am working on oauth2 integration with google calendar. My stack is react SPA app as web client and we have a backend API (in elixir). We…
genau
  • 184
  • 1
  • 5
  • 16
3
votes
0 answers

Is there any point in supporting byte-range requests for VBR (variable bitrate) audio?

I'm working on a server application which will hand out audio streams. These audio streams are being consumed in web browsers, specifically through the
sbrattla
  • 5,274
  • 3
  • 39
  • 63
3
votes
1 answer

Should clients have direct access to the database?

Should client applications be coded so that they connect to and retrieve data from the remote SQL database? Based on my knowledge I would say that is extremely bad practice, and you should have a server application which handles all clients and acts…
2
votes
1 answer

Comparable Architectures With OSGi?

I am going to implement a server application that should update client software remotely. Clients mostly use pull mechanism for receiving updated software. As a beginner I am looking for architectures to implement this application. And I know that…
Reza
  • 2,058
  • 3
  • 20
  • 33
2
votes
1 answer

ThreadPool and Producer - Consumer pattern design question

I want to implement a Producer - Consumers pattern using a ThreadPool for the Consumers. I will have 1 producer of requests and multiple consumers that will handle the incoming requests. When Implement the consumers using a threadpool my question…
Tony The Lion
  • 61,704
  • 67
  • 242
  • 415
2
votes
2 answers

Using TcpListener.AcceptSocket(); in a separate thread causes the thread to block?

I have tried to work around this as well as debug but I'm at a loose end here :( is there any alternative to using this to check for a client connection? This code works fine in a console application so i am guessing the thread is being blocked,…
Sam
  • 350
  • 2
  • 9
1
vote
1 answer

Node.js app that runs without a user and stores data in a database

I'm trying to build a backend infrastructure that hits specific API endpoints repetitively on a given time duration, once every second for example. The system would then post (or whatever the appropriate equivalent to a post request would be) the…
Garrett
  • 1,576
  • 4
  • 27
  • 51
1
vote
2 answers

Java server that queries mysql database

I have a server that has a mysql database. I want my client-side java application to query if the user is in the database (to give them access to the rest of the application). Ideally, I want my client-side app to communicate to a server-side app…
user577317
  • 53
  • 8
1
vote
1 answer

Ability to rollback changes when insert data using a server API

I currently have the following situation: I have build a client Java application, which used to communicate with the MySQL database directly. When I was inserting a lot of data, I used to do this with AutoCommit turned off. This was easy to do,…
bashoogzaad
  • 4,611
  • 8
  • 40
  • 65
1
vote
0 answers

Building 3rd party server app to connect GCM from Android over xmpp

I am building android app1 and app2, which will send data to each other based on this tutorial. The tutorial on GCM and xmpp is pretty straightforward. Google requires 3rd party server app with a backend to send upstream and downstream data to and…
The_Martian
  • 3,684
  • 5
  • 33
  • 61
1
vote
1 answer

using javascript regexp to match log file tail

hi I need to use regex to vaildate an ajax call to an output log on a server - to check if a process therin is "finished". I have a php file that can give the last line of the log no mater what. Ajax goes and gets it 5 times a second. But I need to…
user26676
  • 280
  • 3
  • 21
1
vote
1 answer

Java application that updates itself?

I am writing a Java server-side application, and I want to provide built in functionality so that the apple can update itself. I want the application to poll a server, and if there are a new version that it can update to, then it should let the user…
Joachim H. Skeie
  • 1,893
  • 17
  • 27
0
votes
3 answers

Spring RESTful server

I want to set up an application using RESTful principles and Spring. I found out the RESTemplate for the client-side but I don't know how to configure the server. First I want to create a simple application in which the server simply respond with an…
observer
  • 725
  • 4
  • 10
  • 20
0
votes
0 answers

Emails body still gets altered even when authenticated with NodeJS DKIM Signer

I'm using the nodejs module "dkim signer" to authenticate emails I send from my server application. I implement it exactly as the documentation shows, but dkimvalidator.com and Mail-tester.com both show that the body is altered when it arrives every…
1
2