This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Question - Best choice for framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Question - Best choice for framework" Watch "Question - Best choice for framework" New topic
Author

Question - Best choice for framework

Saurabh Joshi
Ranch Hand

Joined: Nov 15, 2007
Posts: 37
Hi,

I need your suggestions on this,
I need a framework where I can do the following -
a. XML based verification code
b. Read from JMS
c. Call other Web Services.

Can you please suggest me some of the XML based frameworks where I can achieve the above.

Regards,
Saurabh.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

An "XML-based framework" doesn't make much sense to me on its own; XML is a markup language (used in places it doesn't make sense, but whatever). There's no (reasonable) way to "Read from JMS" using XML, or call other web services.

If you just need to validate XML, use a schema. The JMS and web service stuff can be handled in a huge variety of ways; I tend to use Spring for JMS abstraction, and things like JAXB/JAX-RS/Jersey for XML-based web services, but it really depends on the environment and my needs. (These days I try to use something in Groovy, JRuby, etc. that have cleaner support for XML.)
Saurabh Joshi
Ranch Hand

Joined: Nov 15, 2007
Posts: 37
Thanks David for the reply,

I don't have much knowledge about JRuby.
Can you please share how I can use JRuby for JMS and web services stuff.

As per my understanding, we might have to use the other APIs for this or do we have some in-built API in JRuby for this.

Pardon me if I sound very lost......

Thank you,
Saurabh.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not saying you have to use JRuby/etc., I'm saying that I hate dealing with XML, so when I deal with it, I try to use a language that has cleaner support for it. JRuby/etc. are just JVM languages: they have complete access to any Java library.
Saurabh Joshi
Ranch Hand

Joined: Nov 15, 2007
Posts: 37
Absolutely, I got the message.
But if I have to use Java libraries to do everything, then why to use it through JRuby(example)?

Actually one of the senior architect suggested me the same option, I am just trying to understand exactly why should I use JRuby.

My apologies for making this too elastic

Thanks a lot, sir.

Regards,
Saurabh.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I already said why *I* use JRuby for XML; it's easier.

Plus I really dislike Java as a language--I like something that's cleaner and more expressive.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question - Best choice for framework
 
Similar Threads
JSF 2.0, Richfaces 4.0 with Spring 3.0 and Hibernate
Are Servlet days numbered?
Hibernate Annotations - Are they intrusive?
Data Encapsulation
How i can use JAXB to convert a ResultSet to XML document?