[JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
Okay, I figured it out!! I was calling getPlaylists, which returns the Local objects...naughty naughty! :) So I implemented a getRemotePlaylists method and that seems to work great! WOOHOO! :) Thanks for being patient with me! :) Anyhow, since I do intend to my EJBs in a Local model, I'm not

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Chris Chen
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 me

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Neal Sanche
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 f

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Stephen Coy
You will find that this will become expensive when the playlist collection gets big. Those calls to findByPrimaryKey in the loop will cause the whole playlist bean to be loaded, which will slow things down dramatically. I think you will find that the trick is use a custom finder to return the

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Chris Chen
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

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Neal Sanche
It does indeed help. Thanks for that. -Neal On June 11, 2002 10:10 pm, you wrote: > 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" >

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
I have 2xHome's and 2xInterfaces, but a single bean implementation. How do the interfaces know which methods to call on the Bean for remote versus local return values? I like that idea though! :) -- -bk Quoting Chris Chen <[EMAIL PROTECTED]>: > I use XDoclet for code generation and what I

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-11 Thread Brandon Knitter
Hmmm, haven't gotten that far in my book yet, but custom finders are on the horizon. I can see how many hits to the DB to create the objects can have a high expense. Thank you for jobbing my brain. Question though, if the objects are already cached in the EJB app server, is there still as high

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-12 Thread Aleksander Grzebyta
Paul Kavanagh" <[EMAIL PROTECTED]>; "Andre Selton" <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 2:42 AM Subject: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :) > Okay, I figured it out

Re: [JBoss-user] What's best practice for remote calls?? Solved: SOOO close to CMR (1-to-many) working...I may just wet myself! :)

2002-06-12 Thread Andre Selton
<[EMAIL PROTECTED]> wrote: >I think you will find that the trick is use a > custom finder to return the collection of remote > objects directly from the (User) home interface. I was with the same problem of Brandon. Thanks to him I can understant what is the problem. But the solution still