Friday, December 2, 2011

How to JDeveloper memory settings

Before, Did you get warning message the "Low memory warning" on JDeveloper .


I will describe how to fix it. There are two config files on jdeveloper installation directory.
the first one is jdev.conf file. the file located in \jdeveloper\jdev\bin
increase the memory values for the following parameters:
AddVMOption -XX:MaxPermSize=1024M

the second one is ide.conf file on \jdeveloper\ide\bin.

AddVMOption -Xmx1024M
AddVMOption -Xms1024M








For now start JDeveloper. if jdeveloper can not start, decrease memory allocated values and retry to start jdeveloper

Thursday, December 1, 2011

How to change jdeveloper domain creation location

when you run any adf web application using integrated weblogic server, domain not create oracle product home directory and
The domain located to default location. for example

C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.4.37.59.23 like this.

to change values of two variables :JDEV_USER_HOME,JDEV_USER_DIR

1. to to oracle product installed directory
2. \jdeveloper\jdev\bin
3. open jdev.boot file.
4. check below line as picture.

to set environment variables set:
this will create two variable in system variable.
It shows follow pictures.







for now. Restart jdeveloper and run adf application and will create new integreted domain to pointed your location.

Wednesday, November 30, 2011

ADF Query Component Usage with ADF Panel Stretch Layout

There is a very nice layout component in ADF 11g - af:panelStretchLayout (ADF Panel Stretch Layout). This component comes with 5 facets - Bottom, Center, End, Start and Top. It allows to split your page layout in more easy way - you can put menu component into Top facet, functional logic into Center facet.

Everything seems okej and clear, however there is hidden issue when you need to have menu elements in Top facet dependent on ADF Query from Center facet. For example, menu item can be enabled/disabled based on ADF Query results:





click here detail read post





project workspace download :PanelStretchLayoutADFQuery.zip

JDeveloper 11g and ADF Task Flow Parameters

Developed sample application - TaskFlowParamaters.zip is based on standard HR schema, Departments and Employees entities. Unbounded task flow contains selectDepartments page and call to separate bounded task flow. Bounded task flow contains employees page and Task Flow Return component, this component allow to return to calling ADF Task Flow.



When I was creating this application, I have used Fusion Web Application (ADF) as a template for developed sample application. Empty unbounded task flow was created automatically - adfc-config.xml. My next step was to create bounded task flow - task-flow-definition.xml:
click here detail read post




project workspace download :TaskFlowParamaters.zip

Create, Edit and Delete operations in ADF Faces af:table component

Developed sample application EditableTable11.zip, provides read-only table with those actions - Delete, Create, Edit, Save, Cancel. Row selected for editing is shown in editable mode and can be updated. Application is based on HR schema that comes with Oracle XE database. Application logic is based on Jobs entity from HR schema.
This sample is developed using the same principle as described in my previous post. I will describe what are the differences in implementation:
click here detail read post







project workspace download :EditableTable11.zip

Monday, November 28, 2011

Install Oracle JDevevoper

In this post, I will explain how to install oracle jdeveloper tools on windows and linux os. which is almost same way.
1. first of all you must download jdeveloper installer from here.
2. click the exe installer file




3. click next.

4. choose oracle middleware home. if you have already oracle home which is show on and didn't have select create new middleware home.

5. click next

6. Installation process will install the following software products
JDeveloper and ADF
Weblogic Server




7. choose JDK


If you had already installed jdk, you can set the jdk location. if not new jdk will install on your oracle home.
8. click next

9. click next.


here you can insert Node manager port. Default value is 5556. if select YES nodemanager automatically runs when start OS

10. starting install
11. Installation Summary

that's finish

Sunday, November 27, 2011

ADF application deployment to custom weblogic domain

few days ago, I had problems for adf web application deployment to weblogic custom domain.
today is, I will post about the web deploy to custom domain.

There are some some useful posts:
http://blogs.oracle.com/shay/entry/common_pitfalls_when_deploying
http://radalcove.com/blog/?p=34
http://www.oracle.com/webfolder/technetwork/jdeveloper/howto/11114/managedserver/wlsadfms.html
http://chrismuir.sys-con.com/node/952411/mobile
http://technology.amis.nl/blog/6167/deploying-and-running-adf-11g-applications-on-weblogic-11g



If below error occurs while deploying the error fixed by follow steps

1. Caused by: java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
See server logs or server console for more details.

----check ADF Web Runtime

2. Caused by: java.lang.ClassNotFoundException: oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
See server logs or server console for more details.

----check BC4J Runtime

3. Caused by: java.lang.ClassNotFoundException: oracle.jsp.runtimev2.JspServlet
See server logs or server console for more details.

----
ojsp.jar: copy ojsp.jar file to domain lib directory and restart domain



4.Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
See server logs or server console for more details.

----ADF Common Web Runtime



go to Project properties->deployments->Edit->WEB-INF/lib->contributors on left tab panel then check libraries.

