Unit test with Spring Dynamic Modules

Follow our story about developing services by using Spring Dynamic Modules. We are developing our application and we have already migrated our application to support osgi. During migration, we have some problems with our test classes, we wanted to run our unit test in osgi environment (so we called integration test - integration test in osgi environment should be the better choice because we can check the class resolving among bundles besides of making sure all business rules are run properly). We already have a lot of unit tests written by JUnit 4 (which are based on Unitils and we already developed a bunch of test module such as Servlet Container, Ldap etc) and unfortunately they can not run in osgi environment. This post is our experience while we develop our integration test base on Spring DM testing framework, Read the rest of this entry…

Spring Dynamic Modules (for Osgi) - the good complement for Osgi

Spring Framework - the de factor standard IoC container of Java world promotes loose coupling among layers/components. Osgi - also be the de factor standard of module management platform promotes the module development, that helps application can manage the life cycle of services, dependencies of services with clear and ease. The combination of Spring and Osgi is the great combination and the
benefits they bring is greater than sum of benefits of each platform. Read the rest of this entry…

Osgi - good platform for SaaS model

If you are developing the software base on SaaS model and our application is written by Java, Osgi is the good platform for you. Osgi will help software vendor ease in managing, deploy services. Osgi is very suitable for SaaS model base on the features it provides:

  • Promote the component design and software design best practices: separating concerns among components, using interface as the contractor between two components. Hide implementation (via Private Packages) Read the rest of this entry…

Do we need an Application Server?

It is long time ago when I develop the enterprise web application on one true application server (it is Oracle Application Server). Several days ago, when my subordinate ask me “Why we do not develop our application on some application server like Jboss, Websphere etc but only Tomcat servlet container?’. I do not answer this question immediately but ask him “Why do we need an Application Server?’. Read the rest of this entry…

Jackbrabbit OCM and Spring

Content Repository API becomes more and more popular nowadays, however it is rather difficult in use because its takes time of learning and use. OCM (Object Content Mapping) module is the great tool to helps developers save a lot of time to develop the content-driven application and Spring is the great DI platform to hide most of complexity of initializing, creating and executing repository. We are developing the engroup ECM module base on Jackbrabbit OCM and Spring Module. During development, we look for help in many forums, websites but unfortunately we do not seek the full solution, we hope that this article provide the full example of using Jackbrabbit and Spring in the real application Read the rest of this entry…

Web Services Introduction

I have developed many applications use Web Service on both Java and .NET platforms. To learn how to develop the web service use .NET or Java could take 1 or 2 hours at much (you need to learn how to use tool generate and deploy the web services). Nowadays the web services frameworks support developers write a service very easily however time to learn deeply about the web service (XML, SOAP, WSDL and things to make service interoperability) takes much. Read the rest of this entry…

Tổng quan về mã nguồn mở - Phần 1

Hôm nay tình cờ xem một bài viết về mả nguồn mở trên vnexpress (http://vnexpress.net/GL/Vi-tinh/2008/05/3BA01C33/) cùng những tranh luận về việc sài phần mềm mã nguồn mở ở diễn đàn vnexpress. Cuộc tọa đàm sẽ chẳng di tới đâu cũng như người nghe chẳng rút ra được kết luận gì khi mà cách nhìn về mả nguồn mở, mả đóng hay các sản phẩn miễn phí không tòan diện và d0a số tập trung vào cuộc chiến Window-Linux, MS Office - Open Office cái nào đáng sài hơn. Bài viết này hi vọng sẽ cung cấp cho người đọc cách nhình tổng quan về mã mở, mả đóng để người đọc có thêm công cụ, cách nhìn và đánh giá hiệu quả sử dụng mả nguồn mở hay các sản phẩn miễn phí vào công việc của mình Read the rest of this entry…

Flex vs Silverlight: Which is win?

The battle between Flex and Silverlight happens at the time Microsoft release the first version of Silverlight. It reminds me the battle between Java and .NET before (and this battle never ends). Flex team already released Flex 3.0 recent days and Silverlight will be shipped in next weeks Read the rest of this entry…