This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD access beans" Watch "WSAD access beans" New topic

WSAD access beans

neva elsaeed

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

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.
Have you tried LearnNowOnline?
subject: WSAD access beans