Question

I am experimenting stuffs with web services, and I am thinking to create new web services during runtime. My idea is by creating new Java file with appropriate JAX-RS annotation, and making it executable as new web service available for my web app.

For example, I have localhost:8080/services as initial web service, upon executing some command, the new java file will be created with localhost:8080/services/time as the new path for a new web service. Is this possible?

Creating new java file is no problem, it even resides in the correct path. but is there any way to force the newly created java file to be compiled and working appropriately? or maybe, lets say if i deploy it in heroku, can i force it to redeploy with that new addition?

Was it helpful?

Solution

It's possible to do with Camel. You'll need to register the objects, but it's possible.

Take a look here: http://camel.apache.org/cxfrs.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top