File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes CM Relationship from CMP bean to BMP bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CM Relationship from CMP bean to BMP bean" Watch "CM Relationship from CMP bean to BMP bean" New topic
Author

CM Relationship from CMP bean to BMP bean

Richard Carr
Greenhorn

Joined: Apr 15, 2003
Posts: 17
Hi,
Can I declare a unidirectional CM Relationship from
a CMP bean to a BMP bean?
I will have a complex of CMP beans persisted in one database. I have to make use of some existing data in a second DB and plan to encapsulate that as a simple BMP bean (I can't modify the schema). I'll want to access that BMP bean from one of the CMP beans - a CM relationship seems the simplest solution.
Or must the targets as well as the sources of CM relationships be CMP beans?
Thanks,
Rich.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Only CMP Beans can participate in Container Managed Relationships.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CM Relationship from CMP bean to BMP bean