Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7767143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:36:10+00:00 2026-06-01T15:36:10+00:00

Can anyone point to a step-by-step tutorial on how to configure a remotely-accessible service

  • 0

Can anyone point to a step-by-step tutorial on how to configure a remotely-accessible service contained within Eclipse Virgo 3.0x? I know that standards exist, etc., but I can find NO example which does not seem to contain a bunch of hand waving instead of specific steps along with working code/configurations to download. I don’t care if the example uses Apache CXF, Eclipse ECF, or just about anything else. What I want is the equivalent of RMI in that both the transport and wire protocol are abstracted away behind what appears to both client and server-side developers as just plain Java (with some liberties taken).

Which bundles must be deployed into Virgo to support remoting? What Spring-ish configuration settings work? What jars must be on the client-side classpath? Etc, etc.?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:36:11+00:00Added an answer on June 1, 2026 at 3:36 pm

    I played around with Apache CXF DOSGI and got it working quite easily.

    • Download CXF single bundle distribution from here – I used 1.3.0.
    • Unzip Virgo (I used the kernel distribution for simplicity), copy CXF bundle to pickup, and start Virgo:

      $ bin/startup.sh
      [2012-04-04 14:17:33.011] startup-tracker              <KE0001I> Kernel starting. 
      [2012-04-04 14:17:36.135] startup-tracker              <KE0002I> Kernel started. 
      ...
      [2012-04-04 14:17:38.561] sync Event Dispatcher Thread <UR0001I> User region ready. 
      [2012-04-04 14:17:39.565] fs-watcher                   <HD0001I> Hot deployer processing 'INITIAL' event for file 'cxf-dosgi-ri-singlebundle-distribution-1.3.jar'. 
      [2012-04-04 14:17:40.060] fs-watcher                   <DE0000I> Installing bundle 'cxf-dosgi-ri-singlebundle-distribution' version '1.3.0'. 
      [2012-04-04 14:17:40.570] fs-watcher                   <DE0001I> Installed bundle 'cxf-dosgi-ri-singlebundle-distribution' version '1.3.0'. 
      [2012-04-04 14:17:40.593] fs-watcher                   <DE0004I> Starting bundle 'cxf-dosgi-ri-singlebundle-distribution' version '1.3.0'. 
      [2012-04-04 14:17:43.498] start-signalling-1           <DE0005I> Started bundle 'cxf-dosgi-ri-singlebundle-distribution' version '1.3.0'.
      
    • Install and run ZooKeeper server according to these instructions – I used 3.4.3. See also the ZooKeeper instructions including how to create a configuration file.

    • Create a file org.apache.cxf.dosgi.discovery.zookeeper.properties containing:

      zookeeper.host = 127.0.0.1
      

      and copy to pickup:

      [2012-04-04 14:29:51.385] fs-watcher                   <HD0001I> Hot deployer processing 'CREATED' event for file 'org.apache.cxf.dosgi.discovery.zookeeper.properties'. 
      [2012-04-04 14:29:51.417] fs-watcher                   <DE0000I> Installing configuration 'org.apache.cxf.dosgi.discovery.zookeeper' version '0.0.0'. 
      [2012-04-04 14:29:51.428] fs-watcher                   <DE0001I> Installed configuration 'org.apache.cxf.dosgi.discovery.zookeeper' version '0.0.0'. 
      [2012-04-04 14:29:51.434] fs-watcher                   <DE0004I> Starting configuration 'org.apache.cxf.dosgi.discovery.zookeeper' version '0.0.0'. 
      [2012-04-04 14:29:51.439] fs-watcher                   <DE0005I> Started configuration 'org.apache.cxf.dosgi.discovery.zookeeper' version '0.0.0'. 
      
    • Unzip another copy of Virgo kernel,copy the CXF bundle and org.apache.cxf.dosgi.discovery.zookeeper.properties into pickup, and start with a different JMX port:

      $ bin/startup.sh -jmxport 9876
      

      That’s it, but to check that it’s working, the remaining steps run the greeter sample…

    • Install/start the greeter interface and implementation bundles into the first Virgo instance. The simplest way is to copy the interface bundle to repository/usr and then copy the implementation bundle to pickup.

    • Install/start the greeter interface and client bundles into the second Virgo instance. The simplest way is to copy the interface bundle to repository/usr and then copy the client bundle to pickup.

    • When the “Invoke Remote Greeter Service” window appears, enter a string (e.g. “foo”) into the Name field and click “Invoke”.

    • The first Virgo instance shows the following trace log messages (in serviceability/logs/log.log):

      Invoking: greetMe(foo)
      
    • The second Virgo instance shows the following trace log messages:

      [2012-04-05 14:14:56.766] INFO  Thread-29                    System.out                                                        *** Invoking greeter *** 
      [2012-04-05 14:14:56.970] INFO  Thread-29                    System.out                                                        greetMe("foo") returns: 
      [2012-04-05 14:14:56.971] INFO  Thread-29                    System.out                                                          Hola foo 
      [2012-04-05 14:14:56.971] INFO  Thread-29                    System.out                                                          Bonjour foo 
      [2012-04-05 14:14:56.972] INFO  Thread-29                    System.out                                                          Hoi foo 
      [2012-04-05 14:14:56.972] INFO  Thread-29                    System.out                                                          Hello foo 
      [2012-04-05 14:14:56.972] INFO  Thread-29                    System.out                                                        *** Opening greeter client dialog *** 
      
    • Look in the service registry of the second Virgo instance.

      osgi> vsh:service examine 245
      
      Properties:
          endpoint.id:
              http://localhost:9090/greeter
          objectClass:
              org.apache.cxf.dosgi.samples.greeter.GreeterService
          service.id:
              245
          service.imported:
              true
          service.imported.configs:
              org.apache.cxf.ws
      
      Publisher: cxf-dosgi-ri-singlebundle-distribution 1.3.0 [84]
      
      Consumer(s):
          cxf-dosgi-ri-samples-greeter-client 1.2.0 [86]
      

      A remote GreeterService has been published in the service registry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone either point me to (or provide here) a clear, step-by-step approach that
Can anyone point me to a tutorial on the best way to open a
Can anyone point to libraries that can be used for Printing from Compact .Net
Can anyone point to some code that deals with the security of files access
Can anyone point me to the preferences page that has the setting of the
Can anyone point me to a really simple hello world type of application that
Can anyone point me to a good resource (or throw me a clue) to
Can anyone point me in the right direction on this. From reading the FAQs
Can anyone point me to a good introduction to coding against the paypal API?
Can anyone point me to a library for 2D game physics, etc for programming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.