[Design of JBossXB] - Re: Attributes problem
by adrian@jboss.org
"adrian(a)jboss.org" wrote :
| From a bit of debugging, I can see that the problem is caused by the handler
| being a BuilderParticleHandler, but I fail to see where in the builder we set this on
| on a typeBinding with the exception of JBossXmlChild handlers which isn't in play here?
|
It is this place but for a different reason.
The issue is that it is an @JBossXmlGroupText
| @JBossXmlGroupText(wrapper=StringValueMetaData.class, property="value")
|
This correctly wraps the value (CDATA) in the StringValueMetaData but it doesn't
process the attributes because it uses a BuilderParticleHandler (BPH)
setup just before. Unlike the @JBossXMLClient there are no subelements for this case.
The thing I don't understand though is how to fix it? :-)
When I looked at when the attributes are passed to the BPH
the only information I have is that the parent is a MapEntry.
I'm obviously missing something or we are not setting up the parsing model
correctly for this case?
What it needs to do is process the attributes against the object returned by
the ValueHandler, i.e. the wrapped value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134484#4134484
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134484
18 years, 1 month
[Design of POJO Server] - JBAS-5259, JMS Destination Names is showing as QueueServiceM
by scott.stark@jboss.org
I don't see this problem in the JmsDestinationUnitTestCase which was updated to validate that the retrieved ManagedComponent.getName() value matches the jndiName property used to create the destination:
| public void testCreateQueue() throws Exception
| {
| Map<String, Serializable> propValues = new HashMap<String, Serializable>();
| String jndiName = getName();
| propValues.put("JNDIName", jndiName);
| ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
| createComponentTest("QueueTemplate", propValues, getName(),
| type, jndiName);
| ManagedComponent queue = activeView.getComponent("testCreateQueue", type);
| assertNotNull(queue);
| assertEquals("testCreateQueue", queue.getName());
| }
|
Is there something I'm missing to produce the bad name?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134470#4134470
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134470
18 years, 1 month