[Design of JBoss Serialization] - Re: Mustang Serialization problems.
by clebert.suconic@jboss.com
This has to do the way JBossRemoting is solving classLoader operations.
I believe JBossRemoting is aways doing loader.loadClass, and on JVM 1.6 it's supposed to aways do a Class.forName(..,...,classLoader).
So.. it is some inconsistent change documented on compatibility issues on the JVM 1.6. We will have to change some code to work on JVM 1.6.
As for the serialization type... on UnifiedInvoker you can add the parameter type to serialization
parameter type="serialization" value="jboss"
Take a look on Remoting documentation for the exact parameter name (I have such a bad memory :-)... and look for your UnifiedInvoker configuration. For EJB3 I believe is under ejb3.deployer directory. (If it wasn't changed recenlty)
If you can't find I can do a quick research for you. Let me know on that case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964984#3964984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964984
19 years, 7 months
[Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection
by adrian@jboss.org
"alesj" wrote :
| I must probably put in a 'demand' of my property's class ... and for each context instantiation I supply all implementings classes?
|
| But what if there actually are more then one such matching bean - I would probably get the one that is first instantiated injected, discarting the fact that more matching bean can occur.
| anonymous wrote :
| |
| | In general that is an unsolvable problem with hot deployment.
| |
| | You can solve it to the "first order" by requiring that any bean
| | with a contextual injection waits for those without to be deployed.
| |
| | But then those beans with contextual injections may
| | introduce extra matches, i.e. "second order".
| |
| | Try to solve the "second order" problem like the first leads
| | to "third order" problems.
| |
| | The best you can do (in general) is remember that a
| | contextual injection was done and if another candidate
| | appears after the fact then issue a warning.
| |
| | anonymous wrote :
| | | What about @Inject meta data?
| | | Where to do the inspection and add dependency items?
| | |
| |
| | AbstractKernelController.preprocessMetaData()
| | is where this gets done (assuming you are talking about annotations).
| | However when we do classloading dependencies, some of this
| | will have to move to the DescribeAction such that we know
| | the class exists.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964972#3964972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964972
19 years, 7 months