Skip to main content

Kenyth Zeng's Library tagged spring-dm-server   View Popular

03 Nov 09

dm Kernel | SpringSource Team Blog

  • If you want OSGi modular support for your system apps, but don’t want or need to host web applications, then dm Kernel is what you want.
27 Apr 09

6.4 Multi bundle integration testing

  • the use of
    classpath*: with respect to the module-context.xml path. This will
    cause Spring to look for files that match that path in all of the bundles on the classpath meaning that all
    the application beans will be instantiated:
  • When this test is run, Spring creates an ApplicationContext that is built
    from the module-context.xml configuration files from all of the bundles.

6.2 Single bundle integration testing

  • One of the most common forms of integration testing is ensuring that the object relational mapping in an
    application is working properly.

5.4 Trying out the JPA middle tier

  • This can be achieved changing greenpages.app so that it no longer
    publishes its Directory implementation.
    • how can be achieved to adaptively choose the most appropriate service without modifying configurations or source codes? - on 2009-04-27
    Add Sticky Note

5.3 Building the JPA module

  • enable load-time weaving that is required by JPA,
  • This will result in a bean being created in the application context that is named dataSource.
    The bean will be of type javax.sql.DataSource and will be backed by a service found in the
    OSGi service registry that implements the javax.sql.DataSource interface.
  • 1 more annotations...
26 Apr 09

Martin Lippert: Load-Time Weaving for Spring-DM

  • I am aware of dm Server also implements ltw for OSGi (not only AspectJ, but for all different kinds of lt weavers), but just for the server, not for spring-dm in general, if I remember this correctly. So if you wish to use spring-dm without a server (client-side, just OSGi, whatever) or with a different one (embedding OSGi in WebSphere, WebLogic, Tomcat, Jetty, whatever) or with a different web support (PAX-Web on top of OSGi) you are now able to use ltw for spring-dm with this bridge to Equinox Aspects.
24 Apr 09

5.5 Working with dependencies

  • uses a local provisioning repository of bundles and libraries
  • SERVER_HOME/repository/bundles/usr for bundles, and
    SERVER_HOME/repository/libraries/usr for libraries.

5.4 Automatic Imports

  • consult the server.profile
    file located in the SERVER_HOME/lib directory
    which corresponds to the version of the JVM on which the dm Server
    is running (e.g., java5-server.profile
    or java6-server.profile).

5.3 Programmatic Access to Personality-specific Features

  • for a Web Module,
    you can use Spring MVC's WebApplicationContextUtils'
    getWebApplicationContext(servletContext, attributeName)
    method (or other means) to programmatically retrieve a reference to the
    WebApplicationContext, which is an instance
    of ServerOsgiBundleXmlWebApplicationContext.
    For Shared Services WARs, you can programmatically retrieve
    the WebApplicationContext directly from the
    ServletContext.

5.2 Packaging

  • The modules of a PAR have their exported packages imported by the
    synthetic context bundle which is used for thread context class loading.
  • Packaged as an OSGi bundle with a .jar extension
  • 12 more annotations...

4. Deployment Architecture

  • passes through a deployment pipeline.
  • At deployment time, the WAR file is
    transformed into an OSGi bundle and installed into Tomcat.
  • 8 more annotations...

3.3 Why the SpringSource dm Server?

  • converting
    JAR files into bundles and making sure that any libraries needed by those
    bundles are also available as OSGi bundles.
  • Lack of application-level isolation
  • 5 more annotations...
23 Apr 09

5.2 Creating the DataSource project

  • By default, a bundle project is configured with a Bundle Classpath Container.
  • Bundlor uses a manifest template to control the contents of the generated manifest.
  • 3 more annotations...

SpringSource Team Blog » Our plans for building OSGi applications

  • generating manifest files automatically from the associated metadata available for an application module.
  • treating their OSGi manifests as the canonical description of dependency metadata.
  • 10 more annotations...

4.5 Creating a PAR

  • In dm Server, applications consisting of multiple bundles can be packaged as part of a PAR.

4.2 GreenPages set up

  • Errors in this configuration may cause the dm Server instance to fail to start later.
21 Apr 09

SpringSource Team Blog » Running Spring Applications on OSGi with the SpringSource Application Platform

  • Load-time weaving was one of the most problematic features to support in a robust manner. At the basic level, it requires hooking into the Equinox ClassLoader so that standard ClassFileTransformers can be attached and used during the defineClass calls.
  • When you start propagating weaving across to other bundles, you really need to know when to stop.
  • 4 more annotations...
1 - 20 of 28 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo