[jboss-dev] ejb3 metadata elements

Alexey Loubyansky alexey.loubyansky at redhat.com
Mon Nov 17 07:50:14 EST 2008


That was the intent of the jboss_5_0.xsd from the beginning - only the 
ejb3 stuff.
In addition to that, an EJB deployment is either EJB2-type or EJB3-type 
(which may have EJB2 view). If the deployment is recognized as EJB3 then 
it will be deployed by the EJB3 deployer (even if it has EJB2 view). But 
since EJB3 project does not support legacy EJB2 container 
configurations, that should be cleaned up.

I raised the question of what we are going to do with EJB2 entity beans 
described in EJB3 deployment descriptor on the last Friday call. I 
haven't heard any comments yet.

Alexey

Galder Zamarreno wrote:
> Hmmm, why do you wanna get rid of these elements? Couldn't you have a 
> jar with a jboss.xml that contains both EJB3 and EJB2 beans? 
> container-configurations and invoker-proxy-bindings are key to allow this.
> 
> Seems like you're assuming that a jboss.xml with jboss_5_0.xsd will only 
> contain EJB3 beans which doesn't sound entirely correct to me.
> 
> Alexey Loubyansky wrote:
>> I am at the final steps cleaning jboss_5_0.xsd and the dtd. I would 
>> like to clarify which elements are NOT needed (ejb2 legacy) in 
>> jboss_5_0.xsd. Please, review and let me know.
>>
>> For example, 'jboss' element (jbossType)
>> - container-configurations, invoker-proxy-bindings are removed
>>
>>
>> session element
>> - configuration-name - can't be removed w/o removing cluster-config 
>> (do we need cluster-config in the xsd?)
>> - invoker-bindings - removed
>> - security-proxy - removed
>>
>> Are there elements from the following list which should be removed?
>> <xsd:element name="security-identity" 
>> type="javaee:security-identityType" minOccurs="0"/>
>> <xsd:element name="local-binding" type="jboss:local-bindingType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="remote-binding" type="jboss:remote-bindingType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="business-local" type="javaee:string" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="business-remote" type="javaee:string" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="jndi-name" type="javaee:jndi-nameType" minOccurs="0"/>
>> <xsd:element name="home-jndi-name" type="javaee:jndi-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="call-by-value" type="xsd:boolean" minOccurs="0"/>
>> <xsd:element name="exception-on-rollback" type="xsd:boolean" 
>> minOccurs="0"/>
>> <xsd:element name="timer-persistence" type="xsd:boolean" minOccurs="0"/>
>> <xsd:element name="local-jndi-name" type="jboss:local-jndi-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="local-home-jndi-name" type="javaee:jndi-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="jndi-binding-policy" 
>> type="jboss:jndi-binding-policyType" minOccurs="0"/>
>> <xsd:element name="clustered" type="jboss:clusteredType" minOccurs="0"/>
>> <xsd:element name="cluster-config" type="jboss:cluster-configType" 
>> minOccurs="0"/>
>> <xsd:element name="security-domain" type="jboss:security-domainType" 
>> minOccurs="0"/>
>> <xsd:element name="method-attributes" 
>> type="jboss:method-attributesType" minOccurs="0"/>
>> <xsd:element name="depends" type="jboss:dependsType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="annotation" type="jboss:annotationType" 
>> minOccurs="0"/>
>> <xsd:element name="ignore-dependency" 
>> type="jboss:ignore-dependencyType" minOccurs="0"/>
>> <xsd:element name="aop-domain-name" type="jboss:aop-domain-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="cache-config" type="jboss:cache-configType" 
>> minOccurs="0"/>
>> <xsd:element name="pool-config" type="jboss:pool-configType" 
>> minOccurs="0"/>
>> <xsd:element name="concurrent" type="jboss:concurrentType" 
>> minOccurs="0"/>
>> <xsd:element name="jndi-ref" type="jboss:jndi-refType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="port-component" type="jboss:port-componentType" 
>> minOccurs="0" maxOccurs="1"/>
>> <xsd:element name="ejb-timeout-identity" 
>> type="jboss:security-identityType" minOccurs="0" maxOccurs="1"/>
>> <xsd:element name="ior-security-config" 
>> type="jboss:ior-security-configType" minOccurs="0"/>
>>
>>
>> message-driven
>> - configuration-name - can't be removed w/o removing cluster-config 
>> (do we need cluster-config in the xsd?)
>> - invoker-bindings - removed
>> - security-proxy - removed
>>
>> Are there elements from the following list which should be removed?
>> <xsd:element name="local-jndi-name" type="jboss:local-jndi-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="jndi-binding-policy" 
>> type="jboss:jndi-binding-policyType" minOccurs="0"/>
>> <xsd:element name="mdb-user" type="jboss:mdb-userType" minOccurs="0"/>
>> <xsd:element name="mdb-passwd" type="jboss:mdb-passwdType" 
>> minOccurs="0"/>
>> <xsd:element name="mdb-client-id" type="jboss:mdb-client-idType" 
>> minOccurs="0"/>
>> <xsd:element name="mdb-subscription-id" 
>> type="jboss:mdb-subscription-idType" minOccurs="0"/>
>> <xsd:element name="resource-adapter-name" 
>> type="jboss:resource-adapter-nameType" minOccurs="0"/>
>> <xsd:element name="exception-on-rollback" type="xsd:boolean" 
>> minOccurs="0"/>
>> <xsd:element name="timer-persistence" type="xsd:boolean" minOccurs="0"/>
>> <xsd:element name="ejb-ref" type="jboss:ejb-refType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="ejb-local-ref" type="jboss:ejb-local-refType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="service-ref" type="jboss:service-refType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="security-identity" 
>> type="jboss:security-identityType" minOccurs="0"/>
>> <xsd:element name="resource-ref" type="jboss:resource-refType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="resource-env-ref" type="jboss:resource-env-refType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="message-destination-ref" 
>> type="jboss:message-destination-refType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="security-identity" 
>> type="jboss:security-identityType" minOccurs="0" maxOccurs="1"/>
>> <xsd:element name="security-domain" type="jboss:security-domainType" 
>> minOccurs="0"/>
>> <xsd:element name="method-attributes" 
>> type="jboss:method-attributesType" minOccurs="0"/>
>> <xsd:element name="depends" type="jboss:dependsType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="ior-security-config" 
>> type="jboss:ior-security-configType" minOccurs="0"/>
>> <xsd:element name="ejb-timeout-identity" 
>> type="jboss:security-identityType" minOccurs="0" maxOccurs="1"/>
>> <xsd:element name="annotation" type="jboss:annotationType" 
>> minOccurs="0" maxOccurs="unbounded"/>
>> <xsd:element name="ignore-dependency" 
>> type="jboss:ignore-dependencyType" minOccurs="0"/>
>> <xsd:element name="aop-domain-name" type="jboss:aop-domain-nameType" 
>> minOccurs="0"/>
>> <xsd:element name="pool-config" type="jboss:pool-configType" 
>> minOccurs="0"/>
>> <xsd:element name="jndi-ref" type="jboss:jndi-refType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>> <xsd:element name="activation-config" 
>> type="jboss:activation-configType" minOccurs="0"/>
>> <xsd:element name="default-activation-config" 
>> type="jboss:activation-configType" minOccurs="0"/>
>> <xsd:element name="create-destination" type="xsd:boolean" minOccurs="0"/>
>>
>> Thanks,
>> Alexey
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
> 



More information about the jboss-development mailing list