Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
EJB and other Jakarta /Java EE Technologies
EJB bean implementing local/remote interfaces
Justin Chu
Ranch Hand
Posts: 209
1
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can I declare my EntityBean to implement the local and remote interfaces?
I'd like to achieve the following:
/** * ejb 2.0 CMP entity bean * @ejbgen:local-method */ public PersonVO getPersonValue(){ return VOFactoryLocal.createPersonVO((PersonLocal)this); } /** * @ejbgen:remote-method */ public PersonVO getPersonValueRemote(){ return VOFactoryRemote.createPersonVO((PersonRemote)this); }
Note that "this" refers to the
EJB
Bean object.
[ September 21, 2006: Message edited by: Chu Tan ]
[ September 21, 2006: Message edited by: Chu Tan ]
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How does CMP convert db types to java types?
struts, error reporting
Executable JAR help!
Stop EJB Processing
Manually starting transaction
More...