Results 1 to 5 of 5

Thread: Qt Driven Web Application/Service

  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,618
    Thanks
    13
    Thanked 1,592 Times in 1,520 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Qt Driven Web Application/Service

    I am looking at the practicality of using Qt-based code in the core of a web application. At the very least there needs to be some type of session and persistent object management. I was wondering if there was any forum experience in doing this with Qt? Are there obvious approaches or ways to avoid reinventing a wheel?

    I have found the Qxt library, which includes some support for doing web services. Has anyone used this in anger?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Driven Web Application/Service

    I've done some client side work using QtSoap but I had to modify some of its code. As for a complete solution we've been sucessfully using Java Messaging Service (ActiveMQ) as the carrier with a Qt wrapper over the CMS library. I have implemented a framework for writing webservices (well, not actually "web", you get the picture) using this infrastructure - a skeleton code for the server side is generated and adapter for the client side is also built. Essentially we have an infrastructure for doing RPC with object serialization using QDataStream and transfering signals across the network all over the standard JMS (which in theory should enable non-Qt clients to use it too if provided a thin layer of adapter code). We've been looking at a possibility to use DBus as the framework and use what Qt already offers but it seems there is no sane way of using DBus across network in a non-p2p mode. At least that was the case about a year ago.

    I have also been looking at some possibility to deploy a webservice using Apache's ajp13 implementation but I stopped when I learned I'd have to implement the ajp13 protocol myself. It'd be neat if someone explored this path though. Other than that I can think of solutions that use a webserver as a frontend that communicates with a backend over some local socket. I'm sure there are some solutions available for parsing and packaging data in SOAP or JSON inside Apache.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,618
    Thanks
    13
    Thanked 1,592 Times in 1,520 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Driven Web Application/Service

    He he... not being much of a Java-head it might take me some time to wander through that first paragraph. I'm sure I'll thank you afterward.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Driven Web Application/Service

    I'm not a fan of Java myself but you don't have to write a single line in Java here. You just deploy the java engine and then communicate with it using C++ (http://activemq.apache.org/cms/).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,618
    Thanks
    13
    Thanked 1,592 Times in 1,520 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Driven Web Application/Service

    I've just had a play with the broker and a few examples. I'm starting to see how this might scratch my itch. Thanks for the suggestions.

Similar Threads

  1. DBus service name
    By charlesf in forum Qt Programming
    Replies: 6
    Last Post: 4th May 2009, 07:53
  2. Data driven testing
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2008, 08:41
  3. Creating QDS service
    By bowser in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th October 2007, 11:12
  4. Using QHttp in a QDS service
    By bowser in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 22nd October 2007, 20:31
  5. Windows Service
    By TheGrimace in forum Qt Programming
    Replies: 3
    Last Post: 5th October 2007, 19:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.