On 16 September 2010 11:31, Harald Wellmann <[email protected]> wrote:
>
> Another question: how does the Persistence Provider discover the data source 
> - where does the magic happen so that the lookup of 
> <jta-data-source>osgi:service:/javax.sql.DataSource</jta-data-source> will 
> work? Is that done by Aries alone, or does the persistence provider need to 
> be OSGi aware in this respect?
>

The osgi:service/javax.sql.DataSource (your example had an extra : I
removed), is a JNDI lookup into the service registry. Aries does not
have any code for creating DataSources, but the blog and aries trader
sample use blueprint to cause a derby datasource to be defined and
registered, I suspect you can use DS or anything to get one
registered. You then need the aries JNDI sub project which makes this
all work.

> Thanks in advance for any hints!
>
> Best regards,
> Harald
>



-- 
Alasdair Nottingham
[email protected]

Reply via email to