just found the pb. it is not in the xdoc header but after the header: removing
the comment between the end of the header and the class declaration generates a
correct ejb name without the pacakge. looks like a bug in the parsing 2 me
though. I tried 2 '*' at the end of the header to see if any change, but no.
let me know if this can be corrected.
thanx.
seb.
having a comment between the end of the header and the class did it:
* @bes:message-driven-destination name="serial://jms/TL1EventTopic"
* @bes:connection-factory
name="serial://jms/TL1EventTopicConnectionFactory"
*
*/
// can put a generic name to be used on tl1-entity layer
public class FacTL1SubscriberMDB extends TL1SubscriberMDB
{
Sebastien BLANC wrote:
> Hello !
> I'having the following pb at XML descriptor generation time.
> the following MDB header:
>
> /**
> * EqpTL1SubscriberMDB receives a JMS message containing an Invoice for
> a user order. It updates the Purchase Order EJB
> * based on the invoice information.
> *
> * @created November 2, 2002
> * @ejb:bean name="EqpTL1Subscriber"
> transaction-type="Container"
> * destination-type="javax.jms.Topic"
> acknowledge-mode="Auto-acknowledge" subscription-durability="NonDurable"
>
> * generate="true"
> * @ejb:ejb-ref ejb-name="Ne_Eqp" view-type="local"
> ref-name="ejb/Ne_EqpLocal"
> * @ejb.resource-ref
> res-ref-name="TL1EventTopicConnectionFactory"
> * res-type="javax.jms.TopicConnectionFactory" res-auth="Container"
>
> * @ejb.resource-env-ref name="TL1EventTopic"
> type="javax.jms.Topic"
> * @ejb:permission role-name="everyone"
> *
> * @jboss:destination-jndi-name name="topic/TL1EventTopic"
> * @jboss:subscriber name="Eqp" password="Eqp"
> subscription-id="EqpTL1Subscriber"
> * @jboss:container-configuration name="Standard Message Driven Bean"
> *
> *
> * @jrun:message-driven-destination name="topic/TL1EventTopic"
> * @jrun:message-driven-subscription client-id="EqpTL1Subscriber"
> * @jrun:jndi-name jndi-name="tl1/EqpTL1Subscriber"
> * @jrun:resource-env-ref
> resource-env-ref-name="TL1EventTopic" jndi-name="jms/TL1EventTopic"
> * @jrun:resource-ref
> res-ref-name="TL1EventTopicConnectionFactory"
> jndi-name="jms/TL1EventTopicConnectionFactory"
> * user="Eqp" password="Eqp"
> *
> * @bes:message-driven-destination name="serial://jms/TL1EventTopic"
> * @bes:connection-factory
> name="serial://jms/TL1EventTopicConnectionFactory"
> *
> */
>
> generates the following ejb-jar.xml (extract)"
>
> <ejb-name>com.alcatel.gem.ejb.tl1.Equipment.EqpTL1SubscriberMDB</ejb-name>
>
> <ejb-class>com.alcatel.gem.ejb.tl1.Equipment.EqpTL1SubscriberMDB</ejb-class>
>
> where as the following header:
>
> /**
> * FacTL1SubscriberMDB receives a JMS message containing an Invoice for
> a user order. It updates the Purchase Order EJB
> * based on the invoice information.
> *
> * @created November 2, 2002
> * @ejb:bean name="FacTL1Subscriber"
> transaction-type="Container"
> * destination-type="javax.jms.Topic"
> acknowledge-mode="Auto-acknowledge" subscription-durability="NonDurable"
>
> * generate="true"
> * @ejb:ejb-ref ejb-name="Ne_Fac" view-type="local"
> ref-name="ejb/Ne_FacLocal"
> * @ejb.resource-ref
> res-ref-name="TL1EventTopicConnectionFactory"
> * res-type="javax.jms.TopicConnectionFactory" res-auth="Container"
>
> * @ejb.resource-env-ref name="TL1EventTopic"
> type="javax.jms.Topic"
> * @ejb:permission role-name="everyone"
> *
> * @jboss:destination-jndi-name name="topic/TL1EventTopic"
> * @jboss:subscriber name="Fac" password="Fac"
> subscription-id="FacTL1Subscriber"
> * @jboss:container-configuration name="Standard Message Driven Bean"
> *
> *
> * @@jrun:message-driven-destination name="topic/TL1EventTopic"
> * @@jrun:message-driven-subscription client-id="FacTL1Subscriber"
> * @jrun:jndi-name jndi-name="tl1/FacTL1Subscriber"
> * @jrun:resource-env-ref
> resource-env-ref-name="TL1EventTopic" jndi-name="jms/TL1EventTopic"
> * @jrun:resource-ref
> res-ref-name="TL1EventTopicConnectionFactory"
> jndi-name="jms/TL1EventTopicConnectionFactory"
> * user="Fac" password="Fac"
> *
> * @bes:message-driven-destination name="serial://jms/TL1EventTopic"
> * @bes:connection-factory
> name="serial://jms/TL1EventTopicConnectionFactory"
> *
> */
>
> generates the following ejb-jar.xml (extract):
>
> <ejb-name>FacTL1Subscriber</ejb-name>
> <ejb-class>com.alcatel.gem.ejb.tl1.Facility.FacTL1SubscriberMDB</ejb-class>
>
> which is correct here coz the ejb name is not a java fully qualified
> one.
>
> I guess there must be a big syntax here in the first header but I really
> can't find it. this is of course causing me pbs when trying to lookup
> this bean into JNDI. could u let me know what would be the reason that I
> could get
> <ejb-name>com.alcatel.gem.ejb.tl1.Equipment.EqpTL1SubscriberMDB</ejb-name>
> so I can find my mistake ?
>
> thanx.
>
> seb.
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user