Liferay Development

Liferay Consulting

Liferay Training

Your Trusted Liferay Solutions Partner

Monday, December 17, 2012

Liferay Jersey Restful web services


Liferay Jersey Restful web services


Hi i created Life ray Jersey Restful web services.

The following is the URL you can download Liferay Jersey Plug-in  portlet.




Once you get portlet from above URL
1)      Run service builder by ant build-service this will create meer-person table in database. If not created you can create manually and make sure primary column is auto increment.
2)      Run ant deploy to deploy portlet in your portal.
3)      Add portlet your page which is available in sample category.

The following is Liferay Jersey Portlet


I create table in liferay portal and I create two methods which are
1)      Adperson: This method adds the data in person table.
2)      Get Person:  get the Person by id.

Note:
1)    In view.jap you need change URL according to your environment. Means port number and your dev URL.
2)    If you change portlet context then you need to modify request URL in jsp page.
3)      For your liferay created table you need to alter table ad auto increment.

Important Classes and JSP

1)      PersonRestServices.java
2)      View.jsp
3)      Web.xml
Location: 5, Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India

15 comments :

  1. This article is very good & informative.I have gain so much information from this blog.I like your blog.Thanks for the post.

    ReplyDelete
  2. Very cool post. I just recently started following your blog, but I look forward to contributing more in the future.

    ReplyDelete
  3. Replies
    1. please help me on same kind of issue

      Delete
  4. Nice post....
    Can You help me please????
    1) http://www.liferay.com/community/forums/-/message_boards/message/24050969

    2) http://www.liferay.com/community/forums/-/message_boards/message/24059991

    thanksssss in advance...

    ReplyDelete
    Replies
    1. Ok dear....
      Thankssssssssss for this post....

      I have solve out my problem...

      I have successfully Jersey RestFul web service in Struts2 + Spring3 + Hibernate3 Liferay Portlet project...

      thanksssssss

      Delete
  5. Visit this.......

    http://www.liferay.com/web/pradip.bhatt/blog?p_p_id=33&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1

    ReplyDelete
  6. I try to adding workflow to my portlet. But it's be error. I don't know why.
    I followed this web http://www.cignex.com/articles/applying-advanced-workflow-custom-assets-liferay-6.
    Anybody can support me!

    ReplyDelete
  7. Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive! audio transcription services in delhi

    ReplyDelete
  8. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Webdesign

    ReplyDelete
  9. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. Webdesign

    ReplyDelete
  10. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. Webdesign

    ReplyDelete
  11. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Webdesign bureau

    ReplyDelete

Recent Posts

Recent Posts Widget

Popular Posts