|
Re: [CDO] Standalone Java Client - Help! [message #1769218 is a reply to message #1769191] |
Thu, 27 July 2017 23:42 |
Pavel Vlasov Messages: 23 Registered: December 2015 |
Junior Member |
|
|
Hello,
Please clarify what you mean by "Eclipse container" - Eclipse IDE or Equinox?
If it is the first, i.e. you don't want any GUI, but want to run you app from the command line, or as a service, then you should build an Eclipse GUI-less product. There is a number of tutorials here - http://www.vogella.com/tutorials/ - although they are mostly about GUI apps.
You can use Maven/Tycho for automated builds, this tutorial will help you with setting it up - http://www.vogella.com/tutorials/EclipseTycho/article.html
This online book explains how to build an Equinox/OSGi (Web) server application - http://server-side-java-development-for-innovators.books.nasdanika.org. The book is work in progress, but it already contains information on how to set up and build an Equinox/OSGi server application. The source code for the project explained in the book is here - https://github.com/Nasdanika/bank.
If you don't need a server, but an application which starts, performs some operation and exits, then implement IApplication (https://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fequinox%2Fapp%2FIApplication.html). Example:
- Code - https://github.com/Nasdanika/bank/blob/49627c5c263fe7464203110ecb89d7a724a4bc64/org.nasdanika.bank.tests/src/org/nasdanika/bank/tests/NasdanikaBankTestRunner.java,
- Product defiinition - https://github.com/Nasdanika/bank/blob/49627c5c263fe7464203110ecb89d7a724a4bc64/org.nasdanika.bank.repository/org.nasdanika.bank.tests.product.
If, on the other hand, you don't want to use Equinox, then I'm not sure if it is possible at all - CDO is built on top of OSGi. I've been down this path for EMF long time ago and managing dependencies becomes a huge problem pretty soon with a big question - why to go to all this trouble if OSGi/Tycho can do it for you?
I hope it helps.
---
Best regards, Pavel.
[Updated on: Fri, 28 July 2017 01:19] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03155 seconds