Click here to Skip to main content
15,906,626 members
Home / Discussions / Java
   

Java

 
GeneralRe: Java sqlite connection error Pin
Richard MacCutchan31-Dec-15 22:49
mveRichard MacCutchan31-Dec-15 22:49 
GeneralRe: Java sqlite connection error Pin
rafiullah_Omar1-Jan-16 7:14
rafiullah_Omar1-Jan-16 7:14 
QuestionA question concerning Gridbag Layout... Pin
Member 1222936926-Dec-15 2:42
Member 1222936926-Dec-15 2:42 
AnswerRe: A question concerning Gridbag Layout... Pin
Richard MacCutchan26-Dec-15 4:49
mveRichard MacCutchan26-Dec-15 4:49 
QuestionHow do I combine these two variables? Pin
Member 1221935420-Dec-15 12:55
Member 1221935420-Dec-15 12:55 
SuggestionRe: How do I combine these two variables? Pin
Richard MacCutchan20-Dec-15 21:54
mveRichard MacCutchan20-Dec-15 21:54 
AnswerRe: How do I combine these two variables? Pin
Uncle Vlad20-Jan-16 8:07
Uncle Vlad20-Jan-16 8:07 
QuestionJava-String Pin
Member 1221609818-Dec-15 4:05
Member 1221609818-Dec-15 4:05 
AnswerRe: Java-String Pin
Richard MacCutchan18-Dec-15 4:19
mveRichard MacCutchan18-Dec-15 4:19 
QuestionServlet Best Practice Pin
hansoctantan16-Dec-15 22:43
professionalhansoctantan16-Dec-15 22:43 
QuestionMultithriding for server socket: ExecutorService vs ForkJoinPool vs standard threads? Pin
CodeGust15-Dec-15 0:53
CodeGust15-Dec-15 0:53 
QuestionAdding scrollbar to row header of jscrollpane?? Pin
Sarita S26-Nov-15 18:15
Sarita S26-Nov-15 18:15 
AnswerRe: Adding scrollbar to row header of jscrollpane?? [Repost] Pin
Richard MacCutchan26-Nov-15 20:51
mveRichard MacCutchan26-Nov-15 20:51 
AnswerRe: Adding scrollbar to row header of jscrollpane?? Pin
Richard MacCutchan26-Nov-15 20:54
mveRichard MacCutchan26-Nov-15 20:54 
QuestionJAVA Pin
Member 1216840126-Nov-15 0:22
Member 1216840126-Nov-15 0:22 
AnswerRe: JAVA Pin
Richard MacCutchan26-Nov-15 1:12
mveRichard MacCutchan26-Nov-15 1:12 
AnswerRe: JAVA Pin
Richard Deeming26-Nov-15 1:58
mveRichard Deeming26-Nov-15 1:58 
SuggestionRe: JAVA Pin
Jervie Ocampo23-Dec-15 7:36
Jervie Ocampo23-Dec-15 7:36 
QuestionJava Class Path Pin
Ardi Durres24-Nov-15 5:35
Ardi Durres24-Nov-15 5:35 
AnswerRe: Java Class Path Pin
Richard MacCutchan24-Nov-15 10:53
mveRichard MacCutchan24-Nov-15 10:53 
QuestionDeleting Array Elements Pin
Lord188023-Nov-15 4:12
Lord188023-Nov-15 4:12 
AnswerRe: Deleting Array Elements Pin
Richard MacCutchan23-Nov-15 5:29
mveRichard MacCutchan23-Nov-15 5:29 
AnswerRe: Deleting Array Elements Pin
Member 1208763224-Nov-15 2:14
Member 1208763224-Nov-15 2:14 
AnswerRe: Deleting Array Elements Pin
Roland 579-Dec-15 10:29
professionalRoland 579-Dec-15 10:29 
QuestionJava web service code design Pin
Steve Holdorf17-Nov-15 11:55
Steve Holdorf17-Nov-15 11: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.

modified 17-Nov-15 18:09pm.

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.