Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Components and artifacts  RSS feed

 
Antonio Rafael Rodrigues
Ranch Hand
Posts: 75
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello =]

Basically my application may be splitted in two big parts. One of them handle the user interactions, with all the necessary components to implement the communication between the user, the database and a payment external System. The other part has the responsibility of executing heavy background work started by timers, to do this job, it also communicates to the database and another external system.

I've realized that the load of these parts can vary independently then I think it'd be very valuable to separate them in two deployable artifacts: Two .ear

Then I have two questions.

1) How do I show which components will go in each artifact?
2) Do you think that for the proposes of the exam it's valuable to make this kind of separation or keep the things simpler would be a better approach? This will add some difficult to the diagrams could drive me to errors.

Thanks in advance.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When it comes to diagrams keep things simple. Having too much stuff may clutter the diagram. Having too little items/objects may give the impression (to yourself anyway) "can it be that simple?".

Back to your issue. IMHO The 2 ear thing can be represented in the deployment diagram rather than the component diagram, saying EAR1 does ABC and EAR2 does XYZ. Breaking down these EARs into components (done as component diagrams) may be overkill.
 
Antonio Rafael Rodrigues
Ranch Hand
Posts: 75
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tsang.

First of all, thanks for your reply.

Don't you think that if I split the application into two .ear without explicitly say which components are going to be in each of them I would be omitting important informations?

Thanks.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!