Home
Dynamic-RS - Run REST Services Dynamically in the OSGi Environment
Written by Valery Abu-Eid   
Tuesday, 15 December 2009 17:02

I'm glad to announce Dynamic-RS to our readers. Dynamic-RS is the first published effort that allows developers to use REST services dynamically in the OSGi environment. Dynamic-RS allows you to install, update and uninstall JAX-RS REST services at runtime without having to restart the application. Dynamic-RS is robust and was tested against different runtime update scenarios.

With Dynamic-RS being released, I believe that now developers have, for the first time, the opportunity to easily run all of the main JEE technologies (Web Services, JMS, REST Services and JPA) dynamically in the OSGi environment without having to bother much with technical challenges.

 
Dynamic-JMS - Run JMS Applications Dynamically in the OSGi Environment
Written by Valery Abu-Eid   
Friday, 23 October 2009 17:59

I'm quite happy to announce Dynamic-JMS to our readers. Dynamic-JMS is the first published effort that allows developers to use JMS dynamically in the OSGi environment. The task was quite complicated, but relatively small, which in turn made a solution possible after all. Now you can update Connection Settings, Upgrade Broker client or simply switch Messaging Brokers while the application is running, the listeners still listening and sessions stay valid - Well, every thing you deserve to have in a dynamic environment like OSGi.

Make sure to check the project, and try to use it if it doesn't make sense to you restarting the whole application for the sake of changing a connection string. And please, let us know what you think, or simply contribute some code that makes it even a better experience to use JMS dynamically in the OSGi environment.

P.S. Having implemented the first concept for running Java Web Services dynamically in the OSGi environment (Dynamic-WS), the first project that simplifies the dynamic use of JPA components in the OSGi environment (Dynamic-JPA), and now the first concept for running JMS components in the OSGi environment (Dynamic-JMS), you can bet that soon enough the first concept for running REST services dynamically in the OSGi environment will become available, so stay tuned!

 
Logging OSGi Applications - The Simple and Robust way
Written by Valery Abu-Eid   
Tuesday, 23 June 2009 22:14

Observing different approaches for logging OSGi-based applications for few months, I came across different articles on the topic. Although they explain how to use the OSGi Log Service pretty well, all in all, I consider the general approach for logging OSGi-based applications using OSGi Log Service is too complex. The complexity is driven by the fact that OSGi is a dynamic environment, and OSGi Log Service, like any other service, could become available or unavailable at runtime. Sure, these concerns need to be addressed, but my point here is that this should not be the responsibility of the developer.

The rest of this article explains what do you need to know about logging in OSGi and how you can use the OSGi Log service properly without adding any complexity to your code at all. Working on tens of OSGi-based applications I kept evolving my approach, so it's important to mention that the approach presented here is not only simple, but also has proved to work in different situations (even in cases where Log Service API packages are installed later than the bundles which consume them).

Read more...
 
Testing OSGi-based Applications with DA-Testing Framework
Written by Valery Abu-Eid   
Tuesday, 31 March 2009 22:07

If you use OSGi in order to make your application dynamic, then your tests should test the dynamicity aspect of your application, otherwise how would you know whether your application behaves dynamically or not? how would you be sure that clients use the service with highest rank when such is registered? that bundle updates wouldn't break the application? or that any other risks you have when working on dynamic OSGi-based applications are tested and verified properly? Surely, you wouldn't want to verify this behavior in production systems or manually. Agreeing on the importance of dynamicity tests, we will move to the next issue that developers of dynamic OSGi-based applications have, how to test dynamicity?

Read more...
 
A Maven Repository for DynamicJava.org is now available!
Written by Valery Abu-Eid   
Wednesday, 18 March 2009 18:08

I'm glad to announce that DynamicJava.org finally has a maven repository where the artifacts of our projects are hosted. So far, I was able to place there only the latest releases of DynamicJava.org projects, but with time other popular OSGi-related projects and core OSGi artifacts will be placed to make it easier for developers (I'm one of them, by the way) who spend much time looking for un-hosted important OSGi-related Maven artifacts. Also, if you have an OSGi-related Maven artifact, you are welcomed to host it here. The URL of the repository is http://maven.dynamicjava.org/ - Can't have enough of looking at this URL :) looks beautiful and simple to remind, wish the URLs of all maven repositories look the same.

It's worth to mention that I used Nexus, which is an open source Maven Repository Manager. The user interface is simple yet powerful and the application had scripts which could install and run it on 9 operating systems (excellent feature for a Linux dummy like myself). Kudos for the guys who developed it, it would have been great even if only 10% of the projects in Java space were as simple and accurate as this one.

 
<< Start < Prev 1 2 3 4 5 Next > End >>

Page 1 of 5

Project Updates

  • Dynamic-RS 1.0.0 - 12/15
  • Dynamic-JMS 1.0.0 - 10/23
  • Dynamic-WS 1.1.0 - 09/10
  • DA-Launcher 1.1.3 - 09/10
  • Bundler - 1.0.2 - 09/10

Latest Articles

  • Logging OSGi Applications - The Simlpe and Robust way. Read. 06/24
  • Testing OSGi-based Applications with DA-Testing. Read. 04/01
  • Esper-OSGi Integration. Read. 03/11
  • Tackling OSGi Package Wiring Conflicts. Read. 01/13
  • Consuming objects created in the OSGi Environment from a non-osgi application. Read. 12/02