10 Comments


  1. What is the version?

    Reply
  2. Senthil

    Hey, I need to download this code, could u pls give me the link

    Reply
  3. victor D

    Hello brother! Great tutorials! I am having a terrible issue following your RESTful CRUD operations using Jersey and Hibernate, where as soon as I add the hibernate dependencies to the pom.xml jersey stops working and gives me an exception: java.lang.NullPointerException even if I only implement
    the “simple RESTful service using Maven” you teach in another tutorial. Is there a sample code file I could download and look at? Thank you very much!

    Reply

  4. Hi,
    I am not too firm on Hibernate, but don’t you have to close the session in the getEmployees()-method, too?
    Great site BTW, showing off the DRY principle extremely well 🙂

    Reply

    • Hi, yes, you are correct.. session should be closed in getEmployees() method. I am updating the code. Thanks for the feedback and for reporting the issue.

      Reply

  5. can anyone tell me how to do same above thing in normal jdbc .. rather than in hibernate..
    I want to use jdbc. please provide any link or source.. any help is deeply appreciated.

    Reply
  6. Jundl

    thanks, works fine. In MyResource.addEmployee() I had to change the parameter to Employee.

    Reply

  7. im getting error
    org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor aroundWriteTo
    SEVERE: MessageBodyWriter not found for media type=application/json, type=class java.util.ArrayList, genericType=class java.util.ArrayList.

    Reply
  8. Vinaykumar

    YOUR REALLY GREAT UR PROVIDING VERY HUGE SUBJECT

    Reply

Leave a Reply.. code can be added in <code> </code> tags