You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
(16) |
Apr
(18) |
May
(13) |
Jun
(100) |
Jul
(165) |
Aug
(53) |
Sep
(41) |
Oct
(84) |
Nov
(113) |
Dec
(171) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(84) |
Feb
(30) |
Mar
(75) |
Apr
(113) |
May
(87) |
Jun
(96) |
Jul
(127) |
Aug
(106) |
Sep
(191) |
Oct
(142) |
Nov
(106) |
Dec
(83) |
| 2010 |
Jan
(62) |
Feb
(93) |
Mar
(92) |
Apr
(58) |
May
(52) |
Jun
(104) |
Jul
(109) |
Aug
(94) |
Sep
(75) |
Oct
(54) |
Nov
(65) |
Dec
(38) |
| 2011 |
Jan
(53) |
Feb
(84) |
Mar
(95) |
Apr
(24) |
May
(10) |
Jun
(49) |
Jul
(74) |
Aug
(23) |
Sep
(67) |
Oct
(21) |
Nov
(62) |
Dec
(50) |
| 2012 |
Jan
(26) |
Feb
(7) |
Mar
(9) |
Apr
(5) |
May
(13) |
Jun
(7) |
Jul
(18) |
Aug
(48) |
Sep
(58) |
Oct
(79) |
Nov
(19) |
Dec
(15) |
| 2013 |
Jan
(33) |
Feb
(21) |
Mar
(10) |
Apr
(22) |
May
(39) |
Jun
(31) |
Jul
(15) |
Aug
(6) |
Sep
(8) |
Oct
(1) |
Nov
(4) |
Dec
(3) |
| 2014 |
Jan
(17) |
Feb
(18) |
Mar
(15) |
Apr
(12) |
May
(11) |
Jun
(3) |
Jul
(10) |
Aug
(2) |
Sep
(3) |
Oct
(4) |
Nov
(4) |
Dec
(1) |
| 2015 |
Jan
|
Feb
(6) |
Mar
(5) |
Apr
(13) |
May
(2) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(6) |
Oct
(12) |
Nov
(12) |
Dec
(12) |
| 2016 |
Jan
(10) |
Feb
(3) |
Mar
(8) |
Apr
(4) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
|
From: Bill B. <bb...@re...> - 2008-05-02 20:14:55
|
I won't "publicly" release it until Monday, but it is on sourceforge, and I've updated the wiki and javadocs a bit. Best regards, Bill -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Cecil N. <cec...@gm...> - 2008-05-02 20:09:53
|
Hello- A question on resteasy and spring...
I have used resteasy to connect to my database as a test case by hard/soft
coding in a properties file. But to do it right I am trying to switch to a
connection pool. So I put together the applicationContext.xml file for
Spring, etc. It isn't working yet... I have tried various approaches, but
bottom line, it looks like spring is creating instances and so is resteasy.
So when resteasy tries to get my jdbc template instance, it is always null.
Based on the wiki article on this subject, I think the resteasy spring
version is supposed to inject *after* resteasy creates the instance. I
suspect there's more config info that I am missing. Hope someone can point
the way here.
Thanks
Here are some snippets in case it helps:
*from web.xml*
<web-app>
<!-- JSR 311 stuff -->
<display-name>Archetype Created Web Application</display-name>
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
<listener>
<listener-class>org.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>
<listener>
<listener-class>org.resteasy.plugins.server.servlet.SpringContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>Resteasy</servlet-name>
<servlet-class>org.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Resteasy</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
</web-app>
*from applicationContext.xml*
<bean id="plmwh"
class="org.springframework.jndi.JndiObjectFactoryBean"
lazy-init="true">
<property name="jndiName" value="plmwh"></property>
</bean>
<bean id="gxoJdbcTemplate" class="gxo.dao.GXOJDBCTemplate">
<constructor-arg value="true" />
<property name="dataSource" ref="plmwh" />
</bean>
<bean id="dbquery3_dao" class="dbquery3_dao" >
<property name="jdbcTemplate">
<ref bean="gxoJdbcTemplate" />
</property>
</bean>
|
|
From: Christian S. <chr...@gm...> - 2008-04-10 12:16:34
|
Hi Bill,
thanks I have checked out the latest version and it works now.
regards,
Christian
2008/4/9, Bill Burke <bb...@re...>:
>
> Ok, this is fixed in trunk/ I'm traveling the next week, so I won't be
> able to do another release in 2 weeks or so. Please check out trunk if you
> want this bug fix.
>
> Bill
>
> Bill Burke wrote:
>
> > Ok, thanks. I'll take a look sometime today and put out a patch
> > tomorrow. I think I'm just not matching on properties. I thought I was,
> > guess not.
> >
> > Christian Sadilek wrote:
> >
> > > Hi Bill,
> > >
> > > thanks for your reply. this is exactly what I tried to do:
> > >
> > > I have the following 4 methods:
> > > @ProduceMime("application/xml;schema=foo")
> > > @GET
> > > public String getMeFoo(@PathParam("obj-id") int objectId) {
> > > return "<foo>"+objectId+"</foo>";
> > > }
> > >
> > > @ProduceMime("application/xml;schema=bar")
> > > @GET
> > > public String getMeBar(@PathParam("obj-id") int objectId) {
> > > return "<bar>"+objectId+"</bar>";
> > > }
> > > @ConsumeMime("application/xml;schema=foo")
> > > @PUT
> > > public void putMeFoo(String xml) {
> > > System.out.println("foo");
> > > }
> > > @ConsumeMime("application/xml;schema=bar")
> > > @PUT
> > > public void putMeBar(String xml) {
> > > System.out.println("bar");
> > > }
> > > I used the same annotations on the client interface and created it
> > > using the ProxyFactory.
> > > @GET
> > > @ProduceMime("application/xml;schema=foo")
> > > public String getMeFoo(@PathParam("obj-id") int objectId);
> > >
> > > @GET
> > > @ProduceMime("application/xml;schema=bar")
> > > public String getMeBar(@PathParam("obj-id") int objectId);
> > > @PUT
> > > @ConsumeMime("application/xml;schema=foo")
> > > public void putMeFoo(String xml);
> > > @PUT
> > > @ConsumeMime("application/xml;schema=bar")
> > > public void putMeBar(String xml);
> > > However, only the "foo methods" are called (even if I call
> > > getMeBar() or putMeBar()). I tried it with beta1 and beta2.
> > > Am I doing something wrong?
> > >
> > > As far as I was able to trace the problem I end up with 4 different
> > > uriParamChildren in the root PathSegmentNode. 2 for GET and
> > > 2 for PUT. The first one to be analyzed in
> > > PathSegmentNode.findResourceInvoker always wins because the media types are
> > > compatible as MediaType.isCompatible() "only" checks for the type and
> > > subtype (not for any mime properties).
> > >
> > > Thanks again for your help.
> > >
> > > king regards,
> > > Christian Sadilek
> > >
> > > 2008/4/7, Bill Burke <bb...@re... <mailto:bb...@re...>>:
> > >
> > > Sorry, that should be
> > >
> > > @ConsumeMime("application/xml;schema=foo")
> > > @PUT
> > > public void putMe(String xml) {}
> > >
> > >
> > > Bill Burke wrote:
> > >
> > > Christian,
> > >
> > > It doesn't work already?
> > >
> > > Can't you do:
> > >
> > > @ConsumeMime("application/xml;schema=foo")
> > > @GET
> > > public String getMe() {}
> > >
> > > Or do you mean something else?
> > >
> > >
> > > FYI, to subscribe:
> > >
> > > https://lists.sourceforge.net/lists/listinfo/resteasy-developers
> > >
> > >
> > >
> > > Christian Sadilek wrote:
> > >
> > > Hi Bill,
> > >
> > > are there any plans to support MIME properties for XML
> > > content negotiation in RESTeasy like you described in your
> > > Blog
> > >
> > > http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation
> > > ?
> > >
> > > I would like to expose two different xml representations of
> > > a resource and the solution you presented would fit
> > > perfectly.
> > >
> > > Thank you!
> > >
> > > I hope it's o.k. to send you this email directly. I could
> > > not find a user forum.
> > >
> > > kind regards,
> > > Christian Sadilek
> > >
> > >
> > >
> > > -- Bill Burke
> > > JBoss, a division of Red Hat
> > > http://bill.burkecentral.com
> > >
> > >
> > >
> >
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
|
|
From: Andreas H. <a...@ho...> - 2008-04-10 04:33:52
|
> Ok, I fixed this one to be as you said (i verified with spec committee > on behavior). Please checkout trunk if you want the fix. Great! Thanks. I'll give it a spin today. > As far as the polymorphic/dynamic resource locators, I'm not going to > get to that for a week or so because I'm traveling starting tomorrow. > > I'll do a release in about 2 weeks. Sounds good. Andreas |
|
From: Bill B. <bb...@re...> - 2008-04-09 19:17:41
|
Andreas Holstenson wrote: > When looking more into this I realize that I would expect the > following from the > isWriteable(Class, Type, Annotation[]) method: > > * Class is the actual class of what would be written > * Type is the defined type (such as Device or List<String>) > > Does that make sense? > > Thanks for your speedy response! > > // Andreas Ok, I fixed this one to be as you said (i verified with spec committee on behavior). Please checkout trunk if you want the fix. As far as the polymorphic/dynamic resource locators, I'm not going to get to that for a week or so because I'm traveling starting tomorrow. I'll do a release in about 2 weeks. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-04-09 18:56:14
|
Ok, this is fixed in trunk/ I'm traveling the next week, so I won't be
able to do another release in 2 weeks or so. Please check out trunk if
you want this bug fix.
Bill
Bill Burke wrote:
> Ok, thanks. I'll take a look sometime today and put out a patch
> tomorrow. I think I'm just not matching on properties. I thought I
> was, guess not.
>
> Christian Sadilek wrote:
>> Hi Bill,
>>
>> thanks for your reply. this is exactly what I tried to do:
>>
>> I have the following 4 methods:
>> @ProduceMime("application/xml;schema=foo")
>> @GET
>> public String getMeFoo(@PathParam("obj-id") int objectId) {
>> return "<foo>"+objectId+"</foo>";
>> }
>>
>> @ProduceMime("application/xml;schema=bar")
>> @GET
>> public String getMeBar(@PathParam("obj-id") int objectId) {
>> return "<bar>"+objectId+"</bar>";
>> }
>>
>> @ConsumeMime("application/xml;schema=foo")
>> @PUT
>> public void putMeFoo(String xml) {
>> System.out.println("foo");
>> }
>>
>> @ConsumeMime("application/xml;schema=bar")
>> @PUT
>> public void putMeBar(String xml) {
>> System.out.println("bar");
>> }
>>
>> I used the same annotations on the client interface and created it using
>> the ProxyFactory.
>> @GET
>> @ProduceMime("application/xml;schema=foo")
>> public String getMeFoo(@PathParam("obj-id") int objectId);
>>
>> @GET
>> @ProduceMime("application/xml;schema=bar")
>> public String getMeBar(@PathParam("obj-id") int objectId);
>>
>> @PUT
>> @ConsumeMime("application/xml;schema=foo")
>> public void putMeFoo(String xml);
>>
>> @PUT
>> @ConsumeMime("application/xml;schema=bar")
>> public void putMeBar(String xml);
>>
>> However, only the "foo methods" are called (even if I call getMeBar() or
>> putMeBar()). I tried it with beta1 and beta2.
>> Am I doing something wrong?
>>
>> As far as I was able to trace the problem I end up with 4 different
>> uriParamChildren in the root PathSegmentNode. 2 for GET and
>> 2 for PUT. The first one to be analyzed in
>> PathSegmentNode.findResourceInvoker always wins because the media types
>> are compatible as MediaType.isCompatible() "only" checks for the type
>> and subtype (not for any mime properties).
>>
>> Thanks again for your help.
>>
>> king regards,
>> Christian Sadilek
>>
>> 2008/4/7, Bill Burke <bb...@re... <mailto:bb...@re...>>:
>>
>> Sorry, that should be
>>
>> @ConsumeMime("application/xml;schema=foo")
>> @PUT
>> public void putMe(String xml) {}
>>
>>
>> Bill Burke wrote:
>>
>> Christian,
>>
>> It doesn't work already?
>>
>> Can't you do:
>>
>> @ConsumeMime("application/xml;schema=foo")
>> @GET
>> public String getMe() {}
>>
>> Or do you mean something else?
>>
>>
>> FYI, to subscribe:
>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>>
>>
>>
>> Christian Sadilek wrote:
>>
>> Hi Bill,
>>
>> are there any plans to support MIME properties for XML
>> content negotiation in RESTeasy like you described in your
>> Blog
>> http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation?
>>
>> I would like to expose two different xml representations of
>> a resource and the solution you presented would fit perfectly.
>>
>> Thank you!
>>
>> I hope it's o.k. to send you this email directly. I could
>> not find a user forum.
>>
>> kind regards,
>> Christian Sadilek
>>
>>
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>>
>>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Andreas H. <a...@ho...> - 2008-04-09 15:00:18
|
Hello,
> I need more information on this. The spec says that either you put your
> annotations on an interface or on the class/superclass and not both. Can you
> show me more pseudo code?
I have attached some more code below. If the spec says that you either
annotate the interface or the class/superclass that you can mentally
remove the getSelf() defined in Device. It would move into the
concrete implementation.
interface Device {
@GET
Device getSelf();
}
@Path("devices")
class RootResource {
Device getDevice(String id) {
// lookup and return a device, which is either Device1 or Device2
}
}
class Device1 implements Device {
public Device getSelf() {
return this;
}
@GET
@Path("something")
public Object getSomething() {
// Get something
}
}
class Device2 implements Device {
public Device getSelf() {
return this;
}
@GET
@Path("else")
public Object getSomethingElse() {
// Get something else
}
}
> So derivatives of Device are returned from getDevice()? The problem with
> this is a performance one. Resteasy would have to calculate and introspect
> and match the request on every single request. There would be no way to
> optimize.
>
> I guess I'll have to support it... I'll see what I can do today and get
> out a new release.
>
Yes, exactly. Thanks! Take your time with the implementation, I'm not
in a hurry.
>
> Well, I'm in a quandry with this one. Reason? Generic types. Say you
> want to write a multipart provider that matches on List<String>? it is
> impossible to determine the generic type of the object.
>
> I switch it to matching on the returned entity's class.
When looking more into this I realize that I would expect the
following from the
isWriteable(Class, Type, Annotation[]) method:
* Class is the actual class of what would be written
* Type is the defined type (such as Device or List<String>)
Does that make sense?
Thanks for your speedy response!
// Andreas
|
|
From: Bill B. <bb...@re...> - 2008-04-09 13:25:44
|
Andreas Holstenson wrote:
> Hello,
>
> I have recently started testing Resteasy JAX-RS. I'm extremely happy so far,
> but I have run into a few problems. I have a application that was working
> with Jersey that is now deployed on Resteasy. The problem here is the
> following:
>
> I have a method in my root resource that returns an interface called Device
> such as:
>
> @Path("{id}")
> Device getDevice(@PathParam("id") String id);
>
> The device interface in turn has JAX-RS annotations on it:
>
> interface Device {
> @GET
> Device getSelf();
> }
>
> The device implementation have several implementations that each one have
> different JAX-RS resource. My problem is that it seems to be impossible reach
> those resources as it seems that Resteasy always works against the interface
> for lookups.
>
I need more information on this. The spec says that either you put your
annotations on an interface or on the class/superclass and not both.
Can you show me more pseudo code?
So derivatives of Device are returned from getDevice()? The problem
with this is a performance one. Resteasy would have to calculate and
introspect and match the request on every single request. There would
be no way to optimize.
I guess I'll have to support it... I'll see what I can do today and get
out a new release.
> Is this the intended behavior? I don't remember what the JSR says about this,
> but it worked fine with Jersey.
>
> Also on a related note it seems that MessageBodyWriter.isWriteable(Class,
> Type, Annotation[]) gets passed the declared type of the method instead of
> the actual class of the return value. This caused problems with JAXBProvider
> as my concrete implementations had a @XmlRootElement annotation but the
> actual Device implementation did not.
>
Well, I'm in a quandry with this one. Reason? Generic types. Say you
want to write a multipart provider that matches on List<String>? it is
impossible to determine the generic type of the object.
I switch it to matching on the returned entity's class.
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Andreas H. <a...@ho...> - 2008-04-09 06:19:10
|
Hello,
I have recently started testing Resteasy JAX-RS. I'm extremely happy so far,
but I have run into a few problems. I have a application that was working
with Jersey that is now deployed on Resteasy. The problem here is the
following:
I have a method in my root resource that returns an interface called Device
such as:
@Path("{id}")
Device getDevice(@PathParam("id") String id);
The device interface in turn has JAX-RS annotations on it:
interface Device {
@GET
Device getSelf();
}
The device implementation have several implementations that each one have
different JAX-RS resource. My problem is that it seems to be impossible reach
those resources as it seems that Resteasy always works against the interface
for lookups.
Is this the intended behavior? I don't remember what the JSR says about this,
but it worked fine with Jersey.
Also on a related note it seems that MessageBodyWriter.isWriteable(Class,
Type, Annotation[]) gets passed the declared type of the method instead of
the actual class of the return value. This caused problems with JAXBProvider
as my concrete implementations had a @XmlRootElement annotation but the
actual Device implementation did not.
Oh, both of these issues are tested against 1.0-beta-2, as I don't have time
right now to check against the trunk.
// Andreas Holstenson
|
|
From: Andreas <a...@ho...> - 2008-04-08 19:04:05
|
Hello,
I have recently started testing Resteasy JAX-RS. I'm extremely happy so far,
but I have run into a few problems. I have a application that was working
with Jersey that is now deployed on Resteasy. The problem here is the
following:
I have a method in my root resource that returns an interface called Device
such as:
@Path("{id}")
Device getDevice(@PathParam("id") String id);
The device interface in turn has JAX-RS annotations on it:
interface Device {
@GET
Device getSelf();
}
The device implementation have several implementations that each one have
different JAX-RS resource. My problem is that it seems to be impossible reach
those resources as it seems that Resteasy always works against the interface
for lookups.
Is this the intended behavior? I don't remember what the JSR says about this,
but it worked fine with Jersey.
Also on a related note it seems that MessageBodyWriter.isWriteable(Class,
Type, Annotation[]) gets passed the declared type of the method instead of
the actual class of the return value. This caused problems with JAXBProvider
as my concrete implementations had a @XmlRootElement annotation but the
actual Device implementation did not.
Oh, both of these issues are tested against 1.0-beta-2, as I don't have time
right now to check against the trunk.
// Andreas Holstenson
|
|
From: Bill B. <bb...@re...> - 2008-04-08 12:24:53
|
Ok, thanks. I'll take a look sometime today and put out a patch
tomorrow. I think I'm just not matching on properties. I thought I
was, guess not.
Christian Sadilek wrote:
> Hi Bill,
>
> thanks for your reply. this is exactly what I tried to do:
>
> I have the following 4 methods:
> @ProduceMime("application/xml;schema=foo")
> @GET
> public String getMeFoo(@PathParam("obj-id") int objectId) {
> return "<foo>"+objectId+"</foo>";
> }
>
> @ProduceMime("application/xml;schema=bar")
> @GET
> public String getMeBar(@PathParam("obj-id") int objectId) {
> return "<bar>"+objectId+"</bar>";
> }
>
> @ConsumeMime("application/xml;schema=foo")
> @PUT
> public void putMeFoo(String xml) {
> System.out.println("foo");
> }
>
> @ConsumeMime("application/xml;schema=bar")
> @PUT
> public void putMeBar(String xml) {
> System.out.println("bar");
> }
>
> I used the same annotations on the client interface and created it using
> the ProxyFactory.
> @GET
> @ProduceMime("application/xml;schema=foo")
> public String getMeFoo(@PathParam("obj-id") int objectId);
>
> @GET
> @ProduceMime("application/xml;schema=bar")
> public String getMeBar(@PathParam("obj-id") int objectId);
>
> @PUT
> @ConsumeMime("application/xml;schema=foo")
> public void putMeFoo(String xml);
>
> @PUT
> @ConsumeMime("application/xml;schema=bar")
> public void putMeBar(String xml);
>
> However, only the "foo methods" are called (even if I call getMeBar() or
> putMeBar()). I tried it with beta1 and beta2.
> Am I doing something wrong?
>
> As far as I was able to trace the problem I end up with 4 different
> uriParamChildren in the root PathSegmentNode. 2 for GET and
> 2 for PUT. The first one to be analyzed in
> PathSegmentNode.findResourceInvoker always wins because the media types
> are compatible as MediaType.isCompatible() "only" checks for the type
> and subtype (not for any mime properties).
>
> Thanks again for your help.
>
> king regards,
> Christian Sadilek
>
> 2008/4/7, Bill Burke <bb...@re... <mailto:bb...@re...>>:
>
> Sorry, that should be
>
> @ConsumeMime("application/xml;schema=foo")
> @PUT
> public void putMe(String xml) {}
>
>
> Bill Burke wrote:
>
> Christian,
>
> It doesn't work already?
>
> Can't you do:
>
> @ConsumeMime("application/xml;schema=foo")
> @GET
> public String getMe() {}
>
> Or do you mean something else?
>
>
> FYI, to subscribe:
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
>
>
> Christian Sadilek wrote:
>
> Hi Bill,
>
> are there any plans to support MIME properties for XML
> content negotiation in RESTeasy like you described in your
> Blog
> http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation?
>
> I would like to expose two different xml representations of
> a resource and the solution you presented would fit perfectly.
>
> Thank you!
>
> I hope it's o.k. to send you this email directly. I could
> not find a user forum.
>
> kind regards,
> Christian Sadilek
>
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Bill B. <bb...@re...> - 2008-04-07 20:36:27
|
http://bill.burkecentral.com/2008/04/07/resteasy-jax-rs-10-beta-2-released/ -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-04-07 19:43:22
|
K, if u download BETA 2, everything should be cool.
Bill Burke wrote:
> Oh geez. Thanks Thomas!
>
> here I thought I was going to be able to release today....
>
> :)
>
> I'll have something out tomorrow.
>
> Thomas T. Cremers wrote:
>> Hello,
>>
>> A couple of days ago I ran into a problem with throwing WebApplication
>> examples with a response object:
>>
>> throw new WebApplicationException(Response.status(412)
>>
>> .type("text/plain;charset=utf-8")
>>
>> .entity("Something went wrong").build());
>>
>> Throwing this exception would give a text/plain body with the entity
>> body but with http code 200. Throwing the same exception without an
>> entity would give the expected (412 response with an empty body).
>>
>> After a little code browsing I found the problem in Dispatcher.java
>> invoke method. I created a patch file from revision 133 attached to this
>> email.
>>
>> Regards,
>>
>> Thomas Cremers
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>> Monday, April 7! Use priority code J8TLD2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Resteasy-developers mailing list
>> Res...@li...
>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Thomas C. <ttc...@gm...> - 2008-04-07 19:23:29
|
Hey Bill,
That's fast! I will update tomorrow.
Thanks,
Thomas
On Apr 7, 2008, at 9:08 PM, Bill Burke wrote:
> K, if u download BETA 2, everything should be cool.
>
>
>
> Bill Burke wrote:
>> Oh geez. Thanks Thomas!
>> here I thought I was going to be able to release today....
>> :)
>> I'll have something out tomorrow.
>> Thomas T. Cremers wrote:
>>> Hello,
>>>
>>> A couple of days ago I ran into a problem with throwing
>>> WebApplication examples with a response object:
>>>
>>> throw new WebApplicationException(Response.status(412)
>>> .type("text/
>>> plain;charset=utf-8")
>>> .entity
>>> ("Something went wrong").build());
>>>
>>> Throwing this exception would give a text/plain body with the
>>> entity body but with http code 200. Throwing the same exception
>>> without an entity would give the expected (412 response with an
>>> empty body).
>>>
>>> After a little code browsing I found the problem in
>>> Dispatcher.java invoke method. I created a patch file from
>>> revision 133 attached to this email.
>>>
>>> Regards,
>>>
>>> Thomas Cremers
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>>> Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Resteasy-developers mailing list
>>> Res...@li...
>>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
|
|
From: Bill B. <bb...@re...> - 2008-04-07 18:30:56
|
Sorry, that should be
@ConsumeMime("application/xml;schema=foo")
@PUT
public void putMe(String xml) {}
Bill Burke wrote:
> Christian,
>
> It doesn't work already?
>
> Can't you do:
>
> @ConsumeMime("application/xml;schema=foo")
> @GET
> public String getMe() {}
>
> Or do you mean something else?
>
>
> FYI, to subscribe:
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
>
>
> Christian Sadilek wrote:
>> Hi Bill,
>>
>> are there any plans to support MIME properties for XML content
>> negotiation in RESTeasy like you described in your Blog
>> http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation?
>>
>> I would like to expose two different xml representations of a resource
>> and the solution you presented would fit perfectly.
>>
>> Thank you!
>>
>> I hope it's o.k. to send you this email directly. I could not find a
>> user forum.
>>
>> kind regards,
>> Christian Sadilek
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Bill B. <bb...@re...> - 2008-04-07 18:23:43
|
Christian,
It doesn't work already?
Can't you do:
@ConsumeMime("application/xml;schema=foo")
@GET
public String getMe() {}
Or do you mean something else?
FYI, to subscribe:
https://lists.sourceforge.net/lists/listinfo/resteasy-developers
Christian Sadilek wrote:
> Hi Bill,
>
> are there any plans to support MIME properties for XML content
> negotiation in RESTeasy like you described in your Blog
> http://bill.burkecentral.com/2008/03/05/restful-xml-content-negotitation?
>
> I would like to expose two different xml representations of a resource
> and the solution you presented would fit perfectly.
>
> Thank you!
>
> I hope it's o.k. to send you this email directly. I could not find a
> user forum.
>
> kind regards,
> Christian Sadilek
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Bill B. <bb...@re...> - 2008-04-07 18:20:53
|
Oh geez. Thanks Thomas!
here I thought I was going to be able to release today....
:)
I'll have something out tomorrow.
Thomas T. Cremers wrote:
>
> Hello,
>
> A couple of days ago I ran into a problem with throwing WebApplication
> examples with a response object:
>
> throw new WebApplicationException(Response.status(412)
>
> .type("text/plain;charset=utf-8")
>
> .entity("Something went wrong").build());
>
> Throwing this exception would give a text/plain body with the entity
> body but with http code 200. Throwing the same exception without an
> entity would give the expected (412 response with an empty body).
>
> After a little code browsing I found the problem in Dispatcher.java
> invoke method. I created a patch file from revision 133 attached to this
> email.
>
> Regards,
>
> Thomas Cremers
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Resteasy-developers mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|
|
From: Thomas T. C. <ttc...@gm...> - 2008-04-07 15:45:27
|
Hello,
A couple of days ago I ran into a problem with throwing WebApplication
examples with a response object:
throw new WebApplicationException(Response.status(412)
.type("text/plain;charset=utf-8")
.entity("Something
went wrong").build());
Throwing this exception would give a text/plain body with the entity body
but with http code 200. Throwing the same exception without an entity would
give the expected (412 response with an empty body).
After a little code browsing I found the problem in Dispatcher.java invoke
method. I created a patch file from revision 133 attached to this email.
Regards,
Thomas Cremers
|
|
From: Bill B. <bb...@re...> - 2008-04-04 19:28:51
|
I'm releasing beta 2 on monday or tuesday. Everything is clean up in trunk. I just need to do documentation. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-04-01 21:10:14
|
I've done another big commit. The public methods of the SPI were dependent on classes outside of the package. This is a nono. I hope to freeze the SPI going forward. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-03-22 01:51:34
|
I did a big refactoring so that resteasy could support other HTTP servers. This expanded the SPI a little bit. I also had to refactor the testsuite a lot too. I also did some Grizzly HTTP and Grizzly Comet integration. Here are the details: * Grizzly HTTP Servlet was extremely buggy. I found and fixed 5 different bugs in their implementation by doing some delegation and inheritance hacks. * This implementation scares me because there is no testsuite for the Servlet stuff and only a tiny testsuite for the HTTP stuff. Its also totally hacked from the Tomcat codebase. * Grizzly Comet wasn't so buggy, but still had a few of the bugs I found in HTTP Servlet implementation that were related. * Both Grizzly HTTP and Comet take one full second to bootstrap. TJWS takes only a few milliseconds. So, TJWS is staying in. Full testsuite run with TJWS on my box: 7 seconds. Full testsuite run using Grizzly (HTTP or Comet): 30 seconds. I'm going to fool around a little bit with adding asynchronous capabilities to resteasy with Grizzly Comet. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-03-18 22:58:21
|
All the Variant junk in the spec is finally implemented. Not sure if I like that stuff very much, but I guess we're stuck with it. Bill -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Ryan J. M. <ry...@da...> - 2008-03-17 12:59:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I just committed the ported code from the RESTEasy alpha. After noodling around your idea of the List and Set idea, I am starting to like that idea so much better. With that said, let's shoot for end of next week to have the MessgaeBodyWorkers and the CollectionMimeMultipartProvider a long with some extensive unit tests for those. Ryan- On Mar 17, 2008, at 8:34 AM, Bill Burke wrote: > That would be cool and most helpful. Multipart definitely needs > this. Timeframe? I want to get out another release in 2 weeks or so > as I have another resteasy project dependent on the next release. > > Ryan J. McDonough wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> You mean things like MessageBodyWorkers? I just want to clarify >> that this is the interface that is used to lookup and different >> providers for MessageBodyReader/Writer's? If you haven't started on >> this already, I'd be interested in taking a stab at this one. For >> the MimeMultipartProvider, I'd like to try and leverage existing >> providers for the message parts and having access to the look up >> mechanism would be handy. >> Ryan- >> On Mar 15, 2008, at 3:22 PM, Bill Burke wrote: >>> FYI, on Friday, I synced up with JSR311 trunk. There's some cool >>> stuff >>> going on there that I want to take advantage of. >>> >>> -- >>> Bill Burke >>> JBoss, a division of Red Hat >>> http://bill.burkecentral.com >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Resteasy-developers mailing list >>> Res...@li... >>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.7 (Darwin) >> iD8DBQFH3Qy/K/xjmUY6JwURAmtcAJ4w0DH+zHOr87FbNmy8j/biB//gDgCgmYFB >> AMvH/Xjci5i0GbHdElpCyBM= >> =yLv5 >> -----END PGP SIGNATURE----- > > -- > Bill Burke > JBoss, a division of Red Hat > http://bill.burkecentral.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFH3mr4K/xjmUY6JwURAlnFAJ0VHx2cOFpdYROJoF3jFkzDETWMDACeKY5T BJoO6WjSBcQpl3FQsm0nFOg= =+uVj -----END PGP SIGNATURE----- |
|
From: Bill B. <bb...@re...> - 2008-03-17 12:38:19
|
I'm going to prototype an asynchronous model over RESTEasy JAX-RS using Comet APIs. Jerome's email thread got me interested in this. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |
|
From: Bill B. <bb...@re...> - 2008-03-17 12:35:50
|
I've just finished a first stab at RESTFul JMS. I've written a RESTFul interface over JMS. Its available under resteasy/resteasy-mom in SVN. I can't release it until we REV JAX-RS again though. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |