Click here to Skip to main content
15,887,370 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: new syntax / new semantics Pin
Eddy Vluggen17-Dec-15 8:53
professionalEddy Vluggen17-Dec-15 8:53 
Praiseidd portability would suffer! Pin
D4rkTrick22-Dec-15 3:14
professionalD4rkTrick22-Dec-15 3:14 
GeneralRe: idd portability would suffer! Pin
Eddy Vluggen22-Dec-15 7:33
professionalEddy Vluggen22-Dec-15 7:33 
GeneralRe: Compiler/syntax checker with add-on functionality Pin
jschell18-Dec-15 11:38
jschell18-Dec-15 11:38 
GeneralRe: Compiler/syntax checker with add-on functionality Pin
D4rkTrick13-Oct-22 23:52
professionalD4rkTrick13-Oct-22 23:52 
QuestionFrontend JS directly invoking backend services Pin
Member 1220163911-Dec-15 8:44
Member 1220163911-Dec-15 8:44 
AnswerRe: Frontend JS directly invoking backend services Pin
Eddy Vluggen14-Dec-15 6:25
professionalEddy Vluggen14-Dec-15 6:25 
QuestionJava web service code design Pin
Stephen Holdorf18-Nov-15 1:55
Stephen Holdorf18-Nov-15 1:55 
I am creating a Java web service that is receiving input requests in XML format. The web service's function is to parse the XML initial request and send it's own post request to a third party organization which does a look-up for the request and if available they send a response back in XML format to the web service for processing. If the response does find the data in the look-up the information it sends back as XML and is parsed by the web service then saved as a .pdf file. Once the .pdf file is created the web service packages a response XML message and along with the identifying information a link to the .pdf is part of the message sent back to the calling client. Now, if the search for the information is not found a XML message is sent back to the client indication the third party did not have the information ready with a status as pending. For all of the requests for the third party information the web service will create a folder on the server with a XML status file and if the .pdf file is created it will be in this folder too.

Now comes the tricky part of the design. There is another application located on the same server that needs to be running in a loop that and every 30 second it needs to call the web service on it's own and if the server folder created by each new request does not contain the .pdf that program will make the web service call to retry the initial call and see if third party does now responds with the XML message that contains the valid information so it can create the .pdf and send a message back to the original client.

Now, if I am using a tomcat server what type of application should I create that does the 30 second looping? The server does have a MySQL database. How should I have the 30 second looping application communicate with the web service? Finally, if the looping application does make a successful call to the web service what is the best way to cause a trigger from the looping application to make the web service send the successful response to the original calling client?

Finally, if the looping application does make a successful call to the web service what is the best way to cause a trigger from the looping application to make the web service send the successful response to the original calling client? One note is that the 30 second loop must scan the new request folder tree and retry for any of the requests that have not succeeded.

AnswerRe: Java web service code design Pin
Stephen Holdorf20-Nov-15 3:19
Stephen Holdorf20-Nov-15 3:19 
AnswerRe: Java web service code design Pin
Gerry Schmitz20-Nov-15 5:49
mveGerry Schmitz20-Nov-15 5:49 
GeneralRe: Java web service code design Pin
Stephen Holdorf20-Nov-15 6:14
Stephen Holdorf20-Nov-15 6:14 
GeneralRe: Java web service code design Pin
Gerry Schmitz20-Nov-15 6:37
mveGerry Schmitz20-Nov-15 6:37 
GeneralRe: Java web service code design Pin
Stephen Holdorf20-Nov-15 6:59
Stephen Holdorf20-Nov-15 6:59 
GeneralRe: Java web service code design Pin
Gerry Schmitz20-Nov-15 7:24
mveGerry Schmitz20-Nov-15 7:24 
GeneralRe: Java web service code design Pin
Stephen Holdorf20-Nov-15 7:45
Stephen Holdorf20-Nov-15 7:45 
QuestionScaling a Core PHP Project Pin
gouravkaila6-Nov-15 6:47
gouravkaila6-Nov-15 6:47 
AnswerRe: Scaling a Core PHP Project Pin
jschell7-Nov-15 6:22
jschell7-Nov-15 6:22 
QuestionInter-process communications in a desktop client-server app with local server? Pin
markrlondon3-Nov-15 11:01
markrlondon3-Nov-15 11:01 
AnswerRe: Inter-process communications in a desktop client-server app with local server? Pin
jschell3-Nov-15 16:18
jschell3-Nov-15 16:18 
GeneralRe: Inter-process communications in a desktop client-server app with local server? Pin
markrlondon2-Nov-20 18:14
markrlondon2-Nov-20 18:14 
AnswerRe: Inter-process communications in a desktop client-server app with local server? Pin
Eddy Vluggen3-Nov-15 23:41
professionalEddy Vluggen3-Nov-15 23:41 
GeneralRe: Inter-process communications in a desktop client-server app with local server? Pin
markrlondon2-Nov-20 18:14
markrlondon2-Nov-20 18:14 
QuestionWeb service arhitecture for mobile game Pin
golandy29-Oct-15 7:05
golandy29-Oct-15 7:05 
QuestionMaintainable Design Pattern Pin
Lucas A. Martinez18-Oct-15 6:57
Lucas A. Martinez18-Oct-15 6:57 
AnswerRe: Maintainable Design Pattern Pin
Mycroft Holmes18-Oct-15 16:25
professionalMycroft Holmes18-Oct-15 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.