Many thanks As I can see, we need to use :
1) ZipFixture To create the EBA file from a bundle jar Remark : I hope that a maven plugin will be available soon to make this job ! 2) ApplicationManager To deploy the EBA file on OSGI server (Felix, Equinox, ...) Next step will be to add a gogo command in Apache Felix Karaf to install/update or uninstall EBA files Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm On Tue, Jan 19, 2010 at 5:27 PM, mark <[email protected]> wrote: > > How can we test deployment of EBA file ? > > We can deploy .eba files as of yesterday. See for example > > trunk/application/application-itests/src/test/java/BasicAppManagerTest.java. > > > Regards, > > Mark > > 2010/1/19 Joe Bohn <[email protected]> > > > Charles Moulliard wrote: > > > >> Interesting example that I'm testing. > >> > >> There is a missing dependency in pom of assembly project : > >> > >> > >> <dependency> > >> <groupId>org.apache.derby</groupId> > >> <artifactId>derbytools</artifactId> > >> <version>10.5.3.0_1</version> > >> </dependency> > >> > >> Otherwise, the following command does not work in > >> > >> - cd ariestrader-sample/assemblies/ > >>> > >>> ariestrader-jdbc-equinox/target > >>> > >>>> - java org.apache.derby.tools.ij tradeDB.sql > >>>> > >>> > > I'll have to look into this. I didn't need that dependency. > > > > > > > >> > >> Question : How can we test deployment of EBA file ? > >> > > > > I don't think we can test this yet. I added that in anticipation of the > > work on the application model. A bit premature - but it was easy to add. > > > > > > > >> Regards, > >> > >> Charles Moulliard > >> Senior Enterprise Architect > >> Apache Camel Committer > >> > >> ***************************** > >> blog : http://cmoulliard.blogspot.com > >> twitter : http://twitter.com/cmoulliard > >> Linkedlin : http://www.linkedin.com/in/charlesmoulliard > >> > >> Apache Camel Group : > >> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm > >> > >> > >> On Tue, Jan 19, 2010 at 4:17 PM, David Bosschaert < > >> [email protected]> wrote: > >> > >> Excellent work! > >>> I'm really looking forward to the JPA support and the 'official' > >>> documentation (although I had no problems getting it to work with the > >>> steps described below). > >>> > >>> Best regards, > >>> > >>> David > >>> > >>> 2010/1/19 Joe Bohn <[email protected]>: > >>> > >>>> I recently added a version of the Geronimo DayTrader sample (now > called > >>>> AriesTrader) into the Aries code stream under > trunk/ariestrader-sample. > >>>> > >>> It > >>> > >>>> is a reorganized version of DayTrader that leverages the Aries > >>>> > >>> programming > >>> > >>>> model (currently using a web application bundle, blueprint and jndi > >>>> > >>> modules) > >>> > >>>> with JDBC persistence using Derby. I also have an extension that adds > >>>> > >>> JPA > >>> > >>>> persistence which I can include as that support becomes available. I > >>>> > >>> plan > >>> > >>>> to add some documentation on the structure of the code and solicit > >>>> > >>> feedback > >>> > >>>> so that we can validate that it appropriately demonstrates the Apache > >>>> > >>> Aries > >>> > >>>> programming model. > >>>> > >>>> The sample has been around for a while and mocks up a stock trading > >>>> application. It has been used in the past to provide performance > runs. > >>>> Included are typical functions for creating and managing accounts > that > >>>> > >>> buy > >>> > >>>> and sell stock. There are also primitive functions for running some > >>>> scenarios not directly related to the primary trade functionality. > >>>> > >>>> The sample is mostly functional. There are just 2 primitives that I > >>>> know > >>>> have some issues and there are still some graphics that I have to > figure > >>>> > >>> out > >>> > >>>> how to update that mention DayTrader and Geronimo rather than the > >>>> AriesTrader and Aries. > >>>> > >>>> I've included an equinox assembly (modeled after that provided by the > >>>> > >>> blog > >>> > >>>> sample) that can be used to run AriesTrader which uses the PAX Web > >>>> implementation. I'll work on creating some tutorials and > documentation > >>>> > >>> but > >>> > >>>> here are some initial directions to get it running: > >>>> > >>>> > >>>> - Install and configure embedded Derby, see here for instructions: > >>>> > http://db.apache.org/derby/papers/DerbyTut/install_software.html#derby > >>>> > >>>> - Checkout and build trunk/ariestrader-sample > >>>> > >>>> - cd ariestrader-sample/assemblies/ariestrader-jdbc-equinox/target > >>>> > >>>> - java org.apache.derby.tools.ij tradeDB.sql > >>>> > >>>> - java -jar osgi-3.5.0.v20090520.jar -console > >>>> > >>>> - Point your web browser at > >>>> > >>>> > >>> > http://localhost:8080/org.apache.aries.ariestrader.modules.ariestrader-web > >>> > >>>> - select the "Configuration" tab and the "(Re)-populate AriesTrader > >>>> Database" to seed the database with a default set of users and stock > >>>> > >>> quotes > >>> > >>>> - select the "Trading & Portfolios" tab to use the mock trade > >>>> application > >>>> > >>> or > >>> > >>>> the "Primitives" tab to run some of the web primitive tests (PingJSPEL > >>>> > >>> and > >>> > >>>> PingServlet2JNDI are not currently working). You can also run the > "Test > >>>> AriesTrader Scenario" from the "Configuration" tab which will launch a > >>>> > >>> new > >>> > >>>> browser window and step through a trading scenario with each reload of > >>>> > >>> the > >>> > >>>> page. > >>>> > >>>> > >>>> -- > >>>> Joe > >>>> > >>>> > >> > > > > -- > > Joe > > >
