On Mar 25, 2010, at 8:04 AM, Mohammad Nour El-Din wrote:

> Hi Jean...
> 
>   Please see my comments below.
> 
> On Thu, Mar 25, 2010 at 4:39 PM, Jean-Louis MONTEIRO
> <[email protected]> wrote:
>> 
>> Hey Mohammad,
>> 
>> IMHO, it could work without any changes using openejb-spring (aka.
>> bootstrapping OpenEJB in Spring).
>> But actually, i don't know how to use it without openejb-spring.
>> 
> 
>  I don't think we have to limit this to running OEJB in Spring. I was
> talking about using that type of datasource like anyother kind of
> datasource we define for a module.
> 
>> By the way, i have another question related to Spring. Is it possible to
>> start a spring application context and use spring beans in OpenEJB. I'd like
>> to start an application context using a kind of openejb service (with a set
>> of xml config files) and then use beans declared within OpenEJB (@resource,
>> ...).
>> 
>> comments?
> 
> Sorry I have no comment on that, but I think we can make a sort of an
> extension to OEJB's EJB modules so a Spring context can be initiated
> when a module is loaded, something like the way it happens with Spring
> WebApplicationContext. Or, we can do it the other way around, that is
> we extend Spring and define another type of Spring contexts which can
> be loaded and configured inside an EJB module. Or, we can define an
> OEJB spring resource thing, so someone can define a resource of type
> Spring conext and then it is given a JNDI name which can be looked up
> or injected later in any of the EJB(s). . wdyt ?

There's already a framework that pretty much does this.... osgi + blueprint + 
osgi-jndi.  (not sure about the injection part, but that should be pretty easy 
to implement since osgi services are accessible through jndi).  So I'd 
concentrate on getting openejb to run in karaf with aries blueprint and jndi 
integrations.

thanks
david jencks

> 
>> 
>> Jean-Louis
>> 
>> 
>> 
>> 
>> Mohammad Nour El-Din wrote:
>>> 
>>> Hi Jean...
>>> 
>>>    Seems very interesting, I skimmed over the blog. But I am
>>> wondering, can't we use this feature as it is in OpenEJB instead of
>>> re-implementing it, and then we can create some user documentation on
>>> how to do so. wdyt ?
>>> 
>>> On Thu, Mar 25, 2010 at 12:52 PM, Jean-Louis MONTEIRO
>>> <[email protected]> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> Some month ago, i used a Spring feature called DynamicRoutingDatasource
>>>> in
>>>> order to split data on database servers.
>>>> 
>>>> Here is a short description
>>>> http://blog.springsource.com/2007/01/23/dynamic-datasource-routing/
>>>> http://blog.springsource.com/2007/01/23/dynamic-datasource-routing/ .
>>>> 
>>>> I will need to implement such a feature in OpenEJB for my company.
>>>> So, i wonder if we could make that feature available in the Apache
>>>> OpenEJB
>>>> distribution.
>>>> 
>>>> Feedback is welcome.
>>>> 
>>>> Jean-Louis
>>>> --
>>>> View this message in context:
>>>> http://n4.nabble.com/Dynamic-Routing-Datasource-Wrapper-tp1690435p1690435.html
>>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Thanks
>>> - Mohammad Nour
>>> - LinkedIn: http://www.linkedin.com/in/mnour
>>> ----
>>> "Life is like riding a bicycle. To keep your balance you must keep moving"
>>> - Albert Einstein
>>> 
>>> "Writing clean code is what you must do in order to call yourself a
>>> professional. There is no reasonable excuse for doing anything less
>>> than your best."
>>> - Clean Code: A Handbook of Agile Software Craftsmanship
>>> 
>>> 
>> 
>> --
>> View this message in context: 
>> http://n4.nabble.com/Dynamic-Routing-Datasource-Wrapper-tp1690435p1690746.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>> 
> 
> 
> 
> -- 
> Thanks
> - Mohammad Nour
> - LinkedIn: http://www.linkedin.com/in/mnour
> ----
> "Life is like riding a bicycle. To keep your balance you must keep moving"
> - Albert Einstein
> 
> "Writing clean code is what you must do in order to call yourself a
> professional. There is no reasonable excuse for doing anything less
> than your best."
> - Clean Code: A Handbook of Agile Software Craftsmanship

Reply via email to