Friday, March 7, 2014

How to test OSB Business service from OSB Console ?


This blog explains about how to test OSB Business service from OSB console.

- Login to OSB console, Click on 'Project Exporer' button in 'Operations'
- Locate the OSB Project, which contains desired Business service which you want to test.


- Click on 'Launch Console' icon as shown above.
- Enter the input as shown below and click on 'Execute' or 'Execute Save' buttons.


How to deploy OSB Service ?


This blog explains about various methods to deploy OSB services.

- Right click on OSB project, export as a JAR as shown below

- Login to OSB Console
- Click on 'Create' in 'Change Center'
- Click on 'System Administration' in 'Opeations'
-  Choose the exported OSB Configuration project jar, Select the OSB Project which you want to deploy and click on 'Import' button


- After successful import , click on 'Activate' button in operations
- Click on 'Project Explorer' button in 'Operations' and locate your OSB Project


- OSB Project is successfully deployed to OSB console

How to publish a message into JMS Queue using OSB Process?


This blog explains about publishing a message into JMS Queue using OSB

- Create JMSServer, JMSModule and JMSQueue. Below is list of queues which I have already created. Ensure target server should have OSBServer as target server.

- As we are going to publish/enqueue a message, Create a business service as shown below

- Using OEPE(Oracle Enterprise Pack for Ecilipse) create new OSB Configuration Project

- Create new OSB Project in above created OSB Configuration project as shown below


- Create various folders for Business Services, Proxy Services, xsd's and Transformations in above created OSB Project

- Create new business service by right clicking on 'Business Services' folder and choose Business Service, Give meaningful name

- Choose 'Messaging Service' in General tab as shown below

- Based on your requirement choose any of Message type for Request and Response, In this example, I want to publish simple text message, I chosen 'Text' in Request , I don't have any response, so chosen 'None' in response as shown below
- Enter below information in 'Transport' tab
  Protocol - jms
  End Point URI - OSB Server name, Port , Keep the default connection factory as it is , JMS Queue name

- Enter the below info in 'JMSTransport' tab
 - Destination Type - Queue
 - Message Type - Text
 JMS Service Account - If you have any authentication setup on JMS Queue, then use the JMS Service account , otherwise leave this as blank
- If you want to persist the message until the consumer consumes the message then select 'Enable Persistent Message' option as shown below

We are done with creating business service which publish message into JMS Queue.

How to Create JMS Queue and Topic in Weblogic Server


This blog explains about crating JMS Module and JMS Queue
1. Create JMS Module, Here is brief explanation about JMS Module

JMS system resources are configured and stored as modules similar to standard J2EE modules. Such resources include queues, topics, connection factories, templates, destination keys, quota, distributed queues, distributed topics, foreign servers, and JMS store-and-forward (SAF) parameters. You can administratively configure and manage JMS system modules as global system resources.




- Enter the JMS Module Name and meaningful description.

- Choose the server where you want to deploy the JMS Module


- Choose Finish


- JMS Module successfully created


   Creating JMS Queue

Select the JMS Module and click on New button


- Here is brief explanation about JMS Queue







- Select the Queue and click on Next

- Give meaningful name for queue and JNDI. This allows to uniquely identify the resources in a JMSModule

Choose if there is any existing sub deployments created for the JMSModule, otherwise create new subdeployment
- Give meaningful sub deployment name


- Choose the appropriate JMS Server for and click on 'Finish'
- JMS Queue successfully created


Creating Topic

- Follow the same steps as above mentioned , instead of 'Queue' select 'Topic' in a JMSModule

Monday, February 10, 2014

singleton ability in Inbound Adapters

Inbound Adapters have the property to read a file, it can be DB or File.

These adapters act bit differently when deployed to any clustered environment. Usually Performance and Production environments are clustered, in these the adapter will read the file in both the nodes. In order to suppress this behavior, we can add singleton property in composite.xml as follows:

 <binding.jca config="GetInputDetails_file.jca">
      <property name="singleton">true</property>
    </binding.jca>

Thursday, August 15, 2013

Weblogic Tips and Best Practices


- Ensure to take the backup of Config.xml file before making any modifications in weblogic conosle
       MIDDLEWARE/domain/bin/config - Here is the path where you can find config.xml
-  To Start & Stop Weblogic server
        MIDDLEWARE/domain/bin
        ./startWebLogic.sh & - Starts the weblogic server
        ./stopWebLogic.sh   - Stops the weblogic server.

Wednesday, August 14, 2013

How to Start/Stop Weblogic Server

This post briefly outlines about starting/stopping weblogic server in sevral ways.

Start Weblogic Server in Windows

By default, this directory is MW_HOME\user_projects\domains\DOMAIN_NAME, where DOMAIN_NAME is the root directory of the domain. (The name of this directory is the name of the domain.)

- bin/startWebLogic.cmd (Windows)
- bin\startWebLogic.sh (UNIX and Windows. On Windows, this script supports the MKS and Cygnus BASH UNIX shell emulators.)

Starting Weblogic Server from the Windows Startup Menu

- When you create an Administration Server on a Windows computer, the Configuration Wizard creates a shortcut on the Start Menu for starting the server (User Projects > DOMAIN_NAME > Start Admin Server for WebLogic Domain).

How to start Managed server from weblogic console 

- Login to the Weblogic Admin Console
- Environment->Servers
- Click on the 'server' which you want to start/stop



- Choose 'Configuration' and 'Start/Stop' tabs as shown below
- Select the server and click on 'Start/Stop' button.




- If you encounter any warning message saying 'Node Manager is not running associated' then start the 'Node Manager' as explained below

-MW_HOME\wlsserver_10.3\server\bin
startNodeManager.cmd - If it is on Windows
startNodeManager.sh - If it is on UNIX

Starting Weblogic Server using Node Manager

- "Node Manager is a utility for remote control of WebLogic Server instances. Using Node Manager you can control and monitor Managed Servers and also, start, stop, and restart Administration Servers."
- Start Node Manager
c:\>java weblogic.WLST 
wls:/offline> startNodeManager()
- Start WLST
java weblogic.WLST
- Connect WLST to a Node Manager by entering the nmConnect command.
wls:/offline>nmConnect('username','password','nmHost','nmPort', 'domainName','domainDir','nmType')
Example : nmConnect('weblogic', 'welcome1', 'localhost', '5556','fortuneminds','c:/bea/user_projects/domains/fortuneminds','ssl')
- Start Server
wls:/nm/mydomain>nmServerStatus('serverName') 
- Stop Server
wls:/nm/mydomain>nmKill('serverName') 
Ref : http://docs.oracle.com/cd/E12839_01/web.1111/e13715/manage_servers.htm#WLSTG166


Start the admin server:
              <domain_home>/bin/startWebLogic.sh
Stop the admin server:
             <domain_home>/bin/stopWebLogic.sh
Start the node manager:
            <weblogic_home>/wlserver_10.3/server/bin/startNodeManager.sh
Start a managed server:
           <domain_home>/bin/startManagedWebLogic.sh <managed_server_name> http://<admin_server_host>:<admin_port>
Stop a managed server:
          <domain_home>/bin/stopManagedWebLogic.sh <managed_server_name> http://<admin_server_host>:<admin_port>