Posts

Showing posts with the label JDeveloper

Unable to find suitable outbound binding Outbound BPEL Process deployment Issue in SOA

Solution:-   In Jdeveloper open the source tab of BEPL process, search binding.jca entry in the composite.xml and remove the "ns1:" qualification on the operation and redeploying. For example: From: <binding.jca config="BAPI_COMPANYCODE_GETDETAIL_invoke_3P.jca" operation="ns1:BAPI_COMPANYCODE_GETDETAIL"/> To: <binding.jca config="BAPI_COMPANYCODE_GETDETAIL_invoke_3P.jca" operation="BAPI_COMPANYCODE_GETDETAIL"/> For further detail see my OTN forum post:- https://forums.oracle.com/thread/2546166

How to Perform Validation through Method in Oracle ADF

Image
In this post we will perform validation through Method in Oracle ADF and for this purpose will continue the previous post example. In this example we will perform validation on Employee's First Name field and we will restrict the data entry operator to do not leave the first name field empty. First we will generate and configure Java implementation class for Employee Entity Object. Double click on Employee Entity from model.eo package and Open Java tab. From the Java Classes click on yellow pencil button. From the newly opened window click to generate entity object class and also click to include Accessors. 

Perform Field Level Validation in Oracle ADF

Image
We can also define the field level validation at Entity Object Level. The purpose of validation is to validate data before sent to the database. Declarative validation involves following steps:- 1) Add validation 2) Define Validation 3) Set Error Message In this post we will continue the previous post example and perform validation on Salary Field. Open the employee entity from model.eo package. From attribute select Salary field, open the Validation Rule tab and click plus sign to Add the Validation.

How to create a JDBC Resource using JDBC Connection Pool

Image
In the previous post I have created an Oracle JDBC Connection Pool using Glassfish 3.1 and in this post I will show you how to add JDBC Connection Pool into JDBC Resource. 1) On the left pane, click on Resources → JDBC → JDBC Resources 2) Click on the “New” button to add a new JDBC resource. In the resulting form, type in MyJDBCResource for JNDI Name. For the Pool Name, select myPool. Leave the rest as default and click OK. 3) You should see that your resource has created. Now your JDBC Resource is ready to use into your web application.

Difference between Oracle PL/SQL programming and Java Programming Language

Oracle PL/SQL JAVA Variable declaration T1 Number (8,2); T2 Number (5) := 5; T3 Varchar2(23); T4 Date; T5 Char; Variable declaration String T1; int T2; double T3; Date T4 = new Date(); char T5; if condition in PL/SQL IF (condition) THEN statement; statement; ELSE statement; statement; END IF; if condition in Java if (condition){ statement; statement; }else { statement; statement; } Exception handling BEGIN statement; statement; statement; EXCEPTION WHEN (exception) THEN statement; statement; END; Exception handling try{ statement; statement; } catch (Exception ex){ statement; } finally { statement; } For Loop FOR i IN [REVERS] low..upper statement; statement; END LOOP; For Loop for (int; condition; inc){ statement; statement; } While Loop WHILE (condition) LOOP statement; statement; END LOOP; While Loop while (condition){ statement; statement; }

List of Data Types in Java Language

There are eight basic data types for the storage of integers, floating-point numbers, characters, and boolean values. These often are called primitive type because they are built in parts of the java language rather than objects, which makes them more efficient use. Another type of number that can be stored is a floating-point number, which has the type float or double. Type Size byte 8 bits short 16 bits int 32 bits long 64 bits

List of Comparison Operators in Java Language

Java has several operators for making comparisons among variables. Operator Meaning Example == Equal x==3 != Not Equal x!=3 < Less than x<3 > Greater than x>3 <= Less than or equal to x <= 3 >= Greater than or equal to x >= 3

Moving from Oracle Developer Suite to Oracle ADF

Image
Hi, I am Oracle Developer and working in Oracle Forms, Reports, SQL and PL/SQL. Now i am starting to learn JAVA Programming and Oracle ADF because Oracle announced that they will stop the support of Oracle Developer Suite in 2013 and Oracle ADF will replace Oracle Developer Suite in future. In the upcoming posts i will share my learning of Java Programming and Oracle ADF.

List of Java Language Reserved Keywords

Here is a list of keywords in the java language. These words are reserved you cannot use any of these words as names in your programs. abstract continue for new switch boolean default package synchronized break do if private this double implements protected throw byte else import public throws case enum assert instanceof return transient catch extends int short try char final interface static void class finally long strictfp volatile float native super while

Create Filter or Criteria List of Values (LOV) in Oracle ADF

Image
In this post i will show you how to create LOV with View Criteria. Do the following steps:- 1) Create View Object 2) Add Bind Variables to Views 3) Create View Criteria 4) Finally Create LOV This post the enhancement of previous post and in this post we will create LOV on Manager ID field. We are going to add two business rules on Manager ID LOV:- 1) Manager cannot manage themselves i.e ( EmployeeId <> CurrentEmployeeId ) 2) Employee can be manage by other employees in the same department or in Executive Department which ID is 1. ( DepartmentId = 1 OR (DepartmentId = CurrentDepartmentId) ) Creating View Object Right click on adf.demo.modle.quries package and select New View Object

Create List of Values - LOV in Oracle ADF

Image
In this post i will continue to enhance my previous post's Employee Form and create my first List of Values (LOV) in Oracle ADF Form. Creation of LOV in ADF is as simple as in Oracle Forms. In this post i am going to create LOV for Department and Job entities. Do the following steps to create LOV in ADF. 1) Add Departments and Jobs Entities 2) Add View Objects for Departments and Jobs LOVs 3) Create LOVs 4) Finally Link LOVs to JSF Page Right click on adf.demo.model.view in Model project and choose Re-factor than Rename the  adf.demo.model.view to adf.demo.mode.queries for good naming convention. Adding Departments and Jobs Entities Right clicking on adf.demo.model.entities package in Model project and choose New Entity Object to Add Departments Entity.

Create Simple ADF Form using Oracle JDeveloper 11g

Image
In this post i will show you how to create simple ADF Form using Oracle JDeveloper 11g. I have create simple employee form based on employee table i.e. created in database. Using following steps i have create the form. 1) Create Application and Entity Objects 2) Create View Objects based on entities 3) Linking View Objects with Application Modules 4) Finally Create JSF Page Pre-requisites 1) Oracle JDeveloper 11g 2) Employee Table in Oracle Database Create Application and Entity Objects   Open JDeveloper and chose default role.

My First Form in Oracle ADF

Image
Given Below Screen Shoot is my first ADF Form. I have create this Form Using Oracle JDeveloper 11g and it very exciting to work in Oracle Fusion Middleware Tool. In the next post i will show you how to create simple form in Oracle JDeveloper 11g. I am beginner in JDeveloper 11g and still exploring this tool.