[Building Sakai] Check server started

Juan Arcadio Martínez Cárceles juanarcadio at um.es
Tue May 21 01:20:33 PDT 2013


Hi,

I don't know Samigo in deep, but it remains me a similar issue with 
gradebook2.

At University of Murcia we did some work exposing gradebook2 api, 
because the gb2 services are located in webapp/tool context. To use them 
outside we should inject the services but you can't inject beans from 
context tool to components, therefore we had to create a pack of 
components whose impl are really the tool components, it was an easy 
solution to do, but it implies to have the same services in both context.

http://collab.sakaiproject.org/pipermail/gradebook2-dev/2011-July/000427.html
http://collab.sakaiproject.org/pipermail/gradebook2-dev/attachments/20110711/905e3401/attachment-0001.ksh

The best solution in my case could be that GB2 would include the 
components and that the webapp/tool context would make use of them, 
instead of our solution that duplicates the gb2 services. But, until 
now, my solution has been easily adapted to the versions of gb2 that we 
had used (from 1.5.0 to 1.8.0).

Cheers,
Juan Arcadio.


El 20/05/2013 14:48, Francisco escribió:
> That's why we are asking. Most uses of Samigo in Sakai are through 
> their constructors. In other project, we accomplished to inject the 
> persistence service... we will try by that way.
>
> Regards
>
> El 20/05/2013 14:32, Steve Swinsburg escribió:
>> That would be ideal - if Samigo exposed its API classes as Spring 
>> beans. But the only shared beans that Spring registers are those 
>> relating to Hibernate, meaning this is the only current option. 
>> Lessons does the same thing.
>>
>> cheers,
>> Steve
>>
>> On 20/05/2013, at 10:16 PM, Aaron Zeckoski <azeckoski at unicon.net 
>> <mailto:azeckoski at unicon.net>> wrote:
>>
>>> You should not create Sakai services using "new". You should either 
>>> inject them using Spring or use the ComponentManager (though this 
>>> will have the same load order issue). The reason Sakai is using 
>>> Spring is to manage load order and dependency issues like this.
>>> If you don't want to use spring then you are stuck reinventing the 
>>> work that Spring has already done. I recommend you use Spring.
>>>
>>> -AZ
>>>
>>>
>>> On Mon, May 20, 2013 at 7:57 AM, Francisco 
>>> <francisco.saez.sakai at gmail.com 
>>> <mailto:francisco.saez.sakai at gmail.com>> wrote:
>>>
>>>     Hi Juan,
>>>     thanks for the response, but in this case samigo components are
>>>     not inyected with spring. We just create new instances of
>>>     services (i.e: AssessmentService service = new
>>>     AssessmentService();)...
>>>
>>>     Regards,
>>>     Francisco
>>>
>>>     El 20/05/2013 13:29, Juan Arcadio Martínez Cárceles escribió:
>>>>     Hi Francisco,
>>>>
>>>>     in your quartz job, in the spring component could use
>>>>     depends-on clause to point the services that your job needs.
>>>>
>>>>     Cheers,
>>>>     Juan Arcadio
>>>>
>>>>
>>>>     El 20/05/2013 12:57, Francisco escribió:
>>>>>     Hi all,
>>>>>
>>>>>     anyone know how to check if sakai server is completely started
>>>>>     and all its components loaded from a scheduled job? Our
>>>>>     problem comes because we have a job that uses samigo logic,
>>>>>     and when we start the server, sometimes (and the word is
>>>>>     sometimes) that job starts working before samigo is loaded...
>>>>>
>>>>>     Regards,
>>>>>     Francisco.
>>>>>     -- 
>>>>>
>>>>>     Samoo LOGO<http://www.samoo.es/>
>>>>>
>>>>>     <http://www.samoo.es/>
>>>>>
>>>>>     *Francisco Sáez*
>>>>>
>>>>>     *Analista - Programador*
>>>>>
>>>>>     francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>
>>>>>
>>>>>     +34 - 673 80 32 69
>>>>>
>>>>>     www.samoo.es <http://www.samoo.es/>
>>>>>
>>>>>     Este correo  y  sus archivos asociados son privados y
>>>>>     confidenciales y va dirigido  exclusivamente  a su
>>>>>     destinatario. Si recibe este correo sin ser el destinatario
>>>>>     del mismo, le rogamos proceda a su eliminación y lo ponga en
>>>>>     conocimiento del emisor. La difusión por cualquier medio del
>>>>>     contenido de  este correo podría ser sancionada conforme a lo
>>>>>     previsto en las leyes españolas, Ley Orgánica 15/1999 de
>>>>>     Protección de Datos de Carácter Personal.  No  se autoriza la
>>>>>     utilización con fines comerciales o para su incorporación a
>>>>>     ficheros automatizados de las direcciones del emisor o del
>>>>>     destinatario."
>>>>>
>>>>>     This mail and its attached files are confidential and are only
>>>>>     and exclusively intended to their addressee. In case you may
>>>>>     receive this mail not being its addressee, we beg you to let
>>>>>     us know the error by reply and to proceed to destroy it. The
>>>>>     circulation by any mean of this mail could be penalised in
>>>>>     accordance with the Spanish legislation. Is not allowed the
>>>>>     use of both, the transmitter and the addressee's, address with
>>>>>     a commercial aim, or in order to be incorporated to automated
>>>>>     data process or to any kind of files.
>>>>>
>>>>>     P Antes de imprimir este correo electrónico piense bien si es
>>>>>     necesario hacerlo. El medioambiente es cosa de todos.
>>>>>
>>>>>
>>>>>
>>>>>     _______________________________________________
>>>>>     sakai-dev mailing list
>>>>>     sakai-dev at collab.sakaiproject.org  <mailto:sakai-dev at collab.sakaiproject.org>
>>>>>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>>
>>>>>     TO UNSUBSCRIBE: send email tosakai-dev-unsubscribe at collab.sakaiproject.org  <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>  with a subject of "unsubscribe"
>>>>
>>>>
>>>>     _______________________________________________
>>>>     sakai-dev mailing list
>>>>     sakai-dev at collab.sakaiproject.org  <mailto:sakai-dev at collab.sakaiproject.org>
>>>>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>>
>>>>     TO UNSUBSCRIBE: send email tosakai-dev-unsubscribe at collab.sakaiproject.org  <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>  with a subject of "unsubscribe"
>>>
>>>
>>>     -- 
>>>
>>>     Samoo LOGO<http://www.samoo.es/>
>>>
>>>     <http://www.samoo.es/>
>>>
>>>     *Francisco Sáez*
>>>
>>>     *Analista - Programador*
>>>
>>>     francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>
>>>
>>>     +34 - 673 80 32 69 <tel:%2B34%20-%20673%2080%2032%2069>
>>>
>>>     www.samoo.es <http://www.samoo.es/>
>>>
>>>     Este correo  y  sus archivos asociados son privados y
>>>     confidenciales y va dirigido exclusivamente  a su destinatario.
>>>     Si recibe este correo sin ser el  destinatario del mismo, le
>>>     rogamos proceda a su eliminación y lo ponga en conocimiento del
>>>     emisor. La difusión por cualquier medio del contenido de  este 
>>>     correo podría ser sancionada conforme a lo previsto en las leyes
>>>     españolas, Ley Orgánica 15/1999 de Protección de Datos de
>>>     Carácter Personal.  No  se autoriza la utilización con fines
>>>     comerciales o para su incorporación a ficheros automatizados de
>>>     las direcciones del emisor o del destinatario."
>>>
>>>     This mail and its attached files are confidential and are only
>>>     and exclusively intended to their addressee. In case you may
>>>     receive this mail not being its addressee, we beg you to let us
>>>     know the error by reply and to proceed to destroy it. The
>>>     circulation by any mean of this mail could be penalised in
>>>     accordance with the Spanish legislation. Is not allowed the use
>>>     of both, the transmitter and the addressee's, address with a
>>>     commercial aim, or in order to be incorporated to automated data
>>>     process or to any kind of files.
>>>
>>>     P Antes de imprimir este correo electrónico piense bien si es
>>>     necesario hacerlo. El medioambiente es cosa de todos.
>>>
>>>
>>>     _______________________________________________
>>>     sakai-dev mailing list
>>>     sakai-dev at collab.sakaiproject.org
>>>     <mailto:sakai-dev at collab.sakaiproject.org>
>>>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>>     TO UNSUBSCRIBE: send email to
>>>     sakai-dev-unsubscribe at collab.sakaiproject.org
>>>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>>>     subject of "unsubscribe"
>>>
>>>
>>>
>>>
>>> -- 
>>> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org 
>>> <mailto:sakai-dev at collab.sakaiproject.org>
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to 
>>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
>>> "unsubscribe"
>>
>
>
> -- 
>
> Samoo LOGO<http://www.samoo.es/>
>
> <http://www.samoo.es/>
>
> *Francisco Sáez*
>
> *Analista - Programador*
>
> francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>
>
> +34 - 673 80 32 69
>
> www.samoo.es <http://www.samoo.es>
>
> Este  correo  y  sus archivos asociados son privados y confidenciales 
> y va dirigido  exclusivamente  a su destinatario. Si recibe este 
> correo sin ser el  destinatario del mismo, le rogamos proceda a su 
> eliminación y lo ponga en  conocimiento del emisor. La difusión por 
> cualquier medio del contenido de este  correo podría ser sancionada 
> conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de 
> Protección de Datos de Carácter Personal.  No  se autoriza la 
> utilización con fines comerciales o para su incorporación a ficheros 
> automatizados de las direcciones del emisor o del destinatario."
>
> This mail and its attached files are confidential and are only and 
> exclusively intended to their addressee. In case you may receive this 
> mail not being its addressee, we beg you to let us know the error by 
> reply and to proceed to destroy it. The circulation by any mean of 
> this mail could be penalised in accordance with the Spanish 
> legislation. Is not allowed the use of both, the transmitter and the 
> addressee's, address with a commercial aim, or in order to be 
> incorporated to automated data process or to any kind of files.
>
> P Antes de imprimir este correo electrónico piense bien si es 
> necesario hacerlo. El medioambiente es cosa de todos.
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email tosakai-dev-unsubscribe at collab.sakaiproject.org  with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130521/70faa588/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 3022 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130521/70faa588/attachment.jpe 


More information about the sakai-dev mailing list