This blog explains about learning/findings/experiences & Interesting features of Oracle Application Development Framework(ADF) , part of Oracle Fusion Middleware Technologies.
Thursday, March 5, 2015
Thursday, January 15, 2015
How to Manage Metadata Partitions using Fusion Middleware Controle
What is Metadata ?
A metadata repository contains metadata for Oracle Fusion Middleware components, such as Oracle BPEL Process Manager, Oracle B2B, and Oracle WebCenter Portal. It can also contain metadata about the configuration of Oracle Fusion Middleware and metadata for your applications.
How to see existing Metadata Repositories and delete them if needed?
- Login to Fusion Middleware Control ( EM Console)
- On Left hand side Menu, Expand 'Metadata Repositories'
- Select your metadata data source
- Here you can see all the existing Metadata partitions, You can delete them if wanted, It is always best practice to have only one existing MDS Partition always, and remove all the unwanted one's to have more space available.
- You can also see Metadata labels as well.
A metadata repository contains metadata for Oracle Fusion Middleware components, such as Oracle BPEL Process Manager, Oracle B2B, and Oracle WebCenter Portal. It can also contain metadata about the configuration of Oracle Fusion Middleware and metadata for your applications.
How to see existing Metadata Repositories and delete them if needed?
- Login to Fusion Middleware Control ( EM Console)
- On Left hand side Menu, Expand 'Metadata Repositories'
- Select your metadata data source
- Here you can see all the existing Metadata partitions, You can delete them if wanted, It is always best practice to have only one existing MDS Partition always, and remove all the unwanted one's to have more space available.
- You can also see Metadata labels as well.
Tuesday, January 6, 2015
Weblogic Server Workshop Assignments
This blog outlines some of the workshop assignments part of Webogic Server Administration
- Install Weblogic server on Windows Machine and Linux Machine.
- Create a domain name called 'fm_domain'
- Create a Managed Server called 'FMADFServer1'
- Create a Managed Server called 'FMADFServer2'
- Write a WLST Script to create a Managed Server called 'FMADFServer3'
- Upgrade the 'fm_domain' to have installed 'Oracle Enterprise Manager'
- Create a Cluster called 'FMADFCluster1'
- Create a Cluster called 'FMADFCluster2' using WLST Script
- Stop and Start 'FMADFServer1' using WLST Script
- Stop and Start 'FMADFServer2' using WLS Console
- Provide a WLST Script to have all the required AD libraries deployed to 'FMADFServer3'
- Create a JDBC Data Source called 'FMRecruitDS' pointing to Oracle Database and target to 'FMADFCluster1 and '2'
- Install Webcenter Portal 11.1.1.8 on Unix Machine
- Install Oracle SOA Suite 11g on Unix Machine
- Install Oracle OSB on Unix machine
- Install Webcenter Sites on Unix Machine
- Install Oracle Database 11g on Unix Machine
- Exercise on Managed Server Memory tuning
- Exercise on configuring Log files on a specific managed server
- Start / Stop Managed server using Node Manager
- Start / Stop Managed server in MSI(managed server independence) Mode
- Create a domain 'fm_domain_prod' in Production Mode with one cluster , cluster contains two managed servers. Practice Start / Stop all managed servers using Node Manager as well as MSI mode.
- Create and extend a SOA Domain Template using Template Builder
- Use OPatch in Unix and experiment with applying patches to already installed SOA/Weblogic Server/ADF patches.
- Crate a JMS Server 'EmpJMSServer'
- Create 'JMS Module'
- Crate 'Queue' and add a message to the queue
- Create a 'Topic' , add a message to the queue.
- Copy the above created 'fm_domain' to TEST / PROD environment, i.e try to practice how can you copy the existing domain to another machine without re doing the same again and again.
- Create a Data Source using Weblogic console , pointing to Oracle Database.
Wednesday, December 17, 2014
How to import and Export Webcenter Portal MDS Data using WLST Scripts
What is MDS Data ?
Oracle Metadata Services (MDS) Repository contains metadata for certain types of deployed applications. Those deployed applications can be custom Java EE applications developed by your organization and some Oracle Fusion Middleware component applications, such as Oracle B2B and Oracle Web Services Manager. A Metadata Archive (MAR), a compressed archive of selected metadata, is used to deploy metadata content to the MDS Repository, which contains the metadata for the application.
For More Info, Please Refer http://docs.oracle.com/cd/E29542_01/core.1111/e10105/repos.htm#ASADM494
What is WLST Script ?
The WebLogic Scripting Tool (WLST) is a command-line scripting interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains. The WLST scripting environment is based on the Java scripting interpreter, Jython. In addition to WebLogic scripting functions, you can use common features of interpreted languages, including local variables, conditional variables, and flow control statements. WebLogic Server developers and administrators can extend the WebLogic scripting language to suit their environmental needs by following the Jython language syntax
For more Info , Refer http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/using_WLST.html
Follow below steps in order to execute WLST Script
Step 1 : Execute wlst.sh , Go to common/bin directory and execute as shown below
/devbox/fmw/product/111/wcp_111/common/bin> ./wlst.sh
Step 2 : Connect to respective server as shown below
fmadmin - User ID
simple4u - Password
Admin Server IP Address
Admin Server Port
connect('fmadmin','simple4u','t3://129.155.137.216:44501')
Step 3: Execute below command to export the data. Make sure upon successful export, you should see a message " Successfully exported"
exportMetadata(application='FM_PortalApp1',server='WC_CustomPortal1',toLocation='/tmp/Oracle',docs='/**')
For More Info : http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27738/wcadm_imp_exp_fw.htm#WCADM359
Step 4 : To Import, execute below command
importMetadata(application='FM_PortalApp1', server='WC_CustomPortal', fromLocation='/tmp/myrepos', docs='/**')
Tuesday, November 4, 2014
How to perform Redirect in ADF using Managed Bean ?
This blog explains various ways to perform redirect in ADF using Managed bean
Approach 1
FacesContext fcx =FacesContext.getCurrentInstance()
fcx.responseComplete();
fcx.getApplication().getNavigationHandler().handleNavigation(fcx, null, "gotoHomePage");
fcx.renderResponse();
Approach 2
fcx.responseComplete();
fcx.getExternalContext().redirect(getServletRequest().getContextPath() + "/pages/HomePage.jspx");
Approach 3
RequestDispatcher dispatcher = getServletRequest().getRequestDispatcher("HomePage.jspx");
dispatcher.forward(getServletRequest(), getServletResponse());
Approach 4
getServletResponse().sendRedirect("gotoHomePage.jspx")
Approach 1
FacesContext fcx =FacesContext.getCurrentInstance()
fcx.responseComplete();
fcx.getApplication().getNavigationHandler().handleNavigation(fcx, null, "gotoHomePage");
fcx.renderResponse();
Approach 2
fcx.responseComplete();
fcx.getExternalContext().redirect(getServletRequest().getContextPath() + "/pages/HomePage.jspx");
Approach 3
RequestDispatcher dispatcher = getServletRequest().getRequestDispatcher("HomePage.jspx");
dispatcher.forward(getServletRequest(), getServletResponse());
Approach 4
getServletResponse().sendRedirect("gotoHomePage.jspx")
Friday, October 31, 2014
How to import certificate to keystore
What is Keystore ?
A Java KeyStore (JKS) is a repository of security certificates – either authorization certificates or public key certificates – used for instance in SSL encryption. In Oracle WebLogic Server, a file with extension jks serves as keystore.
What is DemoTrust.jks ?
DemoTrust.jks Contains a list of certificate authorities trusted by WebLogic Server. This keystore establishes trust for WebLogic Server.
How to add import a certificate to DemoTrust.jks Keystore ?
keytool -import -alias <certificate name> -file <certificate path> -keystore <DemoTrust.jks path>
Example : Execute below command in CMD in Windows
keytool -import -alias FM-CA -file C:\libs\FM\FM-CA.cer -keystore C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks
How to see existing certificates in DemoTrust.jks ?
keytool -list -v -keystore C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks
Here is the default password for DemoTrust.jks : DemoTrustKeyStorePassPhrase
For More Info : http://docs.oracle.com/cd/E19118-01/n1.sprovsys51/819-1655/fapsf/index.html
Tuesday, October 28, 2014
How to consume Peoplesoft Portlets in Custom webcenter Portal application
Below blog explains about how to consume Peoplesoft Portlets in Webcenter portal application
http://redstack.wordpress.com/2010/06/01/exposing-peoplesoft-portlets-through-webcenter-with-ws-security/
http://redstack.wordpress.com/2010/06/01/exposing-peoplesoft-portlets-through-webcenter-with-ws-security/
Subscribe to:
Posts (Atom)