Hi all,
I am new to Java and also EJB. I have the following question which may look simple for you, but is complex for me.
Here are my questions:
1. What is JVM container? Can I say that one application server is running on one JVM container?
2. I have read an EJB3 book, it did mention the following statement.
"By remote, we mean a client that does not reside in the same Java Virtual Machine (JVM) as the container."
How do we know the code is reside in the same JVM container?
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212881#4212881
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212881
"jaikiran" wrote :
| Maybe MC already has something to achieve this and i am not finding the correct API?
BeanMetaDataBuilder::createContextualInject is the closest you can get.
But your example is different.
Current contextual injection would still need the property name,
it just wouldn't care about what exact bean maps to that property,
it would be determined via type matching.
In your case you would have to "examine" the bean/class,
to find the actual property/field name,
as I don't see how else MC's IoC could know where to inject the matching bean.
But this is "weird" custom behavior. :-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212855#4212855
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212855