| At line 1 removed 2 lines. |
| !!!IN PROGRESS |
| At line 5 changed 1 line. |
| Fuji provides a strong support for Interacting of JBI application with that of JAVA code outside of JBI, This documents provide the details how this can achieved easily with the existing simple Service API, and what are the Future plans |
| Fuji provides a strong support for Interacting of JBI application with that of JAVA code outside of JBI, This documents provide the details how this can achieved easily with the existing simple Service API, and what are the Future plans. This document to be precise concentrates on how the api can be used with respect to spring and springDM applications |
| At line 9 changed 1 line. |
| This [blog|http://blogs.sun.com/sujit/entry/fuji_simple_service_api_and ] gives an idea how to provision a service within springDM and access the same from JBI, However we will delve into some of the details which one would require in order the setup the environment |
| This [blog|http://blogs.sun.com/sujit/entry/fuji_simple_service_api_and ] gives an idea how to provision a service and consume a service from within springDM and access the same from JBI, However we will delve into some of the details which one would require in order the setup the environment |
| At line 13 changed 1 line. |
| This is key for the springDM applications to work, There two possible approach one can take in order to install the springDM Bundles on Fuji-Felix or Fuji-Glassfish, The set of Bundles which needs to be installed are |
| This is key for the springDM applications to work, There a two possible approach one can take in order to install the springDM Bundles on Fuji-Felix or Fuji-Glassfish, The set of Bundles which needs to be installed are |
| At line 30 changed 1 line. |
| The order in which this osgi bundles needs to be installed is shown below |
| The order in which this osgi bundles can be installed is shown below |
| At line 51 changed 1 line. |
| One can always create a Fuji-Felix bundle, which has all the required springDM bundle preinstalled, For this follow the steps as shown |
| At line 190 changed 1 line. |
| This will ensure that all the springDM bundles are started, once the Fuji-Felix is started |
| At line 214 changed 1 line. |
| !c) GO to SRC_ROOT , mvn clean install |
| !c) GO to FUJI SRC_ROOT , mvn clean install |
| i.e build Fuji-Felix bundle |
| At line 215 added 1 line. |
| At line 229 added 5 lines. |
| !how does the project created look like |
| [{Image src='springDM-project.PNG' align='left|center|right' }] |
| At line 244 added 2 lines. |
| now we are all set to make use of the Fuji Simple Service API |
| !Create Service Provider and export the same as osgi service, with the required service properties, Note how this can be easily done declaratively using the springDM, One does not have to write code for bundle activation or service registration. |
| At line 240 changed 1 line. |
| !Service Provider: |
| [{Image src='http://wiki.open-esb.java.net/attach/FujiServiceAPI/service-api-provider.jpg' width='300' height='200' align='left|center|right' }] |
| At line 277 changed 1 line. |
| b) Define the spring config file |
| b) Define the bean in the spring config file |
| At line 293 changed 1 line. |
| c) Define the spring-osgi config file |
| c) Define the bean to be exported as osgi service in the spring-osgi config file |
| At line 318 changed 1 line. |
| !Service Consumer: The example below shows a simple Service Consumer |
| d) Build and depoy the springDM application |
| * mvn clean install |
| *go to felix console and install/start the springDM app buundle |
| At line 331 added 6 lines. |
| !Service Consumer: Now let us create a service consumer which consumes JBI services, The example below shows a simple Service Consumer |
| [{Image src='http://wiki.open-esb.java.net/attach/FujiServiceAPI/service-api-consumer.jpg' width='300' height='200' align='left|center|right' }] |
| a) POJO Implementation: The example below shows a simple bean using the service consumer |
| At line 353 changed 1 line. |
| b)spring config file |
| b)spring config file, define the bean, this uses dependency injection to inject the service reference |
| At line 360 changed 1 line. |
| c)spring osgi config file |
| c)spring osgi config file, define the service reference , which initiated based on the filter |
| At line 387 added 2 lines. |
| attached [here|org.foo.springdm.fuji.zip] is sample application which include for both service provider and service consumer |