The issue was discovered in http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136295#4136295
The problem is that when the schema that contains xsd:redefine is parsed and when the redefine is resolved, the arguments passed to the JBossEntityResolver.resolve(publicId, systemId) are:
- publicId is the namespace of the schema that contains xsd:redefine
- systemId is the schemaLocation attribute of the xsd:redefine
In some cases (i.e. if the namespace of the redefining schema is mapped to its schema location in the JBossEntityResolver and both schemas are in the classpath) this results in StackOverflowError since the JBossEntityResolver is looking at the publicId first during resolveEntity.
I want to change this to check if the publicId is registered and if the registered schemaLocation is different from the systemId argument then try resolving the systemId argument first.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136646#4136646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136646
A first hurdle.
How to get past this usage in PropertyDispatchWrapper (kernel module):
| PropertyInfo propertyInfo = BeanInfoUtil.getPropertyInfo(beanInfo, target, name);
| ValueMetaData valueMetaData = property.getValue();
| Object value = valueMetaData.getValue(propertyInfo.getType(), cl);
| beanInfo.setProperty(target, name, value);
|
Since I need the expected type of the value in order to convert it to the right type, e.g. string --> Date.
But what if my bean is in FIELD or ALL mode, and there is no such property?
Anything that comes to my mind in api extension to get the type by name from BeanInfo feels wrong. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136640#4136640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136640
"alesj" wrote : "adrian(a)jboss.org" wrote :
| | btw: What's the mechanism?
| | I'll just put 'Managed* api' for now.
|
| For now, just leave the type mechanism in the code, but deprecate it
| and get scott to update the warning once he has done the work in the profile service
| to make it work. We can then remove the code but NOT the method signature
| until we know everybody has made the switch.
|
|
| | log.warn("Types should be set using <Scott to provide mechansim/> for " + this);
| |
|
| :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136639#4136639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136639
"alesj" wrote :
| A fair warning: all AS5 deployers that define type should get that removed from xml, since setType is not longer there ;-)
|
Fair warning is a message to the dev-list with a title that has block capitals
and an explanation of what people need to do to get the correct behaviour.
In this case, the change to managed object should have gone into jbossas first
before we removed this from the deployers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136625#4136625
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136625
"scott.stark(a)jboss.org" wrote : So what is the benefit to BeanFactory over an instance factory on the bean ctor metadata?
I wouldn't describe it as a benefit, its a different semantic.
Factory construction is just an alternate way to construct a singleton
| <bean>
| <constructor factroyClass="x.y.z.A" factoryMethod="create"/>
|
A bean factory creates an object that implements BeanFactory
on which you can call create() to create as many instances as you like:
| <beanfactory name="MyFactory">
| ...
|
| public class MyClass
| {
| @Inject("MyFactory")
| public void setFactory(BeanFactory factory) {}
|
| public void doStuff()
| {
| Object one = factory.create();
| Object two = factory.create();
| }
| }
|
The main usecase of beanfactory so far has been to do dependency injection
into aop's advices.
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/microcontaine...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136619#4136619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136619
You should be able to do this by writing a custom MessageComposer (org.jboss.soa.esb.listeners.message.MessageComposer). e.g. a "FileInputStreamMessageComposer" that simply opens the file InputStream on the compose() call, attaches the stream as the message payload for processing by the action pipeline, and closes the InputStream on the decompose() call.
We'd be happy to receive this back as a contribution :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136599#4136599
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136599