Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How Many EAR services  RSS feed

 
Michelle Streeter
Ranch Hand
Posts: 120
Eclipse IDE Flex Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now, I have been writing a program using one single Web Service. Yes, it is using an EJB for the service and one for the EAO and another for Transaction. I think there are a total of 5 for the entire service. Also, I am using JPA to communicate to a DB2 database.

My question is, should I break this one Service up into smaller ones.

For instance, maybe one for reading data and another for persisting data.

Or should I break it up into small groupings?

Are there any issues breaking it up or is it better to only have one?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36432
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michelle,
If this is a program for practice, it doesn't matter. The main criteria in deciding are:
1) Do you want to be able to deploy them separately? (Can they change on their own)
2) Will different teams be working on them?

Both are maintenance issues. Until the programs get bigger, it isn't terribly important so I'd leave them together. In this case, they sound related so it would make sense to leave them together anyway.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!