Results 1 to 3 of 3

Thread: Server app

  1. #1
    Join Date
    Jul 2007
    Location
    South Africa
    Posts
    3

    Default Server app

    i've created bundles for dm-server
    i understand the concepts.

    but how do i make dm-server start a 'server' app.

    if i have a class in my bundle with a main method that might for example listen for connections on a tcp socket,
    how do i make dm-server start that class?

    thanks

    ian

  2. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    You can either give your bundle a bundle activator (see the OSGi core specification for details) or you can use Spring DM to create a bean when your bundle is started. You will find plenty of information on Spring DM in the Spring DM reference documentation. Hope that's sufficient.
    Glyn Normington
    SpringSource

  3. #3
    Join Date
    Jul 2007
    Location
    South Africa
    Posts
    3

    Default

    thanks for your feedback Glyn

    i'll use your pointers and go back to the trenches

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •