Announcement Announcement Module
Collapse
No announcement yet.
Server app Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      thanks for your feedback Glyn

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

      Comment

      Working...
      X