OSGi Usage in iDempiere

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

OSGi Usage in iDempiere

Postby kenlongnan » Wed Jun 15, 2011 4:53 pm

I am reading the book 'osgi and equinox', find the following content it is worth to share with you.
Broadly speaking, there are three configurations for using OSGi on a server:

Native— One or more OSGi frameworks are run on a server machine. The frameworks interact with one another using remote messaging and mechanisms such as OSGi Remote Services and the Eclipse Communications Framework (ECF), HTTP, web applications, and other conventional server-side technologies.

Solo— One or more OSGi frameworks are run and include HTTP service implementations such as Jetty. As shown in Figure 19-1, server function is exposed as servlets and JSPs and supplied by bundles hooked together by the HTTP service running directly on an OSGi framework. This is the configuration we have been using in Toast.

Bridged— In the Bridged approach, the coding and exposure model is the same as in Solo, but here the OSGi framework is embedded into a web application and run inside a traditional web application server such as Tomcat or WebSphere. This is shown in Figure 19-2.


From my understanding, iDempiere is adopting OSGi by 'Solo' style, embedded Eclipse gemini OSGi web service, am I right?

What I like to do is making iDempiere can be running inside a traditional web application (Bridged type, within Glassfish or Tomcat), it is more mature I believe, but how to make such WAR package?

Thanks & BR,

Ken
kenlongnan
 
Posts: 13
Joined: Fri Jun 10, 2011 9:24 pm

Re: OSGi Usage in iDempiere

Postby hengsin » Mon Jun 20, 2011 2:03 pm

Hi Ken,

Yes, it is similar to the Solo style and it is using tomcat.

A bridge mode basically means you embed the whole OSGi runtime within your web application, i.e it is just a normal war file with the only difference that your war contains the whole OSGi runtime in it ( http://www.eclipse.org/equinox/server/h ... tainer.php ).

Out of the box, iDempiere can't run in bridge mode as it is configure to run as standalone OSGi applications. It is doable but you would have to make some changes ( mostly configuration changes and probably some minor code changes too ). Unless you have a strong reason to do so, this is not recommended. If you go this way, you would be on your own as we wouldn't test our code with such configuration. Will complicate your future incorporation of any upgrade or patches from iDempiere too.

Regards,
Low
hengsin
 
Posts: 37
Joined: Tue May 10, 2011 3:11 pm

Re: OSGi Usage in iDempiere

Postby kenlongnan » Mon Jun 20, 2011 9:57 pm

OK, understand.

But so we will lost some enterprise feature which already support very well in traditional application server, like 'Cluster', 'Caching' or 'Load Balance'. Anybody have idea how to still keeping those features but running in an pure Eclipse OSGi container?

Thanks!

Ken
kenlongnan
 
Posts: 13
Joined: Fri Jun 10, 2011 9:24 pm

Re: OSGi Usage in iDempiere

Postby hengsin » Mon Jun 20, 2011 10:32 pm

Hi Ken,

Cluster and load balance is supported by the tomcat bundle that iDempiere used ( For load balance, it is also simple to run multiple instance of iDempiere and use Apache or hardware load balancer to distribute the load ).

By caching, which enterprise caching module that you means here ?

Regards,
Low
hengsin
 
Posts: 37
Joined: Tue May 10, 2011 3:11 pm

Re: OSGi Usage in iDempiere

Postby kenlongnan » Mon Jun 20, 2011 11:21 pm

Wow! I never know this.

So you mean the tomcat bundle in OSGi can work as same as standalone one? I think this would be a good news for the people who want to using iDempiere in production.

For 'Caching', I means Terracotta.

Thanks Low,

Ken
kenlongnan
 
Posts: 13
Joined: Fri Jun 10, 2011 9:24 pm


Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 5 guests