"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...