Re: URGENT : configuring xdoclet problem

"chaithanya xdoclet" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,
I'm using the following code..
PLEASE LET ME KNOW THE ERROR IN THIS...
PLEASE ..ITS VERY URGENT
I need this
<ejb-class>uk.co.lvl.ecommerce.modelselection.ModelSelectionSession
</ejb-class>
in ejb-jar.xml when i run xdoclet
/**
 * This class is used to provide the lifecycle implementation and  business
method
 * implementation provided by the ModelSelectionService interface to client
 *
 * @ejb.bean ejb-class="
uk.co.lvl.ecommerce.modelselection.ModelSelectionSessionBean"
 *             name="ModelSelection"
 *            type="Stateless"
 *          transaction-type="Container"
 *          view-type="both"
 *          pattern="{0}Bean"
 *
 *
 * @ejb.transaction type="NotSupported"
 *
 * @ejb.interface extends="javax.ejb.EJBObject"
 *                local-extends="javax.ejb.EJBLocalObject"
remote-pattern="{0}"
 *                local-pattern="{0}Local"
 *
 * @ejb.home extends="javax.ejb.EJBHome" local-extends="
javax.ejb.EJBLocalHome"
 *           remote-pattern="{0}Home" local-pattern="{0}LocalHome"
 *
 * @ejb:env-entry name="ejb/BeanFactoryPath" type="java.lang.String"
 *  value="applicationContext.xml"
 *
 */

On 7/18/06, Nail, Evan Burke <[email protected]> wrote:
>
>  OK It's been a  while since I've used this part of xdoclet so be
> patient..I've kind of moved on to EJB3 and don't remember the real details
> of these calls.
>
> OK Before I get to the xdoclet stuff, a cheesy way to complete this is
> with ANT just doing a
>
> <replace file="....">
>     <replacetoken>Session</replacetoken>
> <replacevalue>Bean</replacevalue>
> </replace>
> or whatever token will give you a unique match.
>
> OK, xdoclet ..
> Now I know you can use the pattern attribute on interfaces and I think the
> session object too under your ejbdoclet task.  < session pattern="{0}Bean"/>
> but I'm not sure what subtask you are using so I'm not sure if that will
> help.
>
> I thought I remember that I specified the file type as *Bean because I had
> named my beans like you and it never changed that. However I seem to
> remember it creating a wrapper with the *Session ending that wrapped my Bean
> and that is what it used as the ejbclass. so I don't remember how you turn
> that off. It seems like maybe it thinks its wrapping your bean so it thinks
> the name should end in its wrapper *Session not your Bean itself since your
> bean is really inside that wrapper. But like I said its been a while.  I
> imagine there is a way to turn it off if that's what its doing.
>
> bn
>
>
> -----Original Message-----
> *From:* [email protected] [mailto:
> [email protected]]*On Behalf Of *chaithanya
> xdoclet
> *Sent:* Tuesday, July 18, 2006 7:41 AM
> *To:* [email protected]
> *Subject:* [Xdoclet-user] URGENT : configuring xdoclet problem
>
> Hi,
> When i run xdoclet, the value of the property <ejb-class> is changing like
> the following...
>
>
>   <ejb-class>uk.co.lvl.ecommerce.modelselection.ModelSelectionSession
> </ejb-class>
>
> But i want it to be
>
>   <ejb-class>uk.co.lvl.ecommerce.modelselection.ModelSelectionBean
> </ejb-class>
>
> Every time , i'm manually changing it to Bean
>
> Can any one tell me how to configure xdoclet so that i can avoid this
> everytime i run xdoclet
>
>
> Regards,
> Chaithanya.
>
> **********************************************************************
>
> This e-mail is the property of Enron Corp. and/or its relevant affiliate
> and may contain confidential and privileged material for the sole use of the
> intended recipient (s). Any review, use, distribution or disclosure by
> others is strictly prohibited. If you are not the intended recipient (or
> authorized to receive for the recipient), please contact the sender or reply
> to Enron Corp. at [email protected] and delete all
> copies of the message. This e-mail (and any attachments hereto) are not
> intended to be an offer (or an acceptance) and do not create or evidence a
> binding and enforceable contract between Enron Corp. (or any of its
> affiliates) and the intended recipient or any other party, and may not be
> relied on by anyone as the basis of a contract by estoppel or otherwise.
> Thank you.
>
> **********************************************************************
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.