Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Component Architecture (SCA) Tools » Component within SCA assembly
Component within SCA assembly [message #520750] Mon, 15 March 2010 07:27 Go to next message
Eclipse UserFriend
Originally posted by: michael.gebhart.googlemail.com

Hi,

I have a question about the component concept within an SCA assembly.

Is it possible to use an already running Web service as component within
an SCA assembly? Or is the component within an SCA assembly always a
newly developed part?

And: In my opinion, a service is a functionality that is running and can
be used by other parties. Is it possible to call a component within a
SCA assembly even if it is not associated with a service at the SCA
assembly? In other words: Is a component within a SCA assembly already a
service? Can it be used by other parties that can not access the source
code?

Regards

Michael
Re: Component within SCA assembly [message #521324 is a reply to message #520750] Wed, 17 March 2010 04:48 Go to previous messageGo to next message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Hi Michael,

Le 15/03/2010 08:27, Michael Gebhart a écrit :
> Hi,
>
> I have a question about the component concept within an SCA assembly.
>
> Is it possible to use an already running Web service as component within
> an SCA assembly?

Formulated like you did, I would say no.
For me, a service means an available interface, and no access to the
implementation. To expose an already existing web service through an SCA
application, you would have to create a component with a reference and a
service, and an implementation which only calls the reference.

Otherwise, I would even just declare a reference on this web service.
No need for a new component.

Once again, an SCA component is a configured implementation.
That is to say, a piece of code that you declare in the composite, and
that you link with services and references.


> Or is the component within an SCA assembly always a
> newly developed part?

In your use case, if you absolutely want to have an SCA component
implemented by your web service, yes, you will have to code it.


>
> And: In my opinion, a service is a functionality that is running and can
> be used by other parties. Is it possible to call a component within a
> SCA assembly even if it is not associated with a service at the SCA
> assembly?

If your component is an SCA component, then no, it's not possible.
A service has an interface. If it is not exposed, it cannot be called.
And if a service is not declared on a component, then there is not
service and no exposed interface.

> In other words: Is a component within a SCA assembly already a
> service? Can it be used by other parties that can not access the source
> code?

No.


Regards,

Vincent.
Re: Component within SCA assembly [message #576954 is a reply to message #520750] Wed, 17 March 2010 09:35 Go to previous message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Hi Michael,

Le 15/03/2010 08:27, Michael Gebhart a écrit :
> Hi,
>
> I have a question about the component concept within an SCA assembly.
>
> Is it possible to use an already running Web service as component within
> an SCA assembly?

Formulated like you did, I would say no.
For me, a service means an available interface, and no access to the
implementation. To expose an already existing web service through an SCA
application, you would have to create a component with a reference and a
service, and an implementation which only calls the reference.

Otherwise, I would even just declare a reference on this web service.
No need for a new component.

Once again, an SCA component is a configured implementation.
That is to say, a piece of code that you declare in the composite, and
that you link with services and references.


> Or is the component within an SCA assembly always a
> newly developed part?

In your use case, if you absolutely want to have an SCA component
implemented by your web service, yes, you will have to code it.


>
> And: In my opinion, a service is a functionality that is running and can
> be used by other parties. Is it possible to call a component within a
> SCA assembly even if it is not associated with a service at the SCA
> assembly?

If your component is an SCA component, then no, it's not possible.
A service has an interface. If it is not exposed, it cannot be called.
And if a service is not declared on a component, then there is not
service and no exposed interface.

> In other words: Is a component within a SCA assembly already a
> service? Can it be used by other parties that can not access the source
> code?

No.


Regards,

Vincent.
Previous Topic:Component within SCA assembly
Next Topic:Additional behaviors for SCA designer
Goto Forum:
  


Current Time: Sun Nov 18 05:28:40 GMT 2018

Powered by FUDForum. Page generated in 0.03104 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top