This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Websphere and the fly likes WSAD access beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD access beans" Watch "WSAD access beans" New topic
Author

WSAD access beans

neva elsaeed
Greenhorn

Joined: Aug 16, 2004
Posts: 13
Hello All,

In my project, I have entity beans that have relatioships between them. These beans are accessed locally so I only generate local interfaces for them. The problem arised when I wanted to generate access beans for these entity beans keeping in mind that I want the relationship to be reflected in the access bean.
If I create an access bean (JavaBean wrapper or copy helper) for
an enterprise bean involved in a relationship that has been made navigable, the navigation method of the access bean returns an access bean corresponding to the enterprise bean at the other side of the relationship.
This exactly what I want only I have 1 problem, wrapper and copy helper access beans are only created for entity beans with remote interfaces!!

Does that mean that in order to get access beans reflecting the relatioships, I must create remote interfaces??
If not, how do I get around it??
Michael Dirks
Greenhorn

Joined: May 22, 2006
Posts: 4
Using the access beans in WSAD can only be done on beans with remote access. You can, however manually create an access bean for local interfaces and use it as a wrapper to your interface. If you are interested in what the code looks like.... email me.
 
jQuery in Action, 2nd edition
 
subject: WSAD access beans
 
Similar Threads
elaborate the reason for Local interface with EJB 2.0 CMR
Test 488 questions
long post IBM.158
Can session beans interact??
My SCEA Part 1Study Notes