[Design of JBoss ESB] - Re: COM Gateway
by DirkBangel
Hi Mark, Hi Kurt
After an "long" evaluation phase we now came to some more detailed questions. As proposed in the ESB developers guide we
intended to use the JBOSS_XML message type. Therefore we pass our message content into the esb message body.
Does this match with your expiriences or should we better use an own MessagePlugin to fully implement our own message
layout?
If you propose the JBOSS_XML message type, we have to provide a implementation of the MarshalUnmarshalPlugin for
serializing and deserializing our Java instances in a XML representation. If so,
is there an general way of registering our plugin to the esb container (providers section of the deployment descriptor?)
or do we have to put a jbossesb-property.xml into each deployment (.esb)?
Last but not least, if we choose the JBOSS_XML representation and if we serialize our content into XML, which is the
more or less human readable, is the XML representation encrypted on the wire - encrypted while transportation over the
esb? Can we enable an automatic encryption for messages trough the esb? We ask because we currently have a stateless
listener and we pass all "of our session information", including credentials, into the messages. The messages are passed
around the client(caller) and our esb listener.
A first roughly summarized "structural design" document can be found (all IP protected stuff is dropped out) at http://jbossesb.javainteroperability.com/ext/structuraldesign.pdf. We are happy to recieve all comments.
Thanks for your replies,
Best regards
Dirk
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135764#4135764
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135764
18 years
[Design of AOP on JBoss (Aspects/JBoss)] - Re: Implementing JAXB style parsing for aop-mc-int
by kabir.khan@jboss.com
The input to
org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:259)
is:
nsURI "urn:jboss:aop-beans:1.0"
baseURI null
schemaLocation "jboss-beans-common_2_0.xsd"
If I modify the xsd:refefine to
| <xsd:redefine schemaLocation="jboss-beans-common_2_0.xsd">
| <xsd:simpleType name="classNameType"/>
| </xsd:redefine>
|
This input becomes:
nsURI "urn:jboss:aop-beans:1.0"
baseURI null
schemaLocation "jboss-beans-common_2_0.xsd"
It makes no difference, the call to resolveEntity() always seems to use the nsURI, which is always urn:jboss:aop-beans:1.0, and so always returns aop-beans_1_0.xsd.
I have turned on trace logging:
| 0 DEBUG [AspectSimpleAopTestCase] ==== setUp org.jboss.test.microcontainer.beans.test.AspectSimpleAopTestCase ====
| XXXX turn off enabling trace!!!!
| 15 DEBUG [KernelFactory] Starting JBoss Kernel construction...
| 468 DEBUG [KernelFactory] Completed JBoss Kernel construction. Duration: 437 milliseconds
| 547 TRACE [SingletonSchemaResolverFactory] Mapped initializer 'urn:jboss:aop-beans:1.0' to 'org.jboss.aop.microcontainer.beans.xml.AOPBeansS
| chemaInitializer'
| 547 TRACE [SingletonSchemaResolverFactory] Parse annotations 'urn:jboss:aop-beans:1.0' set to 'false'
| 547 TRACE [SingletonSchemaResolverFactory] Ignored:
| 593 TRACE [SingletonSchemaResolverFactory] Mapped 'urn:jboss:bean-deployer' to 'org.jboss.kernel.plugins.deployment.AbstractKernelDeployment
| 10'
| 593 TRACE [SingletonSchemaResolverFactory] Mapped 'urn:jboss:bean-deployer:2.0' to 'org.jboss.kernel.plugins.deployment.AbstractKernelDeploy
| ment'
| 609 TRACE [SingletonSchemaResolverFactory] Mapped 'urn:jboss:javabean:1.0' to 'org.jboss.javabean.plugins.jaxb.JavaBean10'
| 609 TRACE [SingletonSchemaResolverFactory] Mapped 'urn:jboss:javabean:2.0' to 'org.jboss.javabean.plugins.jaxb.JavaBean20'
| 625 TRACE [SingletonSchemaResolverFactory] Mapped 'urn:jboss:policy:1.0' to 'org.jboss.beans.metadata.plugins.policy.AbstractPolicyMetaData'
| 640 DEBUG [AspectSimpleAopTestCase] No test specific deployment org/jboss/test/microcontainer/beans/test/AspectSimpleAopTestCase-aop.xml
| 640 DEBUG [AspectSimpleAopTestCase] Deploying file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/target/tests-classes/org/jb
| oss/test/microcontainer/beans/test/AspectSimpleAopTestCase.xml
| 859 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@4a63d8, isNamespaceAware: true, isValidating: true, isXInc
| ludeAware: true
| 875 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
| 875 DEBUG [SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
| 875 DEBUG [SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
| 906 DEBUG [SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@4a63d8, isNamespaceAware: true, isValidating: true, isXInc
| ludeAware: true
| 953 TRACE [DefaultSchemaResolver] Mapped schemaLocation to filename: deployment
| 953 TRACE [DefaultSchemaResolver] found bindingClass, nsURI=urn:jboss:bean-deployer:2.0, baseURI=null, schemaLocation=deployment, class=clas
| s org.jboss.kernel.plugins.deployment.AbstractKernelDeployment
| 1656 TRACE [DefaultSchemaResolver] resolved schema: org.jboss.xb.binding.sunday.unmarshalling.SchemaBinding@1b60280
| 1656 TRACE [SundayContentHandler] pushed {urn:jboss:bean-deployer:2.0}deployment=org.jboss.xb.spi.DefaultBeanAdapter@15093f1, binding=org.jb
| oss.xb.binding.sunday.unmarshalling.ElementBinding@120bf2c({urn:jboss:bean-deployer:2.0}deployment, type={urn:jboss:bean-deployer:2.0}deploy
| mentType)
| 1687 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}bean in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@e6f
| 7d2, 9: sequence {urn:jboss:bean-deployer:2.0}classloader sequence {urn:jboss:bean-deployer:2.0}create {urn:jboss:bean-deployer:2.0}start {u
| rn:jboss:bean-deployer:2.0}stop {urn:jboss:bean-deployer:2.0}destroy sequence sequence ]
| 1687 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}bean in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@198
| 36ed, 1: {urn:jboss:bean-deployer:2.0}annotation ]
| 1687 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}bean in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@394
| 43f, 1: choice ]
| 1687 TRACE [ChoiceBinding] startElement {urn:jboss:bean-deployer:2.0}bean in org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45
| , 3: {urn:jboss:bean-deployer:2.0}bean {urn:jboss:bean-deployer:2.0}beanfactory {urn:jboss:bean-deployer:2.0}lazy ]
| 1687 TRACE [ChoiceBinding] found {urn:jboss:bean-deployer:2.0}bean in org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45
| 1687 TRACE [ChoiceBinding] leaving org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45 i=0, pos=0
| 1687 TRACE [SundayContentHandler] pushed cursor org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1@3e0ebb, o=org.jboss.xb.spi.Defau
| ltBeanAdapter@15093f1
| 1687 TRACE [SundayContentHandler] start repeatable (2): org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@39443f
| 1687 TRACE [SundayContentHandler] pushed cursor org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1@da4b71, o=org.jboss.xb.spi.Defau
| ltBeanAdapter@15093f1
| 1687 TRACE [SundayContentHandler] pushed cursor org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding$1@18f1d7e, o=org.jboss.xb.spi.Defaul
| tBeanAdapter@15093f1
| 1687 TRACE [SundayContentHandler] start repeatable (4): org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@d9660d({urn:jboss:bean-dep
| loyer:2.0}bean, type={urn:jboss:bean-deployer:2.0}beanType)
| 1703 TRACE [SundayContentHandler] pushed {urn:jboss:bean-deployer:2.0}bean=org.jboss.xb.spi.DefaultBeanAdapter@153f67e, binding=org.jboss.xb
| .binding.sunday.unmarshalling.ElementBinding@d9660d({urn:jboss:bean-deployer:2.0}bean, type={urn:jboss:bean-deployer:2.0}beanType)
| 1703 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}constructor in org.jboss.xb.binding.sunday.unmarshalling.SequenceBind
| ing@15bdc50, 16: sequence sequence {urn:jboss:bean-deployer:2.0}classloader {urn:jboss:bean-deployer:2.0}constructor sequence {urn:jboss:bea
| n-deployer:2.0}create {urn:jboss:bean-deployer:2.0}start {urn:jboss:bean-deployer:2.0}stop {urn:jboss:bean-deployer:2.0}destroy sequence seq
| uence sequence sequence sequence sequence sequence ]
| 1703 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}constructor in org.jboss.xb.binding.sunday.unmarshalling.SequenceBind
| ing@1dd3812, 1: {urn:jboss:bean-deployer:2.0}alias ]
| 1703 TRACE [SequenceBinding] startElement {urn:jboss:bean-deployer:2.0}constructor in org.jboss.xb.binding.sunday.unmarshalling.SequenceBind
| ing@9e5c73, 1: {urn:jboss:bean-deployer:2.0}annotation ]
| 1703 TRACE [SequenceBinding] found {urn:jboss:bean-deployer:2.0}constructor in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@15b
| dc50
| 1703 TRACE [SundayContentHandler] pushed cursor org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1@8c436b, o=org.jboss.xb.spi.Defau
| ltBeanAdapter@153f67e
| 1703 TRACE [SundayContentHandler] pushed {urn:jboss:bean-deployer:2.0}constructor=org.jboss.xb.spi.DefaultBeanAdapter@1b15692, binding=org.j
| boss.xb.binding.sunday.unmarshalling.ElementBinding@1aa9f99({urn:jboss:bean-deployer:2.0}constructor, type={urn:jboss:bean-deployer:2.0}cons
| tructorType)
| 1703 TRACE [SundayContentHandler] poped {urn:jboss:bean-deployer:2.0}constructor=[org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@1
| aa9f99({urn:jboss:bean-deployer:2.0}constructor, type={urn:jboss:bean-deployer:2.0}constructorType), minOccurs=0, maxOccurs=1]
| 1703 TRACE [SundayContentHandler] poped org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@1aa9f99({urn:jboss:bean-deployer:2.0}constr
| uctor, type={urn:jboss:bean-deployer:2.0}constructorType)
| 1703 TRACE [SundayContentHandler] poped {urn:jboss:bean-deployer:2.0}bean=[org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@d9660d({
| urn:jboss:bean-deployer:2.0}bean, type={urn:jboss:bean-deployer:2.0}beanType), minOccurs=0, maxOccurs=unbounded]
| 1703 TRACE [SundayContentHandler] end repeatable (4): org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@d9660d({urn:jboss:bean-deplo
| yer:2.0}bean, type={urn:jboss:bean-deployer:2.0}beanType)
| 1718 TRACE [SundayContentHandler] poped org.jboss.xb.binding.sunday.unmarshalling.ElementBinding@d9660d({urn:jboss:bean-deployer:2.0}bean, t
| ype={urn:jboss:bean-deployer:2.0}beanType)
| 1718 TRACE [SequenceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@39443
| f, 1: choice ]
| 1718 TRACE [SundayContentHandler] poped org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45
| 1718 TRACE [SequenceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@e6f7d
| 2, 9: sequence {urn:jboss:bean-deployer:2.0}classloader sequence {urn:jboss:bean-deployer:2.0}create {urn:jboss:bean-deployer:2.0}start {urn
| :jboss:bean-deployer:2.0}stop {urn:jboss:bean-deployer:2.0}destroy sequence sequence ]
| 1718 TRACE [SequenceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@39443
| f, 1: choice ]
| 1718 TRACE [ChoiceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45,
| 3: {urn:jboss:bean-deployer:2.0}bean {urn:jboss:bean-deployer:2.0}beanfactory {urn:jboss:bean-deployer:2.0}lazy ]
| 1718 TRACE [ChoiceBinding] leaving org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding@1afae45 i=2, pos=-1
| 1718 TRACE [SequenceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@7f4ec
| , 1: {urn:jboss:bean-deployer:2.0}alias ]
| 1718 TRACE [SequenceBinding] startElement {urn:jboss:aop-beans:1.0}aspect in org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding@60e12
| 8, 1: ]
| 1718 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=null
| 1718 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 1718 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 1718 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 1718 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
| 1718 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=null, is=org.xml.sax.InputSou
| rce@5e1077
| 1718 TRACE [DefaultSchemaResolver] found schema InputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=null
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0
| 2172 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 2172 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 2172 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 2172 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0, i
| s=org.xml.sax.InputSource@1f82982
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0
| 2172 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 2172 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 2172 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 2172 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0, i
| s=org.xml.sax.InputSource@154864a
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0
| 2172 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 2172 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 2172 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 2172 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0, i
| s=org.xml.sax.InputSource@1742700
| 2172 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0
| 2172 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 2172 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 2187 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 2203 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
| 2203 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0, i
| s=org.xml.sax.InputSource@17431b9
| 2203 TRACE [DefaultSchemaResolver] getInputSource, nsURI=urn:jboss:aop-beans:1.0, baseURI=null, schemaLocation=urn:jboss:beans-common:2.0
| 2203 TRACE [JBossEntityResolver] resolvePublicID, publicId=urn:jboss:aop-beans:1.0
| 2203 TRACE [JBossEntityResolver] Found entity from publicId=urn:jboss:aop-beans:1.0 fileName=aop-beans_1_0.xsd
| 2203 TRACE [JBossEntityResolver] schema/aop-beans_1_0.xsd maps to URL: file:/C:/cygwin/home/Kabir/sourcecontrol/microcontainer/aop-mc-int/ta
| rget/classes/schema/aop-beans_1_0.xsd
| 2203 TRACE [DefaultSchemaResolver] Resolved schema using namespace as publicId and schemaLocation as systemId
|
BTW I did not register urn:jboss:beans-common:2.0 anywhere yet, it returns the wrong thing before it gets that far
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135730#4135730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135730
18 years