JCR implementation

View: New views
3 Messages — Rating Filter:   Alert me  

JCR implementation

by Angela Cymbalak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Its been a few days but I have the extraordinarily basic JCR
implementation finished.  It just reads a directory and puts the .jpg
files that it finds in that directory into the JCR.  I can generate
the list of strings that Luciano's tuscany app needs.  After that, I
get more unsure.

In the photo-gallery.composite file there is the section:

        <component name="GalleryPictures">
                <t:implementation.resource location="gallery"></t:implementation.resource>
        </component>

I believe this is the section that tells Tuscany where to actually
serve the images from.  I believe that this needs to be changed into
something that more closely resembles the Album component, with an
actual class definition, in order to get the images out of the JCR
instead of from the file system.

I'll sleep on it, but if any help magically comes my way overnight
(even in the form of a pointer to the appropriate Tuscany docs) it
would be much appreciated.

Angie



---------------------------------------------------------------------
To unsubscribe, e-mail: projects-unsubscribe@...
For additional commands, e-mail: projects-help@...


Re: JCR implementation

by Luciano Resende :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Aug 4, 2008 at 9:06 PM, Angela Cymbalak <a.cymbalak@...> wrote:
> Its been a few days but I have the extraordinarily basic JCR implementation
> finished.  It just reads a directory and puts the .jpg files that it finds
> in that directory into the JCR.  I can generate the list of strings that
> Luciano's tuscany app needs.  After that, I get more unsure.

Great that you were able to make progress .... ready for a patch ?

>
> In the photo-gallery.composite file there is the section:
>
>        <component name="GalleryPictures">
>                <t:implementation.resource
> location="gallery"></t:implementation.resource>
>        </component>
>
> I believe this is the section that tells Tuscany where to actually serve the
> images from.

You got it right, implementation.resources is basically used serve the
resources using http.

> I believe that this needs to be changed into something that
> more closely resembles the Album component, with an actual class definition,
> in order to get the images out of the JCR instead of from the file system.
>

Yes, i think we need a JCR Album, and them wire the application to use
this new implementation.
As for serving the images from JCR, I think there is a simple way
solve the issue by implementing a simple "rest get interface"  that in
conjunction with the http binding should serve the images for us...
I'll take a look at this...


> I'll sleep on it, but if any help magically comes my way overnight (even in
> the form of a pointer to the appropriate Tuscany docs) it would be much
> appreciated.
>
> Angie
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: projects-unsubscribe@...
> For additional commands, e-mail: projects-help@...
>
>



--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: projects-unsubscribe@...
For additional commands, e-mail: projects-help@...


Parent Message unknown Re: JCR implementation

by Angela Cymbalak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>Great that you were able to make progress .... ready for a patch ?

Not quite.  My getPictures method returns an array of strings just as
your getPictures method did.  And the strings should have the same
location that yours returned.  However, when I run the gallery the
Javascript alert box comes up saying "undefined".

I've tried adding println statements to do some debugging to both the
Init method and the getPictures method.  However, the lines are never
printed and it doesn't appear that the repository is getting built.

Can you give me a quick tour on when the Init and the getPictures
methods are called?  It seems as though it should be self explanatory
but so far I haven't been able to figure out why I'm not seeing
anything that I added.

Angie



---------------------------------------------------------------------
To unsubscribe, e-mail: projects-unsubscribe@...
For additional commands, e-mail: projects-help@...