Wednesday, July 08, 2015

Spring in SOA 12c


I was trying to find sample of Spring in SOA 12c but some how i was not able to get any sample in the intenet, so i thought of creating my own sample so that others can benefit from that.

Using spring component requires you to have some basic concepts of Java.

If you do not have basic concepts of JAVA i will recommend first get the basics of Java and try this exercise.

Create a new project in SOA 12c




Give the project a name and select SOA



Select SOA with spring as option and say finish



Name the context



Now create a new interface



Specify the name of the interface



An interface declares the method so we will just try to declare a method and later we will define it in a class



Just define a simple method



Create a new class



select the interface you have created earlier for the class





Now implement the class for the business logic you wanted to have



Now define the sca service

type should point to the Interface definition i.e package.interface name

and

class should point to the actual class who is defining the interface

it will represented as package.class name




Now drag and drop the spring content to the exposed service swim lane and select web service as option



After selecting the service you will following service design



Deploy the service to the server and test it

No comments: