Hi Monosij,
I'm glad to hear you got this to work.  See comments inline below.

  Simon

Monosij Dutta-Roy wrote:
Thanks Simon and Ant. Got it to work. I will try servlets next! And referencing the other components. So pls don't go away :-)

Regards message: Simon's message sounds better. My 2c would be to phrase it as:

ACCESSED: Reference interface org.rd.qm.impl.QueryServiceImpl:
-- NOT COMPATIBLE with --
IMPLEMENTED: service interface org.rd.qm.QueryService.

In which ACCESSED / IMPLEMENTED / NOT COMPATIBLE are static keywords on error conditions (and maybe there are better words). If there was a way to put in >> where accessed (query.jsp) and where implemented (qmAppSCA01.composite) would be even better. This could allow developing on the error conditions defined for this framework - and also multilingualism of the error conditions.
----------
And again in my brief exposure to Tuscany and also webservices and such, I would suggest consistency in Annotation declarations: Eg. if you need @Remotable then you should also need @Local. I don't know if that is a good example but while go through Simon's book I had made some notes on some aspects like that.

This was discussed in the OASIS TC.  Because all interfaces without
@Remotable are local, the TC's view was that adding @Local would be
redundant.

And a suggestion for Simon's book Tuscany SCA IA - when there are several ways to do things such as By Reference OR By Wire >> it would be great to see the options in 1 page with pros / cons for each or where each is viable or not.

This isn't really the right place to talk about the book.  There's a
Manning forum for this (see [1]).  However I believe that page 69 has
a bulleted list with this summary, and pages 66-69 discuss the options
in more detail.  Please post to the Manning forum if you want to discuss
this further.

Btw I am thinkiing Wiring is a more flexible option?
>
Wiring is a good choice if the reference and service are within the
same SCA domain.  If they are in different SCA domains, you need to
connect them using a binding.

----------
After I am a little more into it I would be happy to work on some documentation / example development with integration (Spring / EJB et.al.).

That would be very welcome.

Btw I checked out the 2.0-Beta-2 branch and there are examples on contribution and distribution directories. And additionally a samples directory. Which would be the best directory for the samples? I am looking at the ones from the distribution directory and the samples directory (pointed to by Ant Elder) for now.

The samples in trunk/samples should have good documentation and should
run correctly.  The samples in trunk/unreleased/samples are more of a work
in progress and might not have such good documentation and/or might not
run correctly at present.

Thanks again for all your help. And hope my statements are not too superfluous.

Thanks for these comments and suggestions.  It's good to get this kind
of feedback from Tuscany users.

  Simon

monosij


On Tue, Apr 12, 2011 at 3:20 PM, Simon Nash <[email protected] <mailto:[email protected]>> wrote:

    ant elder wrote:

        On Tue, Apr 12, 2011 at 6:02 PM, Simon Nash <[email protected]
        <mailto:[email protected]>> wrote:

            Monosij Dutta-Roy wrote:

                hi Simon -
                Thanks for your clarifications. I will try to build upon it.

                Also I had tried the @Service(QueryService.class) you
                mentioned and tried
                it again but I still get the same exception.
                I did a clean before deploy as well.

                I am attaching the composite and the interface and the
                class - just in
                case I missed anything - but its pretty much same as
                HelloWorld example
                webapp with the QuerySevice interface and classes and
                query.jsp

                I even tried variation the target from the jsp.
                      <!--reference name="service"
                target="QueryServiceComponent/QueryService"/-->
                      <reference name="service"
                target="QueryServiceComponent"/>

                And am attaching the POM as well.

                Thanks Simon.

            The problem is in the query.jsp file.  You need to change
            the line

            <sca:reference name="service"
            type="org.rd.qm.impl.QueryServiceImpl" />

            to

            <sca:reference name="service" type="org.rd.qm.QueryService" />


        I wonder if Tuscany should have given a better error message for
        that,
        the SCA JEE spec doesn't say much about the value of the type
        attribute but i'm not sure a using non-interface class makes much
        sense so Tuscany could have said that.

          ...ant


    +1.  The current message is:
    Business interface org.rd.qm.impl.QueryServiceImpl is not compatible
    with org.rd.qm.QueryService

    It would be clearer to say something like:
    Reference interface org.rd.qm.impl.QueryServiceImpl is not
    compatible with service interface org.rd.qm.QueryService

     Simon






[1] http://www.manning-sandbox.com/forum.jspa?forumID=543

Reply via email to