Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

WebLogic OSGI Integration Tips

Weblogic Tips by Donald BurlesonApril 10, 2015

 

WebLogic OSGI Integration

Starting with WebLogic 12.1.2, is it possible to integrate OSGI frameworks into the WebLogic server. See www.osgi.org for background information on OSGI.  Applications can get access to these framework implementations by getting them from the JNDI tree.

 

The WebLogic integration allows you to configure multiple instances of OSGI frameworks, and of course deploy multiple bundles into them. WebLogic provides out of the box the Apache Felix implementation. Features like deploy bundles, enable log, and persistence are available.

 

The following is an example of creating a new framework instance:

 

startEdit()

 

# change to the root => domain mbean

cd('/')

 

# create a new OSGI Framework wth a given name

cmo.createOsgiFramework('OsgiFramework-BookTest')

 

# change to the newly created MBean and configure it

cd('/OsgiFrameworks/OsgiFramework-BookTest')

set('Targets',jarray.array([ObjectName('com.bea:Name=TestCluster,Type=Cluster')], ObjectName))

cmo.setInitProperties({testprop=something})

set('Targets',jarray.array([ObjectName('com.bea:Name=MS1,Type=Server'),

                           ObjectName('com.bea:Name=MS2,Type=Server')], ObjectName))

cmo.setInitProperties({testprop=something})

 

activate()

 

Note that we did not create an MBean to deal with an OSGI bundle. WebLogic does not provide an OSGIRuntime framework by default. WebLogic offers the capabilities to host a complete OSGI framework (like Apache-Felix). The framework configuration will then have the information about which OSGI bundles will be loaded into this framework. The runtime configuration discussed above will create and target a complete OSGI framework to the desired server instances.

 

The frameworks are managed over the OsgiFrameWorkMBean MBeans:

 

wls:/testDomain/serverConfig> cd ('OsgiFrameworks')

wls:/testDomain/serverConfig/OsgiFrameworks> ls()

dr--   OsgiFramework-BookTest

 

wls:/testDomain/serverConfig/OsgiFrameworks> cd ('OsgiFramework-BookTest')

wls:/testDomain/serverConfig/OsgiFrameworks/OsgiFramework-BookTest> ls()

dr--   Targets

 

-r--   DeployInstallationBundles                    populate

-r--   DeploymentOrder                              1000

-r--   DynamicallyCreated                           false

-r--   FactoryImplementationClass                   org.apache.felix.framework.FrameworkFactory

-r--   Id                                           0

-r--   InitProperties                               {testprop=something}

-r--   Name                                         OsgiFramework-BookTest

-r--   Notes                                        null

-r--   OrgOsgiFrameworkBootdelegation               null

-r--   OrgOsgiFrameworkSystemPackagesExtra          null

 

See the book code download for full script

 

-r--   OsgiImplementationLocation                   null

-r--   RegisterGlobalDataSources                    true

-r--   RegisterGlobalWorkManagers                   true

-r--   Type                                         OsgiFramework

 

-r-x   freezeCurrentValue                           Void : String(attributeName)

-r-x   getInheritedProperties                       String[] : String[](propertyNames)

-r-x   isInherited                                  Boolean : String(propertyName)

-r-x   isSet                                        Boolean : String(propertyName)

-r-x   unSet                                        Void : String(propertyName)

 

Installing OSGI bundles will be done on the frameworks themselves and not via the WebLogic MBean structure.

 
   
Advanced WebLogic Server Automation Book

The above is an excerpt from the book "Advanced WebLogic Server Automation: Administration and Monitoring with WLST and JMX". This book covers everything administrators need to know for WebLogic scripting and automation, and includes a comprehensive code download of powerful WLST and JMX scripts.
 


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster