On Tue, 20 Nov 2001, Jozsa Kristof wrote:

>   My current task is to feed Cocoon with XML data coming from EJBs, all that
> running in JBoss. I thought it'd be easy to use Castor on my CMP entity
> beans, therefore having an xml representation of them, which can be passed
> in a string to Cocoon and render it to any appropriate form. I'm not sure if
> my concept is right, or I can do that..

> I feel stuck. I'm not sure even if I can use Castor to get my entity bean
> transformed to XML, as 'Person' is an interface actually, not a class.. If
> the problem mainly relies here, then how should I use Castor the correct way
> to transform my EJB data to an XML string?

I could suggest a couple of different approaches, but am not going to
argue the merits of them:
  - Use Castor JDO for persistence instead of entity beans.  This would
provide you with an "all castor" solution, which might be easier to work
with
  - Use data objects instead of the entity bean when converting to xml,
this would get around the "Person is an interface not a class" problem

cheers
dim


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to