Les chercheurs en sécurité ont quelques réserves vis à vis du système de vote par Email mis en place au New Jersey suite à l'ouragan Sandy.
[IMG]http://resources1.news.com.au/images/2012/11/06/1226511/153101-new-jersey-email-vote.jpg[/IMG]
La décision du New Jersey afin de permettre aux électeurs bloqués par la tempête de vote par E-mail lors de…
Hi, SO!
I'm currently trying to figure out which implementation of JSR-311 I'm going to recommend further up the food chain. I've pretty much narrowed it down to two options - Spring 3.0 with it's native support for REST - or use Sun's own Jersey (Restlets might also be an option).
To me it doesn't seem to be much of a difference in the actual…
I have a JPA entity class mimicking a table. Something like this:
@XmlType(name="MyClassElementType")
public class MyClass {
String name;
String xmlDesc;
public MyClass() {}
@XmlElement
String getName() { return name; }
void setName(String name) { this.name = name; }
@XmlElement
String getXmlDesc() { return…
I'm just getting acquainted with implementing REST web services in Java using JAX-RS and I ran into the following problem. One of my resource classes requires access to a storage backend, which is abstracted away behind a StorageEngine interface. I would like to inject the current StorageEngine instance into the resource class serving the…
I am querying a database for a web service using the Jersey JAX-RS. I can return a single row as XML or JSON, but I can't figure out how to return a multiple records.
Do I use an ArrayList? If so how? Does anyone have an example of how to do this?
Thanks
Hi, implementing service something similar with tinyurl or bit.ly, I'm would like to expose service as API, I'm using java and jersey as RESTfull service implementation.
I'm looking for simplest way for authentification of users who use API, OAuth is first thing coming in mind, but the problem is I don't need this 3 iteration calls with…
I wanted to know if theres a way to send a JSON data along with HTTP response code 500. Basically I want my rest client to know that there is some error on the backend and along with it send a JSON error data structure like this.
{"error" : [
{"code": "1001", "desc": "Some error description"},
{"code": "1002", "desc":…
I have a RESTful web service. For implementation using JAX-RS (Jersey).
Have the following method:
public void foo (@PathParam ("name") String uuid) {
...
}
I need to do validation of input parameters. And if data invalid throw WebApplicationException.
I added my custom annotation CheckUuid (extends ):
public void foo…
Hello All,
There are a lot of questions on Stackoverflow about curl but I could not figure out what is that I am doing what I am not supposed to.
I am trying to call a RESTful service that I had written using Jersey API and am trying to POST an xml string to it and I get HTTP 415 error which is supposed to be a Media Type…
There are a few Twitter
APIs for Java that allow you to integrate Twitter
functionality in a Java application. This is yet another
API, built using JAX-RS
and Jersey stack. I
started this effort earlier this year and kept delaying to
share because wanted to provide a more comprehensive API.
But I've delayed enough and…
I am getting the following exception whe using derby to do a UPDATE in oracle Database
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.derby.client.am.DisconnectException: A communication error has been detected. Communication protocol being…
Hi guys,
I'd like to understand how it is possible:
Until I was working with one table everything worked fine,
when I have mapped another table it fails as shown below:
Glassfish start:
INFO: configuring from resource: /hibernate.cfg.xml
INFO: Configuration resource: /hibernate.cfg.xml
INFO: Reading mappings…
How can I make Grizzly HTTP server allow JaaS for simple HTTP AUTH?
I can't see any code/sample out there: There's another post here in StackOverflow that directly assumes that jaaS is available in Grizzly, but doesn't explain how to add it.
I want to convert a list of items inside of my payaload and convert them into a hashmap. Basically, what I have is an Item xml representation which have a list of ItemID. Each ItemID has an idType in it. However, inside my Item class, i want these ItemIDs to be represented as a Map.
HashMap<ItemIDType,…
Service (JCS) provides a platform to
develop and deploy business applications in the cloud. In Fusion Applications
Cloud deployments customers do not have the
option to deploy custom applications developed with JDeveloper to ensure the
integrity and supportability of the hosted application service. Instead…
I am developing a module where i am using rest service to get data. i am not getting how to store JSON using Jackson and store it which has Queryparam also. Any help is really appreciated as I am new to this.I am trying to do server side filtering in extjs infinte grid which is sending the below request to…
When I curl for a URL I get this answer back:
>
< HTTP/1.1 200 OK
< Server: nginx/0.7.65
< Date: Thu, 04 Mar 2010 12:18:27 GMT
< Content-Type: application/json
< Connection: close
< Expires: Thu, 04 Mar 2010 12:18:27 UTC
< http.context.path: /1/
< jersey.response:…
Have somebody experience with using REST on GAE? Maybe you can advise some lightweight REST implementation for this.
I found that RESTlet said that they have GAE optimised implementation. RESTlet-GAE
Anybody try this?
JAX-RS 2.0 Early Draft Third Edition is now available. This updated draft include new samples explaining the features and clarifications in content-negotiation, discovery of providers, client-side API, filters and entity interceptors and several other sections.
Provide feedback…
A lot of my co-workers (not developers, people from the other departments) who are framing me in the classical "nerd" stereotype, and with that acting disturbing towards me.
Of course they are not aggressive or anything, since we are in a work environment having rules on it's own, plus we…
The following are the top 10 documents linked to SRs as
solutions, for Weblogic Server J2EE issues, from Feb 2014 thru May 2014.
1163020.1
How to configure Filtering class loader in weblogic.xml To configure the Filtering Class…
At the packed and happening Java DEMOgrounds, I wandered over to check out Java EE Web Profile and Platform Technologies. Martin Matula, a Senior Development Manager at Oracle on the JavaEE/GlassFish team, responsible for the area of web services (including JAX-WS and JAX-RS), was…