Giter Site home page Giter Site logo

Comments (9)

bastiao avatar bastiao commented on May 20, 2024

Nice.
That was our tried also but in the time that we did there was no extension to do that. Now there is.

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

I just spoke to @tmgodinho and @fmgvalente on the subject. First of all, this extension might not work, or be a "not-so-well"-supported patch around the issue. Second, what we actually need is a practical abstraction to web service development. It may go through anything that can use Jetty as the server, so JAX-RS is also an option.

from dicoogle.

bastiao avatar bastiao commented on May 20, 2024

Yes, sounds good plan for the future.

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

Ok, so I just realized that Restlet SE actually does seem to support Jetty since around last November. http://maven.restlet.com/org/restlet/jse/org.restlet.ext.jetty/2.3.1/
So forget about needing a patch, apparently. We just need to add the right dependencies and keep existing servlets functional.

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

I still couldn't find a way to make a Restlet Application work alongside servlets. I made a question on StackOverflow, in hope that the community will give us a solution.

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

I have managed to embed a Restlet application in a servlet, using the ServletAdapter (the JEE implementation of the servlet extension seems to be compatible with Java SE, apparently). I hope to publish this outcome soon.

When this merge is done, we will have a single server to configure, yet right now we support starting and stopping both web server (default port 8080) and web services (default port 6060). @bastiao, should we have a single start/stop server switch or a way to conditionally expose additional web services? The only reasonable decisions I'm thinking of right now is to either do the former and keep things simple; or support turning plugin web services on/off.

from dicoogle.

bastiao avatar bastiao commented on May 20, 2024

Indeed. We will have one, and only one exposing web service. If you found a way to handle the restlet and expose it in Jetty or any other compatible way to put all the resources together, it will be very good and it avoids to port the features between web resources frameworks!

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

Yes, I actually figured it out. I'll just make sure things are stable enough for a merge. But as for the previous question, should we just discard the switch for Dicoogle Web Services and have a single Dicoogle Web Server switch?

from dicoogle.

Enet4 avatar Enet4 commented on May 20, 2024

This was taken care of in #41. For Dicoogle 3.0, I suggest modifying the SDK to support Restlet attachment rather than resources, as discussed in #42.

from dicoogle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.