Hi everyone,
I have passed on the first part of the
SCEA and now I am going to start the second part.
But before, I want to clarify a doubt which I always had.
What exactly is a required and a provided interface on a component diagram?
I have always read the following:
A provided interface is like a connector where another components can connect to use some behaviors of the component who provides this interface.A required interface is like a connector where another component needs to connect to provide some behavior to this component.
I don't know if I really got the meaning.
Let's say, for example, in an
EJB 3.0 environment. A SessionBean called "MySessionBean" implements a local interface called "MySessionLocal".
And let's say that there is a
Servlet called "MyServlet", which uses the MySessionBean through the "MySessionLocal" interface.
In this scenario, if I say:
The "MySessionBean" is a component that has a provided interface called "MySessionLocal";The "MyServlet" is a component that has a required interface called "MySessionLocal".
Are these statements right?
Or, in case not, could someone give me an example using EJB's, for example?
Thanks a lot!