[Design of JBossXB] - How to validate type-value?
by jeff.zhang
In javaee_5.xsd, Line 399:
The following are the legal values of env-entry-type-valuesType:
java.lang.Boolean
java.lang.Byte
java.lang.Character
java.lang.String
java.lang.Short
java.lang.Integer
java.lang.Long
java.lang.Float
java.lang.Double
I can't see any validate code in EnvironmentEntryMetaData.java. Is there any good way?
I also meet this in connector_1.5.xsd:
<xsd:complexType name="config-property-typeType">
<xsd:simpleContent>
<xsd:restriction base="javaee:string">
<xsd:enumeration value="java.lang.Boolean"/>
<xsd:enumeration value="java.lang.String"/>
<xsd:enumeration value="java.lang.Integer"/>
<xsd:enumeration value="java.lang.Double"/>
<xsd:enumeration value="java.lang.Byte"/>
<xsd:enumeration value="java.lang.Short"/>
<xsd:enumeration value="java.lang.Long"/>
<xsd:enumeration value="java.lang.Float"/>
<xsd:enumeration value="java.lang.Character"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202919#4202919
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202919
17 years, 2 months
[Design of JBoss Portal] - Re: Design of Portal Deployer
by mwringe
"alesj" wrote :
| What exactly are you trying to do?
| As it sounds weird/wrong. :-)
| e.g. .sar is only finished when its children (in this case .war) are finished
| but your .war should wait for .sar to finish ... chicken and egg problem ;-)
|
The portal sar packages some wars within it, but these wars are going to have to be deployed after the container service is started in the sar. The old way of doing this was looping through everything that was deployed on the server when the service is started.
I don't actually need the whole sar to be finished, just as long as the container service is started.
"alesj" wrote :
| Although in this case you might even get away with this,
| as .war at the end is nothing more than a mbean --> ServiceDeployer.
| And if you put proper depends on it, it would have the right order dependencies.
| I'm just not sure how easy/hard it is to add dependencies to a .war's mbean representation.
|
Adding a jboss-dependency.xml file to the WEB-INF folder does properly add dependencies to the war, so I don't think I need to do anything else there.
It just doesn't seem to work nicely when inside a sar (as you have mentioned above).
"alesj" wrote :
| What about if you deploy things separately - with proper jboss-dependency.xml in the top level?
| The classloading should work, as long as the flat (non-scoped) model is used.
| Or it's part of common/server lib - which I guess is right place so real jbp users can write against your custom jbp api.
|
Things work properly is deployed separetely, it just means there will be more things to deploy on the server than just a single sar.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202888#4202888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202888
17 years, 2 months