aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Read only CMP field in Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Read only CMP field in Weblogic" Watch "Read only CMP field in Weblogic" New topic
Author

Read only CMP field in Weblogic

Kevin Smither
Ranch Hand

Joined: Oct 22, 2007
Posts: 30
I have an EJB 2.0 CMP bean where I want to map one of the attributes as "read only", meaning the value is loaded from the DB but when the bean is persisted the value in this field should not be written back to the DB column. The entity's value is persisted from another batch cycle and does not originate from within this application, I do not have the option of redesigning the system, have to work with what it is ;-)

From my research I can find this feature is available in JBoss but I cannot find any such support in Weblogic (v9.2). If anyone has information on this I'd appreciate sharing it Thanks much!
ashutosh sharmaIBM
Greenhorn

Joined: Jun 05, 2006
Posts: 4
If you are using WebLogic Workshop(which is eclipse based)-you can add in the annotations:


And this information goes into "weblogic-ejb-jar.xml" once you compile it via ejbGen.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"ashutosh sharmaIBM",
Please check your private messages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read only CMP field in Weblogic
 
Similar Threads
Deletion of a table mapped to an Entity Bean
CMP - CMR for the same field?
EJB CMP field read only?
CM Relationship from CMP bean to BMP bean
Identity keys, WebLogic and EJB CMP CMR