code: public Object startupService(BundleContext bundleContext)
      {
          Map<String,Object> props = this.getServiceProperties();
          try {
              Environment env = (Environment)this.getService(Env.class);
              props = Utility.putAllIfNew(props, env.getProperties());  // Use the same params as environment
              // Note the order that I do this... this is because MainApplication may need access to the remoteapp during initialization
              App app = env.getMessageApplication(false, props);
              RemoteSessionServer service = null;
              if (app == null)
              { // Note the order that I do this... this is because MainApplication may need access to the remoteapp during initialization
                  app = new MessageInfoApplication();
                  service = new RemoteSessionServer(app, null, props);
              }
              app.init(env, props, null); // Default application (with params).
              if (service == null)
                  service = new RemoteSessionServer(app, null, props);
          //            app.setProperty(DBParams.MESSAGE_SERVER, DBConstants.TRUE);
          //            app.getMessageManager(true);
              return service;    // Doesn't create environment
          } catch (RemoteException e) {
              e.printStackTrace();
          }
          return null;
      }
docs: Start this service.
  @return true if successful.