Click here to Skip to main content
15,887,683 members
Home / Discussions / Java
   

Java

 
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.

SuggestionRe: Java web service code design Pin
Richard MacCutchan17-Nov-15 21:59
mveRichard MacCutchan17-Nov-15 21:59 
GeneralRe: Java web service code design Pin
Stephen Holdorf18-Nov-15 0:35
Stephen Holdorf18-Nov-15 0:35 
GeneralRe: Java web service code design Pin
Richard MacCutchan18-Nov-15 0:48
mveRichard MacCutchan18-Nov-15 0:48 
QuestionRe: Java web service code design Pin
Richard Deeming18-Nov-15 2:27
mveRichard Deeming18-Nov-15 2:27 
QuestionIs there any possibility? Pin
VISWESWARAN199816-Nov-15 20:40
professionalVISWESWARAN199816-Nov-15 20:40 
AnswerRe: Is there any possibility? Pin
Richard MacCutchan16-Nov-15 21:00
mveRichard MacCutchan16-Nov-15 21:00 
QuestionRe: Is there any possibility? Pin
VISWESWARAN199816-Nov-15 21:10
professionalVISWESWARAN199816-Nov-15 21:10 
AnswerRe: Is there any possibility? Pin
Richard MacCutchan16-Nov-15 21:11
mveRichard MacCutchan16-Nov-15 21:11 
GeneralRe: Is there any possibility? Pin
VISWESWARAN199816-Nov-15 21:18
professionalVISWESWARAN199816-Nov-15 21:18 
GeneralRe: Is there any possibility? Pin
Richard MacCutchan16-Nov-15 21:41
mveRichard MacCutchan16-Nov-15 21:41 
PraiseRe: Is there any possibility? Pin
VISWESWARAN199816-Nov-15 21:58
professionalVISWESWARAN199816-Nov-15 21:58 
AnswerRe: Is there any possibility? Pin
Oliver S. Neven18-Nov-15 11:21
Oliver S. Neven18-Nov-15 11:21 
PraiseRe: Is there any possibility? Pin
VISWESWARAN199819-Nov-15 23:36
professionalVISWESWARAN199819-Nov-15 23:36 
GeneralRe: Is there any possibility? Pin
Oliver S. Neven20-Nov-15 2:50
Oliver S. Neven20-Nov-15 2:50 
QuestionFirst Java Application Pin
Member 1214389516-Nov-15 6:56
Member 1214389516-Nov-15 6:56 
AnswerRe: First Java Application Pin
Richard MacCutchan16-Nov-15 7:27
mveRichard MacCutchan16-Nov-15 7:27 
AnswerRe: First Java Application Pin
Oliver S. Neven18-Nov-15 11:25
Oliver S. Neven18-Nov-15 11: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.