• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How Many EAR services

 
Ranch Hand
Posts: 167
Netbeans IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic