THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The SpringComponent implementation remains the same but different bindings are chosen.
...
Working with SCA WebServices Binding
Declaring Service
Code Block |
---|
<composite name="StockQuote"> <service name="StockQuoteService" promote="StockQuoteServiceComponent"> <interface.java interface="bigbank.stockquote.StockQuoteService"/> <binding.ws uri="http://localhost:8081/services/StockQuoteWebService"/> </service> <component name="StockQuoteServiceComponent"> <implementation.spring location="META-INF/spring/StockQuoteService-context.xml"/> </component> </composite> |
Declaring Reference
Code Block |
---|
<component name="AccountServiceComponent"> <implementation.spring location="spring-context/Account-spring-context.xml"/> <reference name="stockQuoteService"> </composite> <binding.ws uri="http://localhost:8081/services/StockQuoteWebService"/> </reference> </component> |
Working with JMS Binding
Declaring ServiceDeclaring Reference
Code Block |
---|
<composite name="CheckingsAccountDept"> <service name="CheckingsAccountService" promote="CheckingAccountServiceComponent" requires="authentication"> <interface.java interface="bigbank.account.checking.CheckingAccountService"/> <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" jndiURL="tcp://localhost:61619"> <destination name="RequestQueue" create="ifnotexist"/> <response> <destination name="ResponseQueue" create="ifnotexist"/> </response> </binding.jms> </service> <component name="AccountServiceComponent"="CheckingAccountServiceComponent"> <implementation.spring location="spring-context/META-INF/spring/CheckingAccountService-context.xml" requires="bba:authorization"/> </component> </composite> |
Declaring Reference
Code Block |
---|
<component name="AccountServiceComponent"> <implementation.spring location="spring-context/Account-spring-context.xml"/> <reference name="stockQuoteServicecheckingAccountService"> <interface.java interface="bigbank.account.checking.CheckingAccountService"/> <binding.ws uri="http.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" jndiURL="tcp://localhost:8081/services/StockQuoteWebService61619"> <destination name="RequestQueue" create="always"/> <response> <destination name="ResponseQueue" create="always"/> </reference> </response> </binding.jms> </reference> </component> |
Policy - Security
...