I have a similar issue. I am using BeanUtils from Apache Jakarta project. Its 
an util to introspect the Java bean and get the attribute names and values 
etc. 

That  should probably help you instead of hard coding.
-Suresh


On Wednesday 02 January 2002 22:57, [EMAIL PROTECTED] wrote:
> hi all,
>       i am a  beginner with Castor.
> Issue that i have to face is XML to Java mapping
> for my application.
> My application consists of different EJB running on WLS and
> one DispatcherEJB which forwards the request to the correct EJB.
> Flow of action is
>
> Client---->Dispatcher--->EJB
>
> Now, here is hte problem: i want to be able call EJBs using
> XML or Java Objects, that's why i was looking for an XML to
> java mapping.
>
> problem is that the solution is towards a structure that
> resembles a java.util.Map, and in all the examples of
> XML to java mapping, the structure used is either a JavaBean
> or a Collection.
> I do not want to use Collection, since when the Dispatcher will have
> mapped the XML to a JavaObject containing a Collection of attributes,
> then the EJB to which this JavaObject is passed cannot fetch the
> attributes by name.
> So, can anyone suggest me the correct approach??
> 1 - shall i give up XML to java mapping and use instead only SAX?
> 2 - shall i still use XML to java mapping, and then i write some
>     sort of hard-coded loop in the EJB that have to process the JavaObject
>     so that i know exactly with which attribute i am dealing?
> 3 - is there some other way??
>
>
> hope someone can help me
>
> thanx in advance and regards
>       marco
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to