openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Ward (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1524) ManagedRuntime does not work for OSGi
Date Fri, 19 Feb 2010 17:18:27 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835831#action_12835831
] 

Timothy Ward commented on OPENJPA-1524:
---------------------------------------

One implementation suggestion would be to use a ServiceTracker to keep track of the JTA services.
This would allow for lazy lookup and also provide a notification if the service is unregistered.

This should then be possible to implement as a relatively simple subclass of RegistryManagedRuntime
that overrides getTransactionManager(). I don't know if you have a nice mechanism to pass
a BundleContext yet, but I don't think that should pose a significant problem.

> ManagedRuntime does not work for OSGi
> -------------------------------------
>
>                 Key: OPENJPA-1524
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1524
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 2.0.0-beta
>            Reporter: Timothy Ward
>
> In an OSGi runtime there is no TransactionManager registered in JNDI
> It is possible to use an osgi:services/ lookup, but it is much safer, and better practice
to look up the resource in the OSGi service registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message