okey ,now deployment success finished. The application worked normal. but showed up warning message on admin consle and UI.



I added to the groovy-all jar file to the CLASSPATH in setDomainEnv.sh.

Tuesday, October 25, 2011

Passing Parameters from ADF Task Flow with Fragments into ADF Bounded Task Flow

It is a common use case to pass parameters from ADF Task Flow with fragments into another ADF Task Flow without fragments. I got this question for my previous blog post - Parent Action Activity in ADF Task Flow. The use case:http://www.blogger.com/img/blank.gif

1. We have ADF Bounded Task Flow, it contains two main elements - page P1 and another ADF Task Flow call - C1
2. Page P1 included ADF region, this region comes from ADF Task Flow with Fragments
3. We need to pass parameter from ADF region available in P1 into ADF Task Flow call C1


click here detail read post





project workspace download :ADFRegionNavigation2.zip

MySQL Unicode Datasource Problem

recently, I had problem about mysql database unicode on adf web application. In my table on mysql database table row is inserted to fine by unicode utf8 . but when insert new row to database from adf web application , unicode utf8 is not working. so i added follow connection string .



jdbc:mysql://localhost:3306/dbname?useUnicode=yes&characterEncoding=UTF8




and you need to check follow steps.
1. go to menu Tools->Preferences Encoding select UTF8
2. check encoding of all type page

ADF Task Flow in JDeveloper 11g

In JDeveloper 10g there is only one possibility to design application page flow structure - using JSF navigation flows. But sometimes, use cases require to implement complex page flow, that is not supported by JSF navigation flows. JDeveloper 11g brings ADF task flows in addition to JSF navigation flows. From Oracle JDeveloper 11g Technology Preview, Fusion Developer's Guide for ADF:



Task flows provide a more modular and transactional approach to navigation and application control. Like standard JSF navigation flows, task flows mostly contain pages that will be viewed. However, instead of describing navigation between pages, task flows facilitate transitions between activities. Aside from navigation, task flow activities can also call methods on managed beans, evaluate an EL expression, or call another task flow, all without invoking a particular page. This facilitates reuse, as business logic can be invoked independently of the page being displayed.

click here detail read post





In developed sample application - ADFTaskFlow.zip

TrackQueryPerformed Property Usage and ADF Task Flows

I will describe following scenario - two ADF Task Flows, second ADF Task Flow is opened as Isolated. First ADF Task Flow provides query functionality implemented as View Criteria, and second ADF Task Flow accepts current row key value and allows to edit data. Scenario is pretty simple, and can be implemented in Oracle ADF very fast. However, there is one trick if you open second ADF Task Flow as Isolated. I will describe it and provide solution.



click here detail read post





project workspace download :TrackQueryPerformed.zip

Thursday, October 20, 2011

Communicating Between ADF Regions Without Contextual Events Framework

Download sample application - RegionCommunicationPPR.zip. This sample is based on two ADF Regions - one brings Employees table data, another - Employes form data. User can select data in the table, form in the second ADF Region will be refreshed automatically and will show synchronized data



PopUpFetch Option for Property Listener

With previous JDeveloper/ADF 11g releases it was quite complicated to catch popup fetch event, we were overriding popup fetch listener inside managed bean and processing it. Its a good hint, things are simpler now - there is popupFetch property with Set Property Listener component:click here detail read post




Download sample application - PopUpFetchListener.zip

Database Connection in ADF BC 11g

I started to dig more and I saw that Number type is displayed as oracle.jbo.domain.Number, usually it is shown just as Number:click here detail read post






project workspace download:DatabaseConnectionADFBC.zip

This is start

Hi All,
I'm java developer, few months ago, I started to study oracle technology about fusion middleware. I haven't enough experience for adf , jdeveloper, etc.But I wanna to share my just now learning knowledge to other people. I will post adf, jdeveloper, and other fusion middleware product's some knowledge. the post will contain video lesson, screenshot tutorials, examples.

Oracle Database 11g Installing and create database on windows

I decided i wanted to post oracle database 11g install on window os. My laptop is running on windows 64 bit. I made screenshot for each step. i inserted those screenshot the post. next time I will post some information to install oracle db 11g on linux and Windows and Linux oracle db GUI install type is almost same.

1. You need to download oracle database 11g set up. You can download here
2. Go to install folder. execute setup.exe.





3. If you want to update you check it or unckeck


4. select one from these three install options:
a. create database and install db software
b. only install database install
c. you can upgrade an existing database
select a option.


5. Select Desktop class option.


6.You will perform a basic installation with a starter database. Enter mydb for the Global Database Name and oracle for Database Password and Confirm Password. Then, click Next.






7. you do it if you want to save installation response file to disk .



8. now starting installation process.


9. while installing on windows these error message occurs but on linux os it is fine.









10. it is finish.


11. Listener configuration: