9 Comments

  1. Senthil

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

    Reply
  2. 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

  3. 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

  4. 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
  5. Jundl

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

    Reply

  6. 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
  7. Vinaykumar

    YOUR REALLY GREAT UR PROVIDING VERY HUGE SUBJECT

    Reply

Leave a Reply