File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes does web service proxy go in Integration Tier? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "does web service proxy go in Integration Tier?" Watch "does web service proxy go in Integration Tier?" New topic
Author

does web service proxy go in Integration Tier?

raj sirohi
Ranch Hand

Joined: Mar 02, 2010
Posts: 35
Hi All,

Can someone please explain me if my system is accessing a web service and I have created a session bean as a proxy for web service, should proxy ( stateless session bean) be shown on Intergration Tier or Business tier on component diagram.

thanks a lot

Raj


SCJP5.0 , SCBCD5.0, SCEA
Arpit Kumar Jain
Ranch Hand

Joined: Jun 05, 2010
Posts: 41
It should be in Integration tier.
By Integration tier, i have an understanding as , this is the boundary of SuD. so any component (in your case, it is SLSB proxy) which talks to some external interface, should be part of Integration tier. Any component, which is calling this proxy (SLSB) should be part of business tier.
Thanks
Arpit Jain


SCJP, SCWCD, SCEA
raj sirohi
Ranch Hand

Joined: Mar 02, 2010
Posts: 35
Hi Arpit,

Thanks a lot for letting me know, it really helped, i had been reading documents and getting confused.
So that also means if I have DAO object implemented as SSB then it should also go in Intergeration tier?
I thought all the SSB should be in busines layer.

thanks
Raj
Gladwin Burboz
Greenhorn

Joined: Feb 26, 2008
Posts: 25
I have just started to prep for part-1 of the exam. Here are few inputs from me based off reference from SCEA book by Cade/Sheil

Integration tier services abstract and provide access to external resources.

Drivers and APIs that you use to access this external systems will be considered as part of this tier. If you develop some API whose sole purpose is to provide access to external system, then it can be considered as part of this tier. If your SSB is a generic API that you have developed that can be used to invoke any web service then you may consider it as part of integration tier.


Business tier services execute business logic and manage transactions.

SSB does provides ability to manage transactions. Further more if SSB API is specific web service related to your SuD, I would consider it as part of business tier.


Proxy is used to control the access to original object. Adapter is used to provide interface known to the client of an object whose interface is not known to the client. Hence I would consider your SSB to be an adapter instead of proxy as it adapts web service interface to EJB based interface.

<a href="http://www.sealordresortarnala.com" target="_blank" rel="nofollow">http://www.sealordresortarnala.com</a>
Arpit Kumar Jain
Ranch Hand

Joined: Jun 05, 2010
Posts: 41
If Web Service is an external system, then Web Service proxy should be in Integration tier.
and if If it is in SuD, then proxy should be in business tier.

Hope this helps.

Thanks
Arpit Jain
raj sirohi
Ranch Hand

Joined: Mar 02, 2010
Posts: 35
Thanks Gladwin and Arpit , you have made it very clear. can you please also confirm that if my dao is implemented as SSB then it should also be in integration tier ?

thanks once again, information you provided really helped me.

Raj
Arpit Kumar Jain
Ranch Hand

Joined: Jun 05, 2010
Posts: 41
Yes it should be in integration tier.
Whichever class you use to connect to any external system will be in Integration tier. and database is also considered <<external>> to SuD.

Thanks
Arpit
raj sirohi
Ranch Hand

Joined: Mar 02, 2010
Posts: 35
Hi Arpit,

Thanks a lot you have been bvery helpful.

thanks
Raj
 
Don't get me started about those stupid light bulbs.
 
subject: does web service proxy go in Integration Tier?
 
Similar Threads
Web-service client and Session Beans ?
Cade's component diagram
component diagram clarification
Accessing multiple external services
Right tier of the EJB implementing an exposed web service