Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to deal with a service being out

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers
My assignment also has a requirement to periodically execute a query in a web service and I believe in JEE I have only 2 options: the old EJB Timer known or use the new Auto Scheduling JEE 6. My doubts about this risk of a failure of communication in this process. What to do to work around a flaw in this process when the service is out? Sugestions?
Best Regards
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are other choices. You could use a cron job. Or a third party product. Or something provided from the app server. Or the Java (no JEE) Timer. I'm not saying these are all good choices, but they are options.

What are some choices for what to do when the system is out. Research this a little and brainstorm a little. There are multiple options.
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know any link here about it?
Regards
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forgot to mention that my assignment explicitly mentioned that the architecture must be based on the JEE Platform ... So I believe cron jobs is out, and JSE Timer is not allowed inside the EJB container ....
So I told these only 2 options ... old and new EJB Timer Auto Scheduling JEE 6.
Regards.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, that makes it easy. What do you think are the pros and cons to each. The idea of this assignment is to do research/analysis so I don't want to come out and say what I would choose.
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for help Jeanne.
In document design decisions I have to justify my choices too or just describe it? How did you do?
Regards
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mainly describe. I provided some explanation. And if doing anything on-standard or controversial, I explained a lot!
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok .. I'll also take this opportunity to justify and already studying for part 3.
Best Regards
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are some choices for what to do when the system is out. Research this a little and brainstorm a little. There are multiple options.

Hii Jeanne
I still could not find anything about it ... you could help me with something?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fernando Franzini wrote:
What are some choices for what to do when the system is out. Research this a little and brainstorm a little. There are multiple options.

Hii Jeanne
I still could not find anything about it ... you could help me with something?

Try searching for "retry logic" to read about one option.
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Retry logic" is one of the options ... in fact I would like to fing several different options.
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic