[Building Sakai] Updating component jars during development

Evandro Pires Alves evandro at ipb.pt
Wed Jun 27 01:51:56 PDT 2012


In my case they don't get reflected immediately because I have to deploy
them to a remote machine. I'm delaying a change to my workflow when I
get to work on Sakai again and I'm thinking of having this working.

Qua, 2012-06-27 às 09:58 +1000, Steve Swinsburg escreveu:
> Ah so this is per tool rather than Sakai wide. Thats ok, should be helpful.
> 
> So if you change your implementation code (impl), which is bundled as a component (pack), do those changes get reflected immediately?
> 
> cheers,
> Steve
> 
> On 26/06/2012, at 9:00 PM, Evandro Pires Alves wrote:
> 
> > OK, let see if I can expose my humble configuration :)
> > 
> > I have one development machine and another deployment machine. On the
> > development machine I only have the rebel.xml on the impl source folder
> > (img. 1) I had to add the include for this resource on impl/pom.xml
> > 
> > On the deployment machine I have tomcat installed on /opt and I have the
> > jrebel folder too. On $tomcat/bin/setenv.sh I have
> > 
> > export JREBEL_HOME="/opt/jrebel"
> > export JAVA_OPTS="$JAVA_OPTS -noverify -javaagent:
> > $JREBEL_HOME/jrebel.jar -Drebel.log=true"
> > 
> > And that's all. The JRebel version I had last year didn't updated new
> > methods, but its working know. I don't remember if it loads newly
> > created beans.
> > 
> > Disclaimer: I'm not an expert :)
> > 
> > Ter, 2012-06-26 às 08:52 +1000, Steve Swinsburg escreveu:
> >> Great, could you send through what your setup is?
> >> 
> >> cheers,
> >> Steve
> >> 
> >> On 26/06/2012, at 2:33 AM, Evandro Pires Alves wrote:
> >> 
> >>> Hi people
> >>> 
> >>> I'm using JRebel with Sakai and it's working. I don't know if I'm doing
> >>> it right so perhaps we can start a conversation about it to improve.
> >>> 
> >>> I'm deploying on a remote machine so I don't use eclipse to do the
> >>> JRebel part.
> >>> 
> >>> Ter, 2012-06-26 às 00:37 +1000, Steve Swinsburg escreveu:
> >>>> I tried JRebel again a few months back but couldn't get it to work with Sakai. It would be great if someone could though.
> >>>> 
> >>>> Cheers,
> >>>> Steve
> >>>> 
> >>>> Sent from my iPad
> >>>> 
> >>>> On 25/06/2012, at 23:55, Colin Hebert <colin.hebert at oucs.ox.ac.uk> wrote:
> >>>> 
> >>>>> I'm jumping into the discussion to ask a somewhat related question;
> >>>>> has someone already tried JRebel with Sakai?
> >>>>> 
> >>>>> If it works it could be a nice solution compared to restarting tomcat
> >>>>> every time.
> >>>>> 
> >>>>> Cheers,
> >>>>> 
> >>>>> Colin
> >>>>> 
> >>>>> On Mon, Jun 25, 2012 at 2:43 PM, Adrian Fish <adrian.r.fish at gmail.com> wrote:
> >>>>>> It's a fair question, not daft at all, but I'm afraid the restarting tomcat
> >>>>>> bit has to happen as that's when the components get loaded.
> >>>>>> 
> >>>>>> A good approach is just to strip stuff out of your Sakai that you're not
> >>>>>> working on (the reasoning behind the cafe build) so it starts up quicker.
> >>>>>> It's also a good idea to do most of your prototype development in a webapp
> >>>>>> and refactor into services later, if at all. There's lots of stuff in
> >>>>>> components that probably shouldn't actually be there as nothing except the
> >>>>>> related tool ever calls it.
> >>>>>> 
> >>>>>> Cheers,
> >>>>>> Adrian.
> >>>>>> 
> >>>>>> 
> >>>>>> On 25 June 2012 14:31, Raad Al-Rawi <Raad.Al-Rawi at admin.cam.ac.uk> wrote:
> >>>>>>> 
> >>>>>>> Hello All
> >>>>>>> 
> >>>>>>> This may be (and probably is) a daft question, but here goes...
> >>>>>>> 
> >>>>>>> If you change code which compiles to a component jar (like impl stuff), is
> >>>>>>> there a better (quicker/easier) way of deploying it to your dev. instance
> >>>>>>> than compiling it, stopping tomcat, copying the jar over, and restarting
> >>>>>>> tomcat?
> >>>>>>> 
> >>>>>>> 
> >>>>>>> Cheers!
> >>>>>>> 
> >>>>>>> R
> >>>>>>> ~~
> >>>>>>> Raad Al-Rawi
> >>>>>>> CamTools Operations Analyst
> >>>>>>> University of Cambridge
> >>>>>>> 
> >>>>>>> Management Information Services Division
> >>>>>>> Greenwich House
> >>>>>>> Madingley Rise
> >>>>>>> Cambridge
> >>>>>>> CB3 0TX
> >>>>>>> UK
> >>>>>>> 
> >>>>>>> Tel: +44 (0)1223 760905
> >>>>>>> 
> >>>>>>> 
> >>>>>>> _______________________________________________
> >>>>>>> sakai-dev mailing list
> >>>>>>> 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"
> >>>>>> 
> >>>>>> 
> >>>>>> 
> >>>>>> _______________________________________________
> >>>>>> sakai-dev mailing list
> >>>>>> 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"
> >>>>> _______________________________________________
> >>>>> sakai-dev mailing list
> >>>>> 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"
> >>>> _______________________________________________
> >>>> sakai-dev mailing list
> >>>> 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"
> >>> 
> >>> -- 
> >>> _____________________________________________________
> >>> | Evandro Pires Alves | gab. 13 | ESTiG | ext. 3804 |
> >>> =====================================================
> >>> 
> >> 
> > 
> > -- 
> > _____________________________________________________
> > | Evandro Pires Alves | gab. 13 | ESTiG | ext. 3804 |
> > =====================================================
> > <Captura de ecra de 2012-06-26 11:50:53.png>
> 

-- 
_____________________________________________________
| Evandro Pires Alves | gab. 13 | ESTiG | ext. 3804 |
=====================================================



More information about the sakai-dev mailing list