[Design of JBoss Transaction Services] - Re: transaction support in JBossAS 5.0
by reverbel
"mark.little(a)jboss.com" wrote : "reverbel" wrote :
| | Instead of embedding a full Xid into, say, the object id part of an IOR, the OTS/DTM code uses a long (the local transaction id) as the CORBA object id. Besides reducing wire traffic and marshalling overhead, this approach reduces logging overhead, as it reduces the size of transaction log records that contain Resource or Coordinator references.
| |
|
| I will just say that the problems with storing anything that isn't guaranteed to be globally unique are fairly obvious and risky where transaction processing is concerned.
Not sure what was your point here... Resource and Coordinator references are globally unique, as each such reference contains endpoint info such as host and port, plus a local id field that is unique within that endpoint. Usage of "really local" ids (rather than using full Xids as local id values) avoids nesting of globally unique identifiers, which would be a wasteful thing to do.
Regards,
Francisco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976869#3976869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976869
19 years, 6 months
[Design of JBossXB] - Re: Using annotations to define schema mappings
by scott.stark@jboss.org
Yes, and we also need to support the ability to pickup the schema annotations from an external file. The jaxb mechanism for this has an xpath syntax where
An example from the jaxb2 spec, consider the following schema and external binding file.
Source Schema: A.xsd:
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
| xmlns:ens="http://example.com/ns"
| targetNamespace="http://example.com/ns">
| <xs:complexType name="aType">
| <xs:sequence>
| <xs:element name="foo" type="xs:int"/>
| </xs:sequence>
| <xs:attribute name="bar" type="xs:int"/>
| </xs:complexType>
| <xs:element name="root" type="ens:aType"/>
| </xs:schema>
|
External binding declarations file:
| <jaxb:bindingsxmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
| xmlns:xs="http://www.w3.org/2001/XMLSchema"
| version="1.0">
| <jaxb:bindings schemaLocation='A.xs'>
| <jaxb:bindings node="//xs:complexType[@name=?aType?]?>
| <jaxb:class name="customNameType"/>
| <jaxb:bindings node=?.//xs:element[@name=?foo?]?>
| <jaxb:property name="customFoo"/>
| </jaxb:bindings>
| <jaxb:bindings node=?./xs:attribute[@name=?bar?]?>
| <jaxb:property name="customBar"/>
| </jaxb:bindings>
| </jaxb:bindings>
| </jaxb:bindings>
| </jaxb:bindings>
|
Conceptually, the combination of the source schema and external binding file above are the equivalent of the following inline annotated schema.
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
| xmlns:ens="http://example.com/ns"
| targetNamespace="http://example.com/ns"
| xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
| jaxb:version="1.0">
| <xs:complexType name="aType">
| <xs:annotation>
| <xs:appinfo>
| <jaxb:class name="customNameType"/>
| </xs:appinfo>
| </xs:annotation>
| <xs:sequence>
| <xs:element name="foo" type="xs:int">
| <xs:annotation>
| <xs:appinfo>
| <jaxb:property name="customFoo"/>
| </xs:appinfo>
| </xs:annotation>
| </xs:element>
| </xs:sequence>
| <xs:attribute name="bar" type="xs:int">
| <xs:annotation>
| <xs:appinfo>
| <jaxb:property name="customBar"/>
| </xs:appinfo>
| </xs:annotation>
| </xs:attribute>
| </xs:complexType>
| <xs:element name="root" type="ens:aType"/>
| </xs:schema>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976856#3976856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976856
19 years, 6 months
[Design of POJO Server] - Re: DataSource is broken
by adrian@jboss.org
It is no longer invoking the XSLDeployer's parse method:
XSLDeployer
| /**
| * Parse a deployment
| *
| * @param unit the deployment unit
| * @param file the metadata file
| * @return the metadata
| * @throws Exception for any error
| */
| protected T parse(DeploymentUnit unit, VirtualFile file) throws Exception
|
Method defined by AbstractParsingDeployer and implemented
by the parent JAXPDeployer of XSLDeployer
| /**
| * Parse a deployment
| *
| * @param unit the deployment unit
| * @param file the metadata file
| * @param root - possibly null pre-existing root
| * @return the metadata
| * @throws Exception for any error
| */
| protected abstract T parse(DeploymentUnit unit, VirtualFile file, T root) throws Exception;
|
So the document never goes through the XSL transformation.
It is effectively just deployed as a straight -service.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976813#3976813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976813
19 years, 6 months
[Design of POJO Server] - DataSource is broken
by adrian@jboss.org
This was working, so I'm guessing Scott's parser changes broke this?
The only thing that is getting deployed out of the -ds.xml
is the hibernate mbean.
| ejort@ejort:~/jboss-head/build/output/jboss-5.0.0.Beta/server/default/log$ grep hsqldb server.log
| 2006-10-08 13:06:09,138 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Add deployment context: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:09,138 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Scheduling deployment: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:14,571 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@5dc994, cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
| 2006-10-08 13:06:14,571 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@5dc994, cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
| 2006-10-08 13:06:14,572 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=0}
| 2006-10-08 13:06:14,903 DEBUG [org.jboss.deployers.plugins.structure.AbstractDeploymentContext] Added component jboss:database=localDB,service=Hypersonic to file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:36,022 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Deployed: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:46,930 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Scheduling undeployment: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:51,585 DEBUG [org.jboss.deployers.plugins.structure.AbstractDeploymentContext] Removed component jboss:database=localDB,service=Hypersonic from file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
| 2006-10-08 13:06:52,132 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository removed(true) org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
| 2006-10-08 13:06:52,132 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Unregistering cl=org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
| 2006-10-08 13:06:52,133 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] UnifiedLoaderRepository removed(false) org.jboss.mx.loading.UnifiedClassLoader3@e8c7db{ url=file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml ,addedOrder=22}
| 2006-10-08 13:06:52,133 DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Undeployed: file:/home/ejort/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/hsqldb-ds.xml
|
P.S. Note to Bill: I don't do open source via private e-mail,
so spamming me 5 private e-mails about this is pointless.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976812#3976812
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976812
19 years, 6 months