<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody"></span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>vjao wrote:</b></span></td>        </tr>        <tr>          <td class="quote">Hello,<br />
<br />
I am currently developping different SE, BC, SA and SUs with maven. Everything works so far but I have a question about the development method.<br />
<br />
What I found annoying is that you need to re-deploy your component everytime you change it, which can be often during developpement. And by re-deploying, I mean uninstaling the previous version and installing the new one. That is really time consuming. Even with ant tasks, you still need to "ant stop shutdown undeploy deploy start". And you can only do that once all the SA's have been undeployed from the SE or BC.<br />
<br />
So my first question is : Am I doing things correctly or have I missed something ? Is there a better way to develop components ?<br />
<br />
My second question : is it possible to deploy a compoment from the classes and not from the zip. Just like web application that can load classes from jar and classes ? If not, what so you think of this idea ? <br />
<br />
Thanks in advance for your answers !<br />
<br />
Vincent</td>        </tr></table><span class="postbody"><br />
<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>cdeneux wrote:</b></span></td>        </tr>        <tr>          <td class="quote">I totally agree with you.<br />
<br />
PEtALS should be able to work in a development mode where deployment is done from an exploded JBI archive (directroy structure as webapp). In this mode, PEtALS kernel must be able to reload classes recently modified.<br />
<br />
I had proposed this feature 3 years ago, but I was alone. Thanks to join me on this purpose.</td>        </tr></table><span class="postbody"><br />
<br />
OK. I've been working on a new PEtALS server view and I completely agree with this request...<br />
Right now, if we had a component project or an SU project in Eclipse, and that we wanted to deploy it in PEtALS through the Eclipse server view, we would do the following:<br />
<ul><li>Package th project in a zip.<br />
<li>Deploy the zip into PEtALS through JMX.</ul><br />
<br />
Doing this would result in duplicating the project and the classes. Workspace (editors) and server (PEtALS).<br />
Since source and class files will be first in the workspace, and assuming PEtALS was started from Eclipse, we would be able to debug the running code (the component's one or the SU's one if it's a Java SU - e.g. for the POJO component). But by debugging, I only mean we could follow the execution and the state of the variables through source navigation. If we notice an error in the code and correct it, the source code is indeed modified, and the class is recompiled. But this class is in the workspace, not on the server. Meaning our modifications are not taken into account. We have to republish the project.<br />
<br />
Publish means "synchronize" the project with the deployed application.<br />
To do that, we would have to undeploy the component / SA (and so, everything which is related, like SAs if we undeploy a component). And then we would redeploy the last version of the project.<br />
<br />
We can do that in a first time, but it's not very convenient (even if better than nothing).<br />
As Christophe said, it would be convenient if PEtALS accepted exploded projects and in other locations.<br />
<br />
As an example, have...<br />
<ul><li>PEtALS is located in "C://PEtALS".<br />
<li>And I'm deploying a component in <span style="font-style: italic">exploded</span> mode (versus <span style="font-style: italic">archived</span> mode) which is located at "D://workspace/myComponent".</ul><br />
<br />
The risk however, would be that the JVM can crash. <br />
Indeed, modifications of the running classes sometime requires the application to be stopped or restarted.<br />
<br />
I have no idea the way it could be done into PEtALS. But I think it would be nice for an advanced deployment feature into Eclipse.<br />
(I described the basic one above - package, then deploy).</div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
Read this forum topic online here:<br />
<a href="http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=657#657" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=657#657</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>