667514 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 6 Messages: 6 Messages: 6 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

RESTEasy 1.2 Released

Posted by: Bill Burke on November 06, 2009 DIGG
After a few months RESTEasy 1.2.GA is finally ready. This is mostly a cleanup, bug fix, and refactoring release, but here are some features of note:

I'd also like to thank Attila Kiraly for fixing some bugs that cropped up in Multipart and XOP support. Pascal de Kloe, a new committer, also helped refactor content negotiation to support charset variants. Solomon Duskis continues to be a seasoned veteran and helps with bugs and features here and there.

What's next? I'd like to focus next on getting complete OAuth support in. I think it will help out our REST-* efforts as we look to secure the services we're defining there. RESTEasy is also going to expand beyond a simple JAX-RS implementation. As JBoss projects like HornetQ, jBPM, Drools, Transactions, and Infinispan obtain RESTful interfaces, I'll be creating a REST profile under the RESTEasy umbrella.

Useful links:

Threaded replies

·  RESTEasy 1.2 Released by Bill Burke on Fri Nov 06 06:51:37 EST 2009
  ·  Congratulations by George Gastaldi on Fri Nov 06 10:55:40 EST 2009
  ·  Forgot to thank Lincoln Baxter!!! by Bill Burke on Fri Nov 06 11:00:20 EST 2009
  ·  Apache Client 4.0 by Oleg Kalnichevski on Sat Nov 07 05:33:27 EST 2009
    ·  Re: Apache Client 4.0 by Bill Burke on Sat Nov 07 15:42:57 EST 2009
      ·  Re: Apache Client 4.0 by Oleg Kalnichevski on Sat Nov 07 16:41:51 EST 2009
  ·  upgraded on thursday by jilles van gurp on Sun Nov 08 17:36:06 EST 2009
  Message #328921 Post reply Post reply Post reply Go to top Go to top Go to top

Congratulations

Posted by: George Gastaldi on November 06, 2009 in response to Message #328757
Congratulations on the JBoss RestEasy team for another great release. Using it and addicted to it ! :D

  Message #328926 Post reply Post reply Post reply Go to top Go to top Go to top

Forgot to thank Lincoln Baxter!!!

Posted by: Bill Burke on November 06, 2009 in response to Message #328757
Forgot to thank Lincoln Baxter for adding client-side exception handling support!

  Message #328952 Post reply Post reply Post reply Go to top Go to top Go to top

Apache Client 4.0

Posted by: Oleg Kalnichevski on November 07, 2009 in response to Message #328757
> Added Apache Client 4.0 support. It seems a bit quirky and slow compared to 3.1

Based on feedback of our users and our own benchmark results HttpClient 4.0 is known to be faster than 3.1 for small to medium messages, but not by much. HttpCore is _significantly_ faster than both if performance matters to you more than features.

Could you please expand on being "a bit quirky"?

Full disclaimer: I am one of Apache HttpClient developers

Oleg

  Message #328958 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Apache Client 4.0

Posted by: Bill Burke on November 07, 2009 in response to Message #328952
> Added Apache Client 4.0 support. It seems a bit quirky and slow compared to 3.1

Based on feedback of our users and our own benchmark results HttpClient 4.0 is known to be faster than 3.1 for small to medium messages, but not by much. HttpCore is _significantly_ faster than both if performance matters to you more than features.

Could you please expand on being "a bit quirky"?

Full disclaimer: I am one of Apache HttpClient developers

Oleg


I should both a) look into it a bit more and b) take this offline. I switched out 3.1 for 4.0 and RESTEasy testsuite ran 4-10 times slower (I forget the number but it was significant enough to rollback to 3.1). I really didn't have the cycles to look into it much, but it seemed that POSTs were really slow at times. Just a wild guess, but connection cleanup might be the issue because it seemed intermittent.

I want to use 4.0 so I'll probably ping you sometime in the near future.

Also, it would be cool to merge some RESTEasy client work with Apache Client. Have something JAX-RS friendly that doesn't have the overhead of wrapping a JAX-RS client api on top of Apache Client. I also have a bunch of ideas for asychronicity. Anyways...Thats a few months off for me.

--
Bill

  Message #328959 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Apache Client 4.0

Posted by: Oleg Kalnichevski on November 07, 2009 in response to Message #328958
> I switched out 3.1 for 4.0 and RESTEasy testsuite ran 4-10 times slower (I forget the number but it was significant enough to rollback to 3.1).


The only plausible explanation for such a massive performance degradation could be improper configuration of the connection pool leading to worker threads spending most the time blocked waiting for a connection to become available.

You are very welcome to let us know about ideas at dev@hc.apache.org

Oleg

  Message #328973 Post reply Post reply Post reply Go to top Go to top Go to top

upgraded on thursday

Posted by: jilles van gurp on November 08, 2009 in response to Message #328757
I updated our code base on Thursday to Resteasy 1.2 and httpclient 4.0 (somebody 'accidentally' added httpclient 4 dependency elsewhere and I decided to just go ahead and get rid of 3.1. It was relatively straightforward to do. I might have delayed if I'd known about the potential issues with httpclient 4.0. Anyway, so far so good and I can always roll back to 3.1 if we run into any issues. I haven't done any load tests with this so far.

I did go for the threadsafe connection manager btw with some reasonable settings suggested in the httpclient tutorial. Using the default connection manager would not be appropriate on an application server probably and might explain the slowdown.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map