Posts

Showing posts from April, 2023

Adding Two Integers in Oracle Service Bus (OSB) 12c using Java Method Callout

Image
Oracle Service Bus (OSB) offers extensive modularity, allowing for the integration of a diverse range of technologies. In this article, we will explore how to use Java methods in OSB with the objective of implementing a use case that involves adding two integers . We will achieve this by leveraging a Java callout, which will enhance the flexibility and functionality of our integration solution." To get started, let's create a Java class and generate a JAR file from package Addpkg; public class AddInt {     public AddInt() {         super();     }          public static int addNum(int num1,int num2)     {         int num3=0;         num3=num1+num2;     return    num3;      } }   Now create JAR file of the above class by following this tutorial  Generate JAR in JDEVELOPER Once JAR file generated , now lets create Application in JDEVELOPER  1. Go to Jdeveloper --> Create Application Provide Application Name  Once Application Created , Create a Project --> Service Bus Projec

Creating JAR file using JDEVELOPER 12C

Image
This article will educate you about the JAR file generation using JDEVELOPER 12C.  To create JAR file we have to first create Java file  and the compile it. Once ".class" file created from ".java" then our class file is eligible to be part of JAR file Go to Jdeveloper --> Create New --> Application -->Custom Application --> JARGeneration Click on Next Provide project name as " JARGenerationPRJ ". Click on Next and Finish.  Once Project is created lets create one Sample Java File , For that first Right click on  JARGenerationPRJ click on Gallery and Select Java and then Class  Provide Name as  ConcatenatedString & Package as conacatenatedpkg and Click on OK Java file will be generated  Now we will add our code to concatenate two strings , for that i will write below method and then rebuild it      public static String ConcatString(String Input1,String Input2)     {        return "JAVA CAllout Assignment"+Input1+"and"+Inp

Create Sample WSDL file using Jdeveloper 12c

Image
Hello to all the learning enthusiasts, As you know to build SOAP based integrations we need sample WSDL files and every time i google it i always grapple then i thought why don't i leverage the Jdeveloper features to create my own WSDL file. Here in this article i will guide how to create your own WSDL through Jdeveloper.    Open Jdeveloper  à  Create Application with Name -> ConcatStringApp   Once Application is created then will create a new Project under the newly created Application   à ConcatStringPRJ   Once project created will create folder structures specific to components for example   The schema folder will have WSDL schema definitions , WSDL folder will have WSDL files and ProxyServices folder will have contents related to proxyservices     So now Project created, next step is to create WSDL.    To create WSDL, we must create Schema definitions and based on that WSDL file will be created.   Click on  Schema  Folder and Click on  XML Schema   Create Schema Definition b