The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

bcarun (1) [Avatar] Offline

I have created a EntityBean using Xdoclet 1.2.3.

I use the session Facade design pattern.

Bean Class is: implements EntityBean
CMP Class is: NodeCMP extends NodeBean
Data class is: NodeData (which has all the getters and setters of bean entities)

This NodeCMP is generated by Xdoclet. I has a method named getData() which returns an object of type NodeData.

I want to know the actuall use of the generated CMP class which is said as CMP layer.

Also, How do I call the getData method in the NodeCMP class? I ask this because we dont call any methods in the Bean class as the container does these things for us. Since this NodeCMP is a derived class of NodeBean, Can we access it directly without going through the component interface?

Please help me out to understand the CMP layer and concept behind it.

Thanks in Advance,