users@glassfish.java.net

_at_QueryParam Not Reading Query String

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Dec 2007 12:21:11 PST

I'm not sure if this is the right place to post this but I am trying to invoke a REST API calling an EJB method but it is not reading in the query parameter.

@HttpMethod("GET")
@ProduceMime("application/json")
public JSONArray getCommunitiesAsJsonArray(@QueryParam("token")
@DefaultValue("") String token, @QueryParam("communityGroupId")
@DefaultValue("0") Integer communityGroupId)

My http request on the browser is http://<hostname>:<port>/SupportNet/resources/communities?token=OUNci@RA@p#0hTKu%PIGyy&communityGroupId=1

When I debug, even with the @DefaultValue annotation, it token is null and communityGroupId is 0. What am I missing?
[Message sent by forum member 'vyche1' (vyche1)]

http://forums.java.net/jive/thread.jspa?messageID=250629