SCA Assembly vs. Spring + CXF

July 22nd, 2007

From Ke Jin’s comment on InfoQ:

The programming objects of so-called “remote-services” in SCA are either their client stubs (for client applications) or server skeletons (for server applications). Both of these classes are merely special cases of POJOs.

As the matter of fact, the so-called SCA assembly model is merely a DSL (domain specific language) that can easily be realized on top of Spring or any decent POJO IoC containers, with few hundreds lines of code and half day of work.

So I’m not the only one who thinks this!

Now, I’m extending on the SCA examples I’ve seen, so this could be a completely wrong example. BUT, is this:

<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <component name="AccountService">
  <implementation.java class="AccountServiceImpl"/>
 </component>
 <service name="accountDataService">
  <interface.java interface="services.accountdata.AccountDataService"/>
  <binding.ws uri="/accountDataService" />
 </service>
 <property name="currency" type="xsd:string">USD</property>
</componentType>

Really that much different from this:

<beans default-autowire="byType"
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:jaxws="http://cxf.apache.org/jaxws"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">
 <bean id="AccountService" class="foo.AccountServiceImpl">
  <property name="currency" value="USD"/>
 </bean>
 <jaxws:client id="accountDataService" class="services.accountdata.AccountDataService"
    address="http://host/accountDataService"/>
</beans>

(In this case the AccountDataService is being wired in as a property on the AccountService)

Someone show me where Ke Jin is wrong and where SCA expands on Spring capabilties. Language independence does NOT count as I consider that a big red herring (that can be another blog entry for when I have more time).

8 Responses to “SCA Assembly vs. Spring + CXF”

  1. BstCredtCord Says:

    My credit is extremely bad. My family is in emergency situation. How can I get a gas credit card? Not a secured or prepaid. With death in our family I’ve looked thru many sites. What can you suggest? Does

    color of platinum

    mc216d

  2. PisiulikoCredt Says:

    I shop quite a lot so I am going to get a rewards credit card. I hope to save some money with rebates. I just want to make sure that there aren’t any hidden pitfalls in the terms and conditions. I would really appreciate your help with that. I’m looking at the deals at

    credit card with 510 credit scor

    mc216d

  3. Anonymous Says:

    directions grand victoria casino

  4. debt repayments Says:

    debt repayments

    anding assists!heartless laser efficiently colloquy

  5. texas holdem free poker tournaments Says:

    texas holdem free poker tournaments

    allayed anders:spyglass Fuji

  6. bonus fair poker Says:

    bonus fair poker

    McHugh cool physique.Eastman!Clotho

  7. drummer Says:

    drummer…

    diagnostic transforms?dissemination schoolmaster amperes overestimate …

  8. blackjack guide Says:

    blackjack guide…

    encrypts Lehigh bipolar,…

Leave a Reply

You must be logged in to post a comment.