[jboss-dev-forums] [JBoss OSGi Development] - Re: Autostart bundles when deployed in JBossAS

thomas.diesler@jboss.com do-not-reply at jboss.com
Fri Sep 4 06:21:20 EDT 2009


To reproduce

#1 Build the installer

  mvn -Pdistro clean install

#2 Install MC Framework in jboss-5.2.0 minimal

#3 Delete default bundles

  rm -rf server/minimal/deploy/osgi

#4 Start the server


  | 12:12:55,287 INFO [OSGiBundleManager] JBossOSGi Runtime - Microcontainer
  | 12:12:55,288 INFO [OSGiBundleManager] 1.0.2-SNAPSHOT
  | 12:12:55,293 INFO [FrameworkEventsPluginImpl] Bundle STARTING: Bundle{system.bundle:0.0.0}
  | 12:12:55,335 INFO [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=1 bundle=system.bundle:0.0.0 classes=[org.jboss.osgi.spi.service.MicrocontainerService]}
  | 12:12:55,400 INFO [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=2 bundle=system.bundle:0.0.0 classes=[org.osgi.service.packageadmin.PackageAdmin]}
  | 12:12:55,404 INFO [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=3 bundle=system.bundle:0.0.0 classes=[org.osgi.service.startlevel.StartLevel]}
  | 12:12:55,407 INFO [FrameworkEventsPluginImpl] Bundle STARTED: Bundle{system.bundle:0.0.0}
  | 12:12:55,409 INFO [FrameworkEventsPluginImpl] Framwork STARTED
  | 12:12:55,664 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey at 3c4c33[domain=default, server=default, name=minimal]
  | 12:12:55,666 INFO [AbstractServer] Started: JBoss Server[5.2.0.Beta1 (build: SVNTag=JBoss_5_2_0_Beta1 date=200909022330)] in 14s:470ms
  | 

#5 Deploy Bundle jbosgi142-bundleA.jar


  | 12:16:15,779 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jbosgi142-bundleA:0.0.0}
  | 12:16:15,938 INFO [OSGiBundleResolverDeployer] Unresolved: Bundle{jbosgi142-bundleA:0.0.0}
  | 

#6 Deploy Bundle jbosgi142-bundleX.jar


  | 12:16:50,849 INFO [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jbosgi142-bundleX:0.0.0}
  | 12:16:50,968 INFO [FrameworkEventsPluginImpl] Bundle RESOLVED: Bundle{jbosgi142-bundleX:0.0.0}
  | 12:16:50,973 INFO [FrameworkEventsPluginImpl] Bundle RESOLVED: Bundle{jbosgi142-bundleA:0.0.0}
  | 12:16:50,975 INFO [FrameworkEventsPluginImpl] Bundle STARTING: Bundle{jbosgi142-bundleX:0.0.0}
  | 12:16:50,975 INFO [FrameworkEventsPluginImpl] Bundle STARTED: Bundle{jbosgi142-bundleX:0.0.0}
  | 12:16:50,977 INFO [FrameworkEventsPluginImpl] Bundle STARTING: Bundle{jbosgi142-bundleA:0.0.0}
  | 12:16:50,988 INFO [FrameworkEventsPluginImpl] Bundle STARTED: Bundle{jbosgi142-bundleA:0.0.0}
  | 


This shows the behaviour with the LifecycleCallbackItem approach.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253533#4253533

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253533



More information about the jboss-dev-forums mailing list