Websphere MQ Everyplace

examples.osgi.server
Class MQeServerBundleActivator

java.lang.Object
  |
  +--examples.osgi.server.MQeServerBundleActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class MQeServerBundleActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

Example Bundle Activator. Shows how to start an MQe Application within the OSGI framework Example shows how to:

  . start and configure the MQeServerApp
  . stop the MQeServerApp
 


Field Summary
static short[] version
           
 
Constructor Summary
MQeServerBundleActivator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext context)
          Called by the framework when this bundle is started.
 void stop(org.osgi.framework.BundleContext context)
          Called by the framework when this bundle is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static short[] version
Constructor Detail

MQeServerBundleActivator

public MQeServerBundleActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Called by the framework when this bundle is started. It takes the value stored in the java property examples.osgi.server.port and passes this to the application. Under the covers this is the port number that the MQe listener will listen on. If this property is not set the default port is 8085.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - org.osgi.framework.BundleContext, BundleContext.
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Called by the framework when this bundle is stopped. It shutsdown the underlying MQeQueueManager.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - org.osgi.framework.BundleContext, BundleContext.
java.lang.Exception

Websphere MQ Everyplace