This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restful Webservices on fly(dynamically)

 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I would like introduce some dynamic cabability of exposing the spring bean as restful services

scenario is

1) i need to read the list of spring bean id's from fileat runtime( or during the loading time of web app)
2) based on bean id's i fetch from step 1 , i need to some how expose the beans as restful services

is there a way to acieve the same ?
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can, but it's not turn-key or plug-and-play. You need to write the code to perform the initialization and re-initialization.
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ganesh Gowtham,

May I know in what situation would such dynamism be ideal?
 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scenraio is something of this sort ...

In our project we have couple of Spring beans save POJO ( service layer which talks to dao ...)

During the spring context startup, i would like to expose configured beans as Restful services ...

As @Lance said, i need to tweak or extend or customise the spring loading stuff to acieve the same ...

Any examples or WIKI or idea would be really appreciated.

 
Anurag Verma
Ranch Hand
Posts: 167
Hibernate Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache CXF can help you here. you just need to give some configurations saying which all beans are to be made available as a web-service.
 
Anurag Verma
Ranch Hand
Posts: 167
Hibernate Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a good open source library available now named as WSCreator, it will help in creating SOAP & REST webservices dynamically. search for WSCreator in sourceforge.net or mvnrepository.com
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic