Re: [Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final

2013-04-23 Thread Tom Coleman


On Apr 23, 2013, at 9:27 AM, Bill Burke wrote:

 The deprecated ClientResponse object extends javax.ws.rs.core.Response. 
 Response has had a bunch of new methods added to it in JAX-RS 2.0 
 which I didn't implement (or want to implement) for our deprecated 
 client framework.  But it looks like it broke some backward 
 compatibility too, which wasn't aware of.
 
 My suggestion is to rewrite the examples using JAX-RS 2.0 API, or to fix 
 the example to use ClientResponse.getResponseHeaders()

Thanks, Bill.

getResponseHeaders() did the trick.  I didn't spot that method in the javadocs.




--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final

2013-04-23 Thread Bill Burke


On 4/23/2013 1:28 PM, Tom Coleman wrote:


 On Apr 23, 2013, at 9:27 AM, Bill Burke wrote:

 First apologies.  This is a beta and I didn't really go through and
 manually test the examples that were not automated.  I'm currently
 working on greatly improving the JBoss examples so that you do not have
 to download or manually start a jboss instance.

 If I may make a suggestion...

 It would be good if you could include a working ear-ejb-war example for 
 AS7/EAP 6.
 I've really struggled with getting this type of application working in AS7, 
 and I'm not there yet.

 You talked about removing the ejb-integration example.  I don't think it 
 would be hard (for you)
 to package it as an AS7 test.

 I understand how you might want to showcase how simple you can make EJB 
 integration, but I think
 the ear-ejb-war example is an important one for those of us who are faced 
 with having to deploy
 applications currently running in competitive REST implementations.


FOr standard Java EE 6 integration, JAX-RS EJBs can only be in the 
WEB-INF/classes or a ejb-jar within WEB-INF/lib.  Any other deployment 
combination needs to do resteasy specific integration (the jndi ref 
stuff) and you're stuck with SLSBs only and parameter-only injection.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users


Re: [Resteasy-users] Resteasy 3.0-beta-4 oreilly-workbook-as7 ex11_1 example fails on AS 7.1.1.Final

2013-04-23 Thread William Antônio Siqueira
Tom,

I think I something similar in this project:

https://github.com/jesuino/crud-frameworks/blob/master/crud-frameworks-server/crud-frameworks-rest/src/main/java/org/jugvale/crudframeworks/resource/FrameworkResource.java


I put the EJB in a JAR and I'm using it in my WAR, all in a mavenized EAR:

https://github.com/jesuino/crud-frameworks/blob/master/crud-frameworks-server/

You can clone it and built it, and deploy to EAP 6/AS 7 :)





--
*William Antônio Siqueira*
*Java Support Analyst*
*
*
*http://fxapps.blogspot.com*
*http://www.williamantonio.wordpress.com*
*http://williamprogrammer.com*


2013/4/23 Tom Coleman tcole...@autowares.com



 On Apr 23, 2013, at 9:27 AM, Bill Burke wrote:

  First apologies.  This is a beta and I didn't really go through and
  manually test the examples that were not automated.  I'm currently
  working on greatly improving the JBoss examples so that you do not have
  to download or manually start a jboss instance.

 If I may make a suggestion...

 It would be good if you could include a working ear-ejb-war example for
 AS7/EAP 6.
 I've really struggled with getting this type of application working in
 AS7, and I'm not there yet.

 You talked about removing the ejb-integration example.  I don't think it
 would be hard (for you)
 to package it as an AS7 test.

 I understand how you might want to showcase how simple you can make EJB
 integration, but I think
 the ear-ejb-war example is an important one for those of us who are faced
 with having to deploy
 applications currently running in competitive REST implementations.






 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
 ___
 Resteasy-users mailing list
 Resteasy-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/resteasy-users

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users