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