LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2005, 08:05 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
in what ocasions is it WRONG to use "this" en EJBs?


I come up with this questions because of this situation:

I like to use a separete business interface to define the methods one EJB has. It's not a Remote Interface, nor local. It's just an interface. I then extend it to make the local and the remote interface. Then, at the bean, I extend one EntityBean or SessionBean class AND implement my business interface, so I can make sure all the methods I defined be present in my bean. No problem so far.

Now... in one of the methods, I have to use a finder of another bean to locate a number of beans related to this one. So.... as my bean implements the interface needed in the finder, i can call AnotherBeanHome.findBlah(this).... but I think this is not valid... is it? In case it is wrong, how can I correct it?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
What is wrong with SuSE 8.2 : "YaST2 - Evaluating package selection". Paul_Lee Linux - Newbie 10 09-18-2004 09:48 AM
"GIF-LIB error: Wrong record type detected" Megamieuwsel Linux - General 7 04-29-2004 04:38 PM
RH9,it apper something wrong when I type Command "rpm" setactive Linux - General 1 07-31-2003 10:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration