Posts

Showing posts from 2012

Configuring cluster environment on Oracle Weblogic 11g

Image
In this post will show how to configure cluster environment on Oracle Weblogic 11g. We will also create sample Loadbalancer using Oracle Service Bus to test our cluster. The clustered environment provide various benefits like Scalability, Reliability, Performance etc. By running the manageserver on multiple machine we can ensure Reliability i.e. if one machine goes down requests will be processed by another server running on another machine. All the manage server's are controlled by single Admin Server. It provide control to do various activities like start/stop the server, deployment, so on. Prerequisites: Oracle Weblogic is already installed on your system. Below steps shows how to configure the cluster environment on Oracle Weblogic: 1. Open weblogic configuration wizard 2. Select Create a new weblogic domain option. 3. Select the option which you want to be configured in your weblogic domain. 4. Specify the domain name ,say "clus_domain&q

Oracle launches Oracle Banking Platform

On 18th september Oracle Financial Services Launches Oracle Banking Platform . Its now 3 years since I started working on OBP, really feels proud to be the part of this product development. Please refer below press release: http://www.oracle.com/us/corporate/press/1844990 Official page: http://www.oracle.com/us/industries/financial-services/banking/banking-platform/index.html

Download Hadoop 1.0.3 plugin for Eclipse

I tried searching the Hadoop 1.0.3 plugin for Eclipse, but was not able to find it. Apache has remove the plugin from Hadoop installation folder. Instead you can find Eclipse Plugin source code with build.xml file at "${HADOOP_HOME}\hadoop-1.0.3\src\contrib\eclipse-plugin" .  I have build the plugin project and created hadoop-eclipse-plugin-1.0.3.jar. You can simply download ( hadoop-eclipse-plugin-1.0.3.jar ) and use the same. Thanks, Rohan L

How to create JAX-WS web service client

Image
In this post we will explain how to create JAX WS client stub to make a web service call from JAVA. First, Use the below command to create JAVA stub from WSDL. wsimport -d $PATH_FOR_JAVA_CLIENT $FULL_WSDL_PATH -keep -Xnocompile -verbose $PATH_FOR_JAVA_CLIENT--Location where the client code will get generated $FULL_WSDL_PATH--Location of the WSDL  To run the above command follow the below steps: 1. open cmd prompt. 2. Goto directory "$MiddlewareHome\user_projects\domains\base_domain\bin" . 3. Run "setDomainEnv.cmd" for windows and "setDomainEnv.sh" for Linux 4. Run the below command wsimport -d C:\wsdl\code http://10.180.90.79:7777/Simple/Porduct/ProductInfo?wsdl -keep -Xnocompile -verbose Note: http://10.180.90.79:7777/Simple/Porduct/ProductInfo?wsdl is the dummy webservice that will return dummy product details. Next, 1. Create new JAVA project say "JAXBClient" in eclipse. 2. Copy entire folder under ' C:\wsdl\code &#

Connect OSB (Oracle Service Bus) to Oracle Database using Weblogic Datasource

Image
In this post I will try to explain how to connect OSB to Oracle Database with out using DB adapter. With Weblogic datasource we can directly execute the SQL select queries. We will first create weblogic datasource. Below are the steps to create Weblogic DataSource: Login into Weblogic console. eg.  http://localhost:7777/console Go to Services->Data Sources Click on   new generic datasources Give Data source name, JNDI name, Database Type. 4. Click next 5. Select Oracle Driver and click next. 6. Give database connection details ie. ServiceName, IP, Schema, Password, port. 7. Click Next, and click Test Configuration. If everything is okay then you will see " Connection test succeeded ." message. Click on Finish 8. Next Click on Data Source 'OSBDB' and click on Targets. Select admin server and click save.  You have a data source ready to use. Next, We will show how to use this

Remove Empty Attributes in XQuery

Here is how you can remove empty attributes while xQuery mapping. Consider the following input xml: Input: Case 1: <product> <code>MAX</code> </product> Expected Result: <FinalProduct ProductCode="MAX" > </FinalProduct> Case2: <product> <code/> </product> Expected Result: <FinalProduct> </FinalProduct> Thus, we don't want the attribute to be present if the mapped element is null. Please find the below snippet for the above problem: <FinalProduct>                {                        if((fn:boolean(data($product/code))))                           then attribute ProductCode                           {                              data($product/code)                          }                           else ()                 } </FinalProduct> Thanks, Rohan Lopes

Solution for Error "The invocation resulted in an error: Cipher not initialized."

Image
I received this " The invocation resulted in an error: Cipher not initialized ." error while calling the external service running on SSL. Please find the below screen shot. Solution: Add the following line in setDomainEnv.cmd or setDomainEnv.sh  below  "set EXTRA_JAVA_PROPERTIES=". set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Dssl.debug=true -Dweblogic.StdoutDebugEnabled=true -Dweblogic.security.SSL.verbose=true -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.ssl.AllowUnencryptedNullCipher=true -Dweblogic.security.SSL.nojce=true Thanks, Rohan 

Solution for "The invocation resulted in an error: Not Found" message in response

Image
Hi, Recently I got an error while testing my business service. Please find the below screen shot. But the service used to work properly when I test it from SOAP UI. The solution for this is to disable (by default enabled) " Use Chunked Streaming Mode " in business service. Formal definition: Use Chunked Streaming Mode Select this option if you want to use HTTP chunked transfer encoding to send messages. Note : Do not use chunked streaming with if you use the  Follow HTTP Redirects  option. Redirection and authentication cannot be handled automatically in chunked mode Thanks, Rohan

Adding Security to Oracle Service Bus with Oracle Web Services Manager

Image
Oracle Web Services Manager(OWSM)  allows the definition and storage of declarative policies to be applied to web services, enabling enforcement and monitoring of security, management and audit policies.  Web Services security has multiple facets (Authentication, Authorization, Confidentiality, Integrity), each with its own standards, which can be defined as service policies, or just plain policies. In this post  we will use a simple WS-Security Username/Token policy to enforce only the users known by our system will be able to execute the service endpoint. In order to do that, we will use the default user from the Weblogic domain. 1. Create the OSB domain with OWSM.  Please find the below screen shot for reference: OSB Configuration for OWSM You will need  DEV_MDS  and  DEV_SOAINFRA  schema created on Oracle 11g database. You can run RCU to create the same. Have created sample proxy in OSB to get the customer details