[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Java and XML



Great when only type but not number of arguments change.
-----Original Message-----
From: Jack J. Coleman [mailto:jackjc@bellsouth.net]
Sent: Tuesday, February 19, 2002 11:39 AM
To: ajug-members@www.ajug.org
Subject: RE: Java and XML

You can accomplish the same thing using abstract data types as method parameters (java classes that encapsulate all of the information that you want to send to a method).  I find this simple technique very useful.  XML would seem to be overkill in this context.
-----Original Message-----
From: Kevin O'Neill Stoll [mailto:kevinostoll@yahoo.com]
Sent: Tuesday, February 19, 2002 10:42 AM
To: ajug-members@www.ajug.org
Subject: Java and XML

Got a question about Java and XML:
 
    Let's say you are interacting with some sort of Session bean and the method you are going to access is going to return a collection. It seems to me that you could do this just as easily by returning an XML string to the client. The problem that I am having is that I can't find anyone who supports this idea, via examples or in technical articles, so it makes me wonder if I am wrong but I just don't know it yet :P
 
 
    As well, I spoke to a VB developer friend of mine and they use XML to pass a method parameters. He said this was extremely useful because if he wants to add a parameter to a public method that he does not have to break his binary compatibility. Once again, this sounds great for Java but I have not been able to find any examples in how-to's or technical articles.
 
 
    I'm interested in hearing some feedback on the up's and down's of using XML to send parameters and return collections or lists. As well as, where I might find some examples of how someone else has implemented it.
 

Thank you,
 
Kevin O'Neill Stoll
http://kevinstoll.org/
(770) 569-7251