Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

16. OSGi and Groovy > 16.6. Installation and Execution

16.6. Installation and Execution

Recall that our Groovy implementation of the loan calculation imported the Groovy API. Therefore, we have to install the Groovy API bundle:

install file:<path to bundle>/groovy-all-1.7.6.jar

Now, install the Groovy loan calculator implementation by executing this command:

install file:../../groovy/bin/calc-impl-groovy-1.0.jar

Start the Groovy calculator by executing this command:

start <bundle-id>

Next, we should stop the Java and Scala implementation of the loan calculation using the following command with the bundle-id of the Java calc-impl-1.0.jar and Scala calc-impl-scala-1.0.jar implementations:

stop <bundle-id>

Now, start the dclient-1.0.jar bundle by using the following command. This should calculate the loan using the Groovy calculator:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint