Well, For me I simply have to add the following to @ejb:bean as follows:
@ejb:bean name="ebay/Order" type="Stateless" jndi-name="ejb/ebay/Order" local-jndi-name="ejb/ebay/OrderLocal" view-type="both" transaction-type="Container" First, I specified my view-type to be both local and remote and I indicate a local JNDI name to bind the local interface to. Then in my methods xdoclet tags, I still use @ejb:interface-method (with no parameters). By default, @ejb:interface-method uses the view-type specified in @ejb:bean. Thus, when you run xdoclet, it will automatically generate the Local Home for you automatically. Then you simply have to look up the local-jndi-name inside your other beans and you're ready to go, plus all the little ejb-ref stuff you have to add in for those beans of course. Hope that helps, Chris At 06:50 PM 06/11/2002, you wrote: >Hi Chris, > >Could you show us how that's done with XDoclet? I'm interested in trying to >do some work with CMR and Local interfaces with XDoclet, but I've mostly been >unsuccessful. It'd be nice to see how people are doing it. > >Thanks. > >-Neal > >On June 11, 2002 09:23 pm, you wrote: > > I use XDoclet for code generation and what I normally do is separate the > > local and remote interfaces into two separate home interfaces that I bind > > to the JNDI. Then, if I decide to have use Local Interface methods, I can > > simply retrieve the local home. The same applies to Remote Interface > > methods. This has the added benefit of allowing me to use the same method > > name for the local and remote since it's the Home that I'm retrieving that > > indicates to JBoss whether I want local or remote method calls. > > > > Thanks, > > Chris > >_______________________________________________________________ > >Multimillion Dollar Computer Inventory >Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar > > > >_______________________________________________ >JBoss-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user PGP at ldap://certserver.pgp.com/ _______________________________________________________________ Multimillion Dollar Computer Inventory Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
