This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Supplied interface as business interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Supplied interface as business interface?" Watch "Supplied interface as business interface?" New topic

Supplied interface as business interface?

Gunnar Bastkowski

Joined: Jul 22, 2007
Posts: 10

I got the B&S assignment and I'm not quite sure if the supplied DB-Interface shall also be the interface for communication between client and server. Or do I have the choice to introduce a business layer on the server so that DB acts as a DAO?

The latter case would make it possible to send value objects over the network and the client wouldn't need to handle string arrays.

rinke hoekstra
Ranch Hand

Joined: Apr 06, 2007
Posts: 152
It seems a lot of discussions on this issue have taken place on this forum. Some people seem to interpret the instructions as if they are obliged to use the supplied interface as the business interface which must also be exposed to the clients. Personally, I have never found the reason for this arguing in my instructions, so I just have a very simple business interface which only has the methods book and search.

_ _ ________________________ _ _ <br /> <br />Just SCJP (but 93%)
Marcelo Camargo
Ranch Hand

Joined: Jul 05, 2007
Posts: 43
I have the same opinion from Rinke, and I have a package with my business interface, with its own exceptions, as an adapter from the DBClient interface supplied by Sun (in my case my assignment is the URLyBird) to my new DBBusinessServices interface.
It has only the reserveRoom, cancelRoomReservation, searchRoomsByCriteria and searchAllRooms methods.

SCJP5(93%), SCJD(in progress...), SCEA(not started yet...)
I agree. Here's the link:
subject: Supplied interface as business interface?
It's not a secret anymore!