[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: expressing dependent states
adrian@jboss.org
do-not-reply at jboss.com
Wed May 21 11:12:59 EDT 2008
"jhalliday" wrote : Injecting it to the create would be fine and will actually save me a JNDI lookup, but ORBService is not a bean it's a JMX MBean. Is injection of those supported?
Yes, it injects the mbean instance. It's equivalent to what we used to do
when we used the getInstance() attribute of an MBean
then do something like:
| public MyMBean getInstance()
| {
| return this;
| }
|
If you're just after the ORB, then you can do something like:
| <create>
| <parameter><inject bean="ORBService" property="ORB"/></parameter>
| </create>
|
or even just inject it as a property on your bean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152382#4152382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152382
More information about the jboss-dev-forums
mailing list