Tuesday May 12, 2015

Code Assistance in the NetBeans IDE Java Editor: A Reference Guide

clip_image001The purpose of any integrated development environment (IDE) is to maximize productivity and support seamless development from a single tool. This reference document describes useful code assistance features, customization options, and navigation capabilities of the NetBeans IDE's Java Editor.

Contents

± Smart Code Completion

Managing Imports

Generating Code

Using Code Templates

± Working with Javadoc

± Using Hints

± General Editor Features

± Semantic Coloring and Highlights

± Navigation

Appendix A: Icons in the Code Completion Window

Smart Code Completion

The NetBeans IDE's Java Editor helps you quickly complete and generate code through the "smart" code completion feature. In a general sense, code completion is very useful when you want to fill in the missing code, look at the options available in the context of your application, and generate blocks of code when needed. See below for examples of how to use code completion. Get the reference guide here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Monday May 11, 2015

IFrame in ADF Application – Menu and Show Page in IFrame by Rohan Walia

clip_image002

ADF Applications uses power of reusable task flows to be embed as regions in the page, which can be refreshed based on the use cases.
But there are some requirements by the clients which still emphasize on using Iframe to display different applications inside one application.
Suppose there is a requirement where there are 3 applications A,B and Consuming Application. All three applications A,B and Consuming needs to be deployed as separate EAR(Applications) and Consuming App needs to display the A and B Applications pages inside its main page.
Portal architecture can also fit for this requirement but if there is only ADF you need to implement this, the only choice to do is using Iframe.
In this post I will explain you how we can create a menu and show another application in IFrame in ADF Application.
We will use af:inlineFrame component to achieve this. Below is the use case.

The above diagram is for consuming application and Links in the menu (TestPage1 and TestPage2) refers to another application and the pages on click will open in right hand side inside Iframe.
Lets get started.
Created an ADF Application which has two pages. This will be deployed before the Iframe Application. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Sunday May 10, 2015

Working with af:iterator and af:forEach programmatically (Populate values using POJO from Managed Bean) by Ashish Awasthi

clip_image001This is another post about Working programmatically with ADF (populating af:iterator and af:forEach programmatically )
previously i have posted about populating af:iterator and af:forEach using ADF BC and binding layer to show master-detail relation
Implementing master/detail tree relation using af:Iterator and af:forEach for better UI designs - Oracle ADF
For this post i am populating employee name and it's department name using List datastructure ,to get and set value of attributes , created a java bean class , it has 2 variable for both attributes
Next step is to create a managed bean to populate data in af:iterator and af:forEach , this managed bean makes use of

EmployeeDet

java bean class to add data in same format for all items of iterator and forEach. A List data structure is used to pass all values to iterator. See code of managed bean  Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Saturday May 09, 2015

Dynamic Taskflow with conditional activation by Vinay

clip_image001Use Case – How dynamic task flow activated conditionally.

Implementation - We have two ADF application .One is consumer application which have two task flow

Now we have consumer application which show no task flow on load.Task flow will be shown on click of button .If you click task flow 1 then tf1 will be called and vice versa.Till the button is clicked neither tf1, nor tf2 wud be executed.

Create Producer application-

Create an new ADF application. Create two new task flow as Sample1TF and Sample2TF as below -

Now in each task flow drag drop and view activity and Sample1PF in above screenshot.Same steps need to be done for Sample2TF. Drag drop again an view activity as Sample2PF.jsff

Sample2PF.jsff will be like this Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Friday May 08, 2015

ADF Faces 12c Components Demo and Test Automation by Wilfred van der Deijl

clip_image002You might have noticed that I am working on a series of blog articles on using Selenium to automate testing of Oracle ADF applications. This includes work on a little framework to make this easier and a set of sample JUnit tests against the public Oracle ADF Faces 12c Components Demo.
Getting the Faces 12c Component Demo running with test automation had some challenges. I wanted to write them down here in case somebody wants to try the same. It starts by downloading the Oracle ADF Faces Components Demo from OTN. This also includes instructions on how to run this application in your integrated weblogic server, but those instructions have some caveats and are for JDeveloper 11g, not version 12c. Please follow the instructions below as an alternative (I've marked the differences with the normal Oracle instructions and included screenshots at the end).
In the end this needed more work than I expected, so I offer the fixed version for download. If anyone from Oracle feels that this is a problem please contact me and I'll remove the download and you can follow the instructions below to create your own fixed version.

Download the ADF Faces 12c Components Demo WAR file, but don't unpack it.

Start JDeveloper 12.1.3

Instructions updated from 11g: Choose File > From Gallery from the menu to create a new application. Select General > Applications in the tree and select Custom Application as application type and press Ok.

In the Create Application dialog type adffacesdemo as the application name, select a directory, leave the rest of the options alone and press Finish. This creates new application workspace and project.

Instructions updated from 11g: The default created project is not needed and you may delete the project. Right click it and select Delete Project. In the subsequent dialog choose to not only delete the project form the application but also delete it from disk.

Instructions updated from 11g: In the now empty workspace choose File > From Gallery from the JDeveloper menu. In the list of items select Projects and on the right hand side Project from WAR and press Ok. In the next dialog provide a name for the project, e.g. adffacesdemo, and keep the directory information. On the second panel, use the file browser to select the downloaded ADF Faces demo WAR file and finish the wizard.

Double click onto the project node to open the project properties and select the Run > Debug > Profile option. Press the Edit button and select the Tool Settings. In the Before Running section, uncheck the Make Project and Dependencies option and close the dialog pressing Ok. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Thursday May 07, 2015

Export table as XML file in ADF by Waslley Souza

clip_image002Since I wrote about how to export table to Excel in Oracle ADF, it has been one of the most read blog posts. I know that the export of data is an important feature in an application, this way, I will show how to export rows (all or some) of the table as an XML file.

Download the sample application: ADFXMLApp.zip.

Create a new ADF application that will use data of employees.

Go to EmployeesView View Object and generate the View Object Implementation Class.

Copy the following code inside EmployeesViewImpl class. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday May 06, 2015

ADF Buch (ADF Book) free download

The German ADF community was established in 2009. Since then the community collaborated intensely and provided a lot of German content on the topic of ADF.

clip_image002A selection of these contributions that has originally been published in the period of 2010 to 2014 was put together by a small team (Oracle and partners supported by the DOAG) into the so called "ADF Buch". The ADF Buch contains articles, talks and workshop tutorials regarding the Oracle Application Development Framework (ADF) provided on a total of 1.400 pages mainly in German language. 70 single contributions by 40 authors offer a huge amount of proven knowledge and cover the whole area of ADF including the Mobile Application Framework (MAF).

In the last chapter the contributing persons and companies are presented in short profiles.

The ADF Buch is available for download free of charge as a pdf file (100 MB, fast download).

More details regarding the ADF Buch.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Tuesday May 05, 2015

Deploying ADF application in Oracle Cloud by Waslley Souza

clip_image001Have you ever thought about run your ADF application on cloud? In this blog post I will show how to deploy local database tables and ADF application to Oracle Cloud using JDeveloper 11g. I would like to thank to my friend Jürgen Kress that gave me an Oracle Cloud’s licence. If you want you can get a free trial here: Oracle Cloud PaaS & SaaS Trials.

Each Oracle Java Cloud Service instance must be associated with an Oracle Database Cloud Service instance that hosts the schemas required by JRF. This way, when you request an Oracle Java Cloud Service, you will receive an Oracle Database Cloud Service Instance too.

Before you start to create your ADF application, you need to download and install JDeveloper 11.1.1.7.1 for Java and ADF deployment on Oracle Cloud.

Download the sample application: ADFCloudApp.zip.

I created a simple ADF application called ADFCloudApp that manages data of employees.

ADFCloudApp uses “EMPLOYEES” and “JOBS” tables, so we need to deploy these tables to cloud.
In the main menu, choose View > Database > Database Navigator.
In the Database Navigator window, right-click the Cloud Connections node and create a new Cloud Connection. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Monday May 04, 2015

ADF Masterclass 2015 by Lucas Jellema

This repository contains the source code for the demonstration for the ADF Masterclass 2015 - initially presented in Dubai during the Expert Summit. Get the training material here.

clip_image002

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Sunday May 03, 2015

Managing Logs in Oracle WebLogic Server by Ahmed Aboulnaga

clip_image002Oracle WebLogic Server has quite a number of log files that are generated which naturally tend to grow over time. Without any type of log rotation, archiving, or purging set up, your file system can be filled up rather quickly and eventually pose stability issues to your application environment. Listen from someone who has seen it all–if your file system is full, your application will likely hang and in-flight transactions impacted.

Fortunately, setting up your environment to prevent this scenario is extremely simple. One consideration is to move all the logs to a completely separate and independent mount point outside your WebLogic domain. But this in itself still does not protect against application failures.

In this article, we describe a few basic things you can do to manage your logs. Given the comprehensive nature of Oracle WebLogic Server, there are a number of log files you need to monitor and control, highlighted in the following table.

Unfortunately, the WebLogic Server log rotation affects only the .log files but not the standard .out files, which is generated when you use Node Manager to start up and shut down the managed servers or if you start them up as a background process (e.g., using nohup). You must implement a custom solution for the system .out files and there are many resources available online that describe various approaches. We present one such option.

There are numerous log files in Oracle WebLogic Server and ideally you would want to ensure that the number of rotated log files is controlled. For example, you may have already taken the steps to rotate the log files as they grow to a certain size. This is a great first step, but you also should control how many of those rotated files you wish to retain, otherwise your file system will likely get filled up over time if they are not manually deleted. Fortunately, the WebLogic Server Administration Console provides us the means to easily do so as well.

Based on the configuration described in this article, each log type requires 300 MB of disk space, as we are rotating the logs after they reach 10 MB in size and keeping a maximum 30 files before removing them. All instructions are applicable to both Oracle WebLogic Server 11g and 12c.

Managed Server Logs

Entries generated by a Java application are generally logged in the .log files. The WebLogic Server administrator should not trust that the application appropriately controls and logs entries resourcefully. Thus, it is recommended to control these files by enabling log rotation (either by time, by size, or both) and to limit the number of retained log files. This will prevent runaway processes from endless logging to your file system and control growth.

1. Log in to the WebLogic Server Administration Console.

2. Navigate to “Server > [managed server] > Logging > General”.

3. Set the following values: Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Saturday May 02, 2015

What you at least should know about Node Manager by Cato Aune

clip_image002Node Manager is an important utility when running WebLogic in a production environment. Most people pay little attention to the Node Manager, but when problem arises, it is a little bit late to figure out what Node Manager is and what it does.

This article is not a full introduction to Node Manager, but will describe some best practices for common real life situations and issues, and share some tips and tricks gathered over the years.

If you would like a full introduction to Node Manager first, with all the nice diagrams showing how everything is connected, then you should look at the official documentation, which by the way are getting pretty good, before coming back to read the rest of this article -  http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#NODEM112

So, what is Node Manager?

Node Manager is a utility used to start, stop and restart WebLogic and Coherence servers on the host Node Manager is installed. Since you could connect to Node Manager from a remote server, you will use Node Manager on the remote server as a tool to remotely start and stop a WebLogic instance.

There are two version of Node Manager, the Java version and the script based version. Unless you have very specific requirements, use the Java version, which also happens to be the one that most people think of when they talk about Node Manager. This article will be about the Java version, but if you want to know more about the difference of the two versions, have a look at the official documentation - http://docs.oracle.com/middleware/1213/wls/NODEM/overview.htm#NODEM114

Per host vs per domain Node Manager

Up until WebLogic 12.1.2 the default was one Node Manager per host. It was possible to do it otherwise, but it was not documented very well.

From 12.1.2 the default is one Node Manager per domain, and the configuration and logs are now located under $DOMAIN_HOME/nodemanager instead of under wlserver_10.3/common/nodemanager

It is still possible to have one Node Manager per host, for those who prefers that.

If you are using Node Manager for an earlier release (before 12.1.2) or just want to stick with one Node Manager per host, you should consider moving the configuration and log files away from wlserver_10.3/common/nodemanger and have them outside the $ORACLE_HOME. There are several reasons for that, one important reason is to keep configuration files away from the binaries, so the configuration is kept in case an upgrade overwrites everything under wlserver_10.3/common/nodemanager. Another important reason is that you want to have logfiles in a location that you monitor for disk space, since logfiles tends to grow, and you might not have taken that into consideration when deciding how much space you needed for the installation.

ne special case where you actually needed more than one Node Manager for a host in 11g was when you followed the Enterprise Deployment Guide (EDG) for SOA. In an enterprise setup, the Administration Server is installed in a different $DOMAIN_HOME than the managed servers. This makes it easier to start the Administration Server on another host in case of a host failure (Administration Server domain directory should be on a SAN or a shared disk).

The reason for using one Node Manager for the Administration Server domain directory and one for the Managed Servers domain directory is that the nodemanager.domains file in 11g could only can have one path per domain.

In 12c there is possible to have one primary domain path and several alternate domain paths for each domain in nodemanager.domains, so it should be enough with one Node Manager per domain from 12.1.3 Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Friday May 01, 2015

Securing passwords in Coherence override files by Peter van Nes

clip_image002In a previous post i wrote how to Secure Coherence communications for FMW SOA by enabling SSL through a Coherence override file. Setting up SSL involves setting up a keystore and truststore which are protected by a passsword. To access the key- and truststores Coherence retrieves the required passwords from the elements in the Coherence override files. Currently Coherence does not support encryption of these password element values. A possible solution to prevent clear-text keystore passwords in the Coherence override files is to use a System Property override for these password elements.

You can override element values in the Coherence override file using the attribute system-property. The value assigned to this attribute is the System Property containing the value overriding the element value in de Coherence override file. Let’s make it more clear using a snippet from a Coherence override file below. The default private keystore password at line 8 is intentionally left empty and the attribute system-property is added to the password element. The value assigned to the attribute system-property, coh.override.keyst.pwd, is the name of the System Property which is used to override the value in the password element.

So now we can set the value for the private keystore password using the System Property ‘coh.override.keyst.pwd’. You could set this system property for example by adding the next two lines to the setDomainEnv.sh.

But really, this is not a great improvement, the clear-text password has moved from one file to another! Also the password now can be retrieved by anyone who has access to the system by displaying the active processes. What we have learned from here is that the use of System Properties allows us override the value for the password elements in the Coherence override file. If there is a possibility to read the keystore password values from an encrypted file and set the corresponding system properties when starting a Managed Server the it would improve the protection of the keystore passwords.

And yes, it is possible. For those who are not interested in the nitty gritty details but just want to store the keystore passwords in the Coherence Override file in a secure manner here the concise installation instructions first.

Download the Weblogic Startup classes in CoherenceKeystorePasswordCipher.jar here.
Copy this jar into the lib folder of your domain_home and add the jar file to the classpath.
This can be done, for example, by adding the next line to the setDomainEnv.sh
POST_CLASSPATH="${DOMAIN_HOME}/lib/CoherenceKeystorePasswordCipher.jar${CLASSPATHSEP}${POST_CLASSPATH}"

Edit the Coherence override file and change all elements for which you want to secure the password.

Remove the value (password) from the password element.

Add the attribute system-property to the password element and assign a descriptive and unique system property name

For example, change Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Thursday Apr 30, 2015

Virtual Technology Summit free online training May 5th 2015

The Oracle Technology Network (OTN) is excited to invite you to the next Virtual Technology Summit on May 5th, 2015 (9:00 am PT to 12:30pm PT*). Learn first hand from Oracle ACEs, Java Champions, and Oracle product experts, as they share their insight and expertise on using Oracle technologies to meet today’s IT challenges. Learn through Hands on Labs and Technical Presentations / Demo’s.

  • Java: 20 Year Anniversary!
    Java technologies are celebrating 20 years of innovation delivering the next generation of application development. Integrate Java Embedded with vehicles, optimize Java EE applications, and discover how parallel programming with Java is the new norm.
  • Middleware: Spotlight on Service-Oriented Architecture and Oracle SOA Suite 12c
    The Middleware Track for the next Oracle Technology Network Virtual Technology Summit puts the spotlight on service-oriented architecture and Oracle SOA Suite 12c. which includes new features to help increase developer productivity. Each of the four deeply technical how-to sessions in this track focus on a different aspect of Oracle SOA Suite 12c. Other technologies covered in these sessions include Oracle Service Bus, Event Processing, StreamExplorer, WebLogic, API Catalog, API Manager and more.

For details please visit our registration page here.

clip_image002

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Wednesday Apr 29, 2015

Debugging WebLogic authentication by Maarten Smeets

clip_image002Login information and group memberships (identity) often are centrally managed in Enterprises. Many systems use this information to, for example, achieve Single Sign On (SSO) functionality. Surprisingly, access to the Weblogic Server Console is often not centrally managed. This is caused by a common misconception that achieving centrally managed Weblogic Server Console authentication/authorization is difficult. As a result, often there are many local Weblogic Server users or everyone uses system users. Both workarounds have obvious disadvantages.

If you can obtain user and group information from a centrally managed authorization/authentication provider, you only need to manage those users there. As an additional benefit, the developers only need to keep track of a single password instead of a password per server. This increases security and developer productivity. Also it reduces operational cost. Your server landscape could for example look like the image below where minimal effort is required for user administration while still implementing a separation of concerns between development/test and acceptance/production. This separation is usually a requirement when different people are responsible for the environments and/or environments are on different network segments.

​An LDAP server is often used to manage identity. Usually there is already a managed directory service provider present in an organization such as Oracle Directory Server or Microsoft Active Directory which contains users, groups and login credentials. In Weblogic Server you can configure authentication providers to allow usage of such servers to allow access to the Weblogic Server Console.

The complexity of using an external LDAP provider as authenticator for Weblogic Server, is often overestimated, especially if a configuration does not work as expected. What can you do to find out what’s wrong? In this article I will provide suggestions on how authentication using an external LDAP server can be debugged in order to lower the bar to apply this configuration pattern.

Debugging authentication using Weblogic Server Console

The below decision tree can help with debugging configuration issues in a Weblogic Server. The steps are also described in the text below in more detail. The tree is specific to a configuration where you can login with users from the DefaultAuthenticator (Weblogic embedded LDAP server) and from an external authentication provider. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Tuesday Apr 28, 2015

Oracle Open World 2015: Call for papers & Community Reception


clip_image001We want that you present your Fusion Middleware Partner success at Oracle OpenWorld 2015! Make sure you submit your papers: Call-for-Papers Oracle OpenWorld 2015 & Call for Papers JavaOne 2015.

We recommend to submit best practice session of leading edge products like WebLogic, Java Cloud Service and MAF with focus on cloud and mobile integration. Also highly welcome are joint presentations with your customers. Let us know if you like to get a nice quote from Oracle. For additional call for papers visit our wiki.

You are invited to join our traditional Fusion Middleware Partner Community Reception at OpenWorld. The Reception will be held on Tuesday October 27th 2015 in San Francisco! Don't miss this unique opportunity to:

  • Network and exchange information with fellow Oracle Middleware Partners & ACEs
  • Meet with members of the Global Oracle Middleware Product Management team and Oracle EMEA Alliances and Solutions Partner Programs team
  • Learn more about Oracle OpenWorld activities

Schedule: Tuesday October 27th 2015 19:30 (California time)

LOCATION: You will receive details with your confirmation e-mail.

Tips for Oracle Open World

· Plan your schedule well in advance!

· Visit the demo groups for the products you are interested

· Arrange 1:1 meetings with product management and A&C management

· Wear comfortable shoes, casual cloth and a light backpack

· Don’t forget your international health insurance

· Share your news & knowledge via social media like twitter @soacommunity @wlscommunity #OOW2015

· Drink some water during the day and a beer at our reception!

For details please visit our registration page here. See you in San Francisco Jürgen Kress

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
27
28
29
30
31
      
Today