In my design the session bean interact with externl system using webservices(Java-WS), so what should I depict in integration tier, since session bean is part of business tier? Will it be ok to show session bean (business tier) directly connecting to external system and rule out integration layer altogether?
What does your integration tier do if your business tier(I am assuming EJB you are referring to is in business tier) talks direct to external systems? If your ejb acts as a delegate or as proxy you can show that in the integration tier otherwise it doesnt deserve to be in integration tier..
Sivakumar-SCJP 1.4-SCWCD- IBM Certified SOA associate - SCEA 5
Joined: Jul 14, 2008
Hi Sivakumar ,
Yes. It is a EJB(Stateless session Bean) which using JAX-WS talks directly to external system which hosts webservice.
I wanted to understand if I show a component diagram without integration layer and stateless session bean talking to webservice host, will it be a bad model or should I show JAX-WS as a component in integration layer?
Joined: Feb 23, 2006
Hi Anurag, I would preferabbly have a delegate bean or some sort of proxy class to interact with external system. Such classes would abstract the external system communication to your business tier. I wouldnt let my business tier EJB directly interact with an external system.
Thanks for your reply.My SSB, apart from talking to external system has business logic also and for that it uses supporting business logic POJO classes. I think it will not be appropriate to depict that a integration layer is using classes of business layer. I think I will add a POJO which will be a proxy to communicate with external system and this class will be in itegration layer and I will move SSB and it's supporting classes to business layer.