[
https://issues.jboss.org/browse/AS7-1426?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-1426 at 7/28/11 11:08 AM:
---------------------------------------------------------------
This works and is ready for review
https://github.com/tdiesler/jboss-as/commit/8750bfc6
{code}
@Stateless
@LocalBean
public class SimpleStatelessSessionBean implements Echo {
@Resource(lookup = "java:global/osgi/BundleContext")
private BundleContext context;
{code}
was (Author: thomas.diesler):
This works and is ready for review
https://github.com/tdiesler/jboss-as/commit/8750bf
{code}
@Stateless
@LocalBean
public class SimpleStatelessSessionBean implements Echo {
@Resource(lookup = "java:global/osgi/BundleContext")
private BundleContext context;
{code}
Provide injectable BundleContext in JNDI
----------------------------------------
Key: AS7-1426
URL:
https://issues.jboss.org/browse/AS7-1426
Project: Application Server 7
Issue Type: Feature Request
Components: OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.1.0.Alpha1
The system BundleContext should be available as injectable resource
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira