Hi!

> You're really doing some fantastic stuff using templates :-)

And this is only a beginning ;)

> What do you think about a generic session-wrapper.j, part of the core?

I have facade for CRUD operation on entity beans.
But it is only working for simple beans, where the facade is there for
nothing except to respect the pattern.
It is the kind of things I will evolve with the time.
I would be please to commit that, of course.

> Ara.

Vincent.

>
> > Use the session-custom.j to set up this.
> > I have done that.
> >
> > Here is an example:
> >    <XDoclet:forAllMethods>
> >    <XDoclet:ifHasMethodTag tagName="hm:facade-find">
> >    <XDoclet:forAllMethodTags tagName="hm:facade-find">
> >    public <XDoclet:methodType/>
> > <XDoclet:methodName/>(<XDoclet:parameterList/>)
> >    throws javax.ejb.FinderException<XDoclet:exceptionList
> > skip="javax.ejb.FinderException"/>{
> >         if (pk==null) throw new javax.ejb.FinderException("PK provided
> was
> > Blank");
> >         if (cat.isDebugEnabled())
> > cat.debug("<XDoclet:methodName/>("+pk+")");
> >         <XDoclet:ifDoesntHaveMethodTag tagName="hm:facade-find"
> > paramName="local">
> >         try{
> >         </XDoclet:ifDoesntHaveMethodTag>
> >             <XDoclet:ifDoesntHaveMethodTag tagName="hm:facade-find"
> > paramName="local">
> >             <XDoclet:methodType/> detail = home<XDoclet:methodTagValue
> > tagName="hm:facade-find" paramName="name"
> > paramNum="0"/>DOHome().findByPrimaryKey(pk).getDetails();
> >             </XDoclet:ifDoesntHaveMethodTag>
> >             <XDoclet:ifHasMethodTag tagName="hm:facade-find"
> > paramName="local">
> >             <XDoclet:methodType/> detail = home<XDoclet:methodTagValue
> > tagName="hm:facade-find" paramName="name"
> > paramNum="0"/>DOLocalHome().findByPrimaryKey(pk).getDetails();
> >             </XDoclet:ifHasMethodTag>
> >             return detail;
> >         <XDoclet:ifDoesntHaveMethodTag tagName="hm:facade-find"
> > paramName="local">
> >         } catch (java.rmi.RemoteException e) {
> >             cat.error("Remote Exception",e);
> >             throw new javax.ejb.EJBException(e);
> >         }
> >         </XDoclet:ifDoesntHaveMethodTag>
> >    }
> >    </XDoclet:forAllMethodTags>
> >    </XDoclet:ifHasMethodTag>
> >    </XDoclet:forAllMethods>
> >
> > >
> > > Thanks in advance!
> > >
> > > Chris
> > >
> >
> > Vincent.
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/xdoclet-user
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to