Several solutions, one could be to add a local-jndi-name to SequenceGenerator ejb:bean.
Another for JBoss could be to change to have * @jboss:ejb-ref-jndi * ref-name="ejb/SequenceGeneratorLocal" * jndi-name="SequenceGeneratorLocalHome" The problem is that you can have in the same bean * @ejb:ejb-ref * ejb-name="SequenceGenerator" * view-type="local" and * @ejb:ejb-ref * ejb-name="SequenceGenerator" * view-type="remote" And there is no way for xdoclet to know that you have or not In simple cases you don't need jboss:ejb-ref-jndi then the ejb:ejb-ref is enough and the jboss.xml has to find himself what to do. > * @weblogic:ejb-local-reference-description > * ejb-ref-name="ejb/SequenceGeneratorLocal" > * jndi-name="SequenceGeneratorLocalHome" > * Here ok there is a bug I guess, the Local should be added automatically I don't work with Weblogic, is there a weblogic:ejb-reference-description ? If yes then ok Local should be added automatically. >===== Original Message From "Shaw, Chris" <[EMAIL PROTECTED]> ===== >Hi, > >Regarding this (and several other things I've mentioned), I've put the >application [it's only small] at http://www.geocities.com/cnsxxx9/ so it >should allow you to reproduce the errors (or point out to me that there is >no error if I've done something wrong). > >Regards > >Chris >-=-=- > >PS - there's 2 ugly-hack (but small) Perl scripts in there to fix some >invalid XML...in case it looks like the self-referencing error isn't being >reproduced. > >-----Original Message----- >From: Shaw, Chris >Sent: 09 January 2002 15:24 >To: '[EMAIL PROTECTED]' >Subject: ejb-ref-name and 'Local' appended > > >Hi (me again) > >Something else I've come across which is strange...(maybe?) > >I have the following at the top of my Session Bean.... > > * > * @ejb:ejb-ref > * ejb-name="SequenceGenerator" > * view-type="local" > * > * @weblogic:ejb-local-reference-description > * ejb-ref-name="ejb/SequenceGenerator" > * jndi-name="SequenceGeneratorLocalHome" > * > * @jboss:ejb-ref-jndi > * ref-name="ejb/SequenceGenerator" > * jndi-name="SequenceGeneratorLocalHome" > > >which creates the following in ejb-jar.xml > > <ejb-local-ref> > <ejb-ref-name>ejb/SequenceGeneratorLocal</ejb-ref-name> > <ejb-ref-type>Entity</ejb-ref-type> > <local-home>ecb.db.SequenceGeneratorLocalHome</local-home> > <local>ecb.db.SequenceGeneratorLocal</local> > <ejb-link>SequenceGenerator</ejb-link> > </ejb-local-ref> > >The problem? >If I use an entity bean then there is no problem...e.g > ejb-ref-name="ejb/Person" --> <ejb-ref-name>ejb/Person</ejb-ref-name> >but when I use a session bean reference (and the fact that it is a session >bean I guess *could* just be co-incidence because it is only my SessionBeans >that refer to other beans....though it's consistent at least) >then I get the following: > ejb-ref-name="ejb/SequenceGenerator" --> ><ejb-ref-name>ejb/SequenceGeneratorLocal</ejb-ref-name> >ie 'Local' gets appended to the end > >where does this 'Local' come from? (it's screwing up my deployment at the >moment...because 'Local' is is -not- appended to the ejb-ref-name in either >jboss.xml or to weblogic-ejb-jar.xml...only in ejb-jar.xml) > >Thanks > >Chris >-=-=-= > >Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. >This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. >If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. > > >_______________________________________________ >Xdoclet-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
