From: Vance K. <va...@us...> - 2006-01-06 13:53:35
|
User: vancek Date: 06/01/06 05:53:27 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml profile.xml Log: added MDB property elements Revision Changes Path 1.4 +49 -3 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- namespace.xml 4 Jan 2006 06:12:19 -0000 1.3 +++ namespace.xml 6 Jan 2006 13:53:27 -0000 1.4 @@ -47,6 +47,18 @@ files are generated. </documentation> </property> + <property name="message-driven-beans"> + <documentation> + The directory to which Message Driven Bean files + are generated. + </documentation> + </property> + <property name="message-driven-impls"> + <documentation> + The directory to which Message Driven Bean + implementation files are generated. + </documentation> + </property> </propertyGroup> <propertyGroup name="JDBC"> <property name="entityManagerName" required="false"> @@ -162,14 +174,14 @@ <property name="serviceLocalInterfaceNamePattern"> <default>{0}Local</default> <documentation> - The pattern to use when constructing a service + The pattern to use when constructing the service bean local interface name. </documentation> </property> <property name="serviceRemoteInterfaceName"> <default>{0}Remote</default> <documentation> - The pattern to use when constructing a service + The pattern to use when constructing the service bean remote interface name. </documentation> </property> @@ -183,10 +195,31 @@ <property name="serviceListenerNamePattern"> <default>{0}Listener</default> <documentation> - The pattern to use when constructing an service + The pattern to use when constructing the service + bean listener class name. + </documentation> + </property> + <property name="messageDrivenNamePattern"> + <default>{0}MDBBean</default> + <documentation> + The pattern to use when construction the JMS message driven + bean class name. + </documentation> + </property> + <property name="messageDrivenListenerNamePattern"> + <default>{0}Listener</default> + <documentation> + The pattern to use when constucting the JMS message driven bean listener class name. </documentation> </property> + <property name="messageDrivenImplementationNamePattern"> + <default>{0}MDBBeanImpl</default> + <documentation> + The pattern to use when constructing the JMS message driven + bean implementation class name. + </documentation> + </property> <property name="jndiNamePrefix" required="false"> <documentation> The prefix to give to the EJB JNDI names (this @@ -195,6 +228,19 @@ </documentation> </property> </propertyGroup> + <propertyGroup name="MDB Properties"> + <property name="messageDrivenDestinationType"> + <default>javax.jms.Queue</default> + <documentation> + The default destination type for a JMS message + driven bean. Possible values are: + <ul> + <li>javax.jms.Queue</li> + <li>javax.jms.Topic</li> + </ul> + </documentation> + </property> + </propertyGroup> <propertyGroup name="Other Properties"> <property name="persistenceContainerName"> <default>jboss</default> 1.3 +164 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml Index: profile.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- profile.xml 3 Jan 2006 01:13:53 -0000 1.2 +++ profile.xml 6 Jan 2006 13:53:27 -0000 1.3 @@ -23,6 +23,14 @@ <value>Service</value> <appliedOnElement>class</appliedOnElement> </element> + <element name="MESSAGE_DRIVEN"> + <documentation> + Produces a JMS Message Driven EJB facade that + received messages. + </documentation> + <value>MessageDriven</value> + <appliedOnElement>class</appliedOnElement> + </element> <element name="VERSION"> <documentation> Identifies an attribute as an version property @@ -97,6 +105,53 @@ A dependency going into a Service </appliedOnElement> </element> + <element name="RESOURCE_REF"> + <documentation> + Used to reference a resource, like a + DataSource from a service bean. + </documentation> + <value>ResourceRef</value> + <appliedOnElement> + A dependency going into a class having + a stereotype of UserTransaction or DataSource, + out of a Service. + </appliedOnElement> + </element> + <element name="MESSAGE_DRIVEN_REF"> + <documentation> + Used to reference a JMS message driven + bean with stereotype MessageDriven. + This is used to inject the Queue, + QueueConnectionFactory or TopicConnectionFactory + resources. + </documentation> + <value>MessageDrivenRef</value> + <appliedOnElement> + A dependency going into a class + having a stereotype of MessageDriven, + out of a Service. + </appliedOnElement> + </element> + <element name="USER_TRANSACTION"> + <documentation> + Used to inject a javax.transaction.UserTransaction + resource. + </documentation> + <value>UserTransaction</value> + <appliedOnElement> + class + </appliedOnElement> + </element> + <element name="DATA_SOURCE"> + <documentation> + Used to inject a javax.sql.DataSource + resource. + </documentation> + <value>DataSource</value> + <appliedOnElement> + class + </appliedOnElement> + </element> <element name="VALUE_REF"> <documentation> Used to generate an association between an entity @@ -368,6 +423,25 @@ <value>TRANSACTION</value> </allowedValues> </element> + <element name="SERVICE_PERSISTENCE_FLUSH_MODE"> + <documentation> + Used on session bean operations to set + the flush mode that determines when the + changes to the changes to the database + are applied in a transation. + </documentation> + <value> + @andromda.ejb.persistence.flush.mode + </value> + <appliedOnElement> + Service operation + </appliedOnElement> + <allowedValues> + <value>AUTO</value> + <value>COMMIT</value> + <value>NEVER</value> + </allowedValues> + </element> <element name="SECURITY_ROLES_ALLOWED"> <documentation> Specifies the comma separated list of security @@ -387,7 +461,7 @@ <element name="SECURITY_PERMIT_ALL"> <documentation> Specifies whether to permit all roles to - execute the opertions in a session bean. + execute the opertions in the bean. This can be set on the session bean or on individual operations. If set on the session bean, all operations will @@ -407,6 +481,42 @@ <value>false</value> </allowedValues> </element> + <element name="SECURITY_DENY_ALL"> + <documentation> + Specifies whether to deny all roles to + execute the opertions in the bean. + This can be set on the session bean or on + individual operations. + If set on the session bean, all operations will + inherit this behaviour. + The deny all tagged value will override + the roles allowed. If both are set, only the + deny all tagged value is rendered. + </documentation> + <value> + @andromda.ejb.security.denyAll + </value> + <appliedOnElement> + Service and service operation + </appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> + </element> + <element name="SECURITY_RUN_AS"> + <documentation> + Specifies the run-as identity that the + bean will use when making calls. It does + not affect the identity of the method callers. + </documentation> + <value> + @andromda.ejb.security.runAs + </value> + <appliedOnElement> + Session bean + </appliedOnElement> + </element> <element name="SECURITY_DOMAIN"> <documentation> Specifies the security domain for @@ -498,6 +608,59 @@ <value>@andromda.persistence.column.length</value> <appliedOnElement>Entity attribute</appliedOnElement> </element> + <element name="MDB_ACKNOWLEDGE_MODE"> + <documentation> + Represents the acknowledge mode for the JMS message + driven bean. Only needs to be specified if + DUPS_OK_ACKNOWLEDGE mode is required. The default + mode is AUTO_ACKNOWLEDGE. + </documentation> + <value>@andromda.ejb.mdb.acknowledge.mode</value> + <appliedOnElement>Message Driven Bean</appliedOnElement> + <allowedValues> + <value default="true">AUTO_ACKNOWLEDGE</value> + <value>DUPS_OK_ACKNOWLEDGE</value> + </allowedValues> + </element> + <element name="MDB_DESTINATION"> + <documentation> + Represents the destination queue or topic name + this JMS message driven bean is associated with. + </documentation> + <value>@andromda.ejb.mdb.destination</value> + <appliedOnElement>Message Driven Bean</appliedOnElement> + </element> + <element name="MDB_DESTINATION_TYPE"> + <documentation> + Represents the destination type of the JMS message + driven bean. If not specified, it is assumed to + be a Queue. + </documentation> + <value>@andromda.ejb.mdb.destination.type</value> + <appliedOnElement>Message Driven Bean</appliedOnElement> + <allowedValues> + <value default="true">javax.jms.Queue</value> + <value>javax.jms.Topic</value> + </allowedValues> + </element> + <element name="MDB_SELECTOR"> + <documentation> + Represents the JMS message selector logic used + when determining the messages that a JMS message + driven bean is to receive. + </documentation> + <value>@andromda.ejb.mdb.selector</value> + <appliedOnElement>Message Driven Bean</appliedOnElement> + </element> + <element name="MDB_SUBSCRIPTION_DURABILITY"> + <documentation> + Represents the JMS message driven bean subscription + durability mode. Queues are always durable. The + durability only needs to be specified on topics. + By default, topics are non-durable. + </documentation> + <value>@andromda.ejb.mdb.subscription.durability</value> + </element> </elementGroup> </elements> </profile> \ No newline at end of file |