[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmrs-dev
Subject:    Re: Omod Reloader Module - New Dev Tool
From:       Daniel Kayiwa <kayiwadaniel () gmail ! com>
Date:       2012-11-30 10:50:41
Message-ID: CAC0F7e+v=sdT+MLH++f0uZGp4_jhcXCKZWdGR-syC2yb+iUNnA () mail ! gmail ! com
[Download RAW message or body]

Yes "vm_arguments" was added in the latest versions of the standalone.
If you specifically require the OpenMRS version to be 1.8.3, just copy the
"openmrs-standalone.jar" from the newest version of the standalone and
overwrite the one in your 1.8.3 standalone. That way you will be using the
latest standalone features on an older version of OpenMRS.


On Fri, Nov 30, 2012 at 1:23 PM, Rafal Korytkowski <rafal@openmrs.org>wrote:

> Hi Jovan,
>
> It may be that 1.8.3 does not support vm_arguments. Can you try with 1.8.4
> or later? It should already have vm_arguments defined and you just need to
> append -Domodreloader.paths="/Users/jovan/Work/project/omod/target/"
>
> I've tested this with standalone-1.9.1 and it worked.
>
> -Rafał
>
>
> On 30 November 2012 10:55, Jovan Stevovic <jovan.stevovic@gmail.com>wrote:
>
>> Hi Daniel and David,
>> thanks for your replies.
>>
>> I was able only today to test this but unfortunately without results. I
>> added a new line to the openmrs-runtime.properties file inside my
>> openmrs-1.8.3 dir (from where I start openmrs with "java -jar
>> standalone-1.1.1.jar") with the content:
>> vm_arguments=-Domodreloader.paths="/Users/jovan/Work/project/omod/target/"
>>
>> But nothing changed. It does not reload the new .omod.
>>
>> Is this the right place where to add the vm_arguments?
>>
>>
>> Thanks,
>> jovan
>>
>> Il giorno mercoledì 21 novembre 2012 12:15:45 UTC+1, David Sanders ha
>> scritto:
>>>
>>> Yes I had to do something similar with Jetty - I had to pass in the
>>> argument as part of the MAVEN_OPTS
>>>
>>> On Wed, Nov 21, 2012 at 10:10 PM, Daniel Kayiwa <kayiwa...@gmail.com>wrote:
>>>
>>>> Hi Jovan,
>>>>
>>>> Can you try set it as part of the vm_arguments property in your
>>>> standalone's runtime properties file?
>>>>
>>>> E.g
>>>>
>>>> vm_arguments=-Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=256m
>>>> -XX:NewSize=128m -Domodreloader.paths="/Users/
>>>> jovan/Work/project/omod/target**"
>>>>
>>>> And then restart the standalone.
>>>>
>>>>
>>>>   --
>> OpenMRS Developers: http://go.openmrs.org/dev
>> Post: dev@openmrs.org
>> Unsubscribe: dev+unsubscribe@openmrs.org
>> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>>
>>
>>
>
>  --
> OpenMRS Developers: http://go.openmrs.org/dev
> Post: dev@openmrs.org
> Unsubscribe: dev+unsubscribe@openmrs.org
> Manage your OpenMRS subscriptions at https://id.openmrs.org/
>
>
>



-- 
If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

-- 
OpenMRS Developers: http://go.openmrs.org/dev
Post: dev@openmrs.org
Unsubscribe: dev+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/



[Attachment #3 (text/html)]

Yes &quot;vm_arguments&quot; was added in the latest versions of the \
standalone.<br>If you specifically require the OpenMRS version to be 1.8.3, just copy \
the &quot;openmrs-standalone.jar&quot; from the newest version of the standalone and \
overwrite the one in your 1.8.3 standalone. That way you will be using the latest \
standalone features on an older version of OpenMRS.<br> <br><br><div \
class="gmail_quote">On Fri, Nov 30, 2012 at 1:23 PM, Rafal Korytkowski <span \
dir="ltr">&lt;<a href="mailto:rafal@openmrs.org" \
target="_blank">rafal@openmrs.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hi Jovan,<div><br></div><div>It may be that 1.8.3 does not \
support vm_arguments. Can you try with 1.8.4 or later? It should already have \
vm_arguments defined and you just need to append  <span \
style="font-family:arial,sans-serif;font-size:13px">-Domodreloader.</span><span \
style="font-family:arial,sans-serif;font-size:13px">paths=&quot;/Users/jovan/Work/</span><span \
style="font-family:arial,sans-serif;font-size:13px">project/omod/target/&quot;</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:13px">I&#39;ve tested this with \
standalone-1.9.1 and it worked.</span></div><div><span \
style="font-family:arial,sans-serif;font-size:13px"><br>


</span></div><div class="gmail_extra">-Rafał<div><div class="h5"><br><br><div \
class="gmail_quote">On 30 November 2012 10:55, Jovan Stevovic <span dir="ltr">&lt;<a \
href="mailto:jovan.stevovic@gmail.com" \
target="_blank">jovan.stevovic@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 Hi Daniel and David,<div>thanks for your replies.</div><div><br></div><div>I was \
able only today to test this but unfortunately without results. I added a new line to \
the openmrs-runtime.properties file inside my openmrs-1.8.3 dir (from where I start \
openmrs with &quot;java -jar standalone-1.1.1.jar&quot;) with the content:</div>



<div><div>vm_arguments=-Domodreloader.paths=&quot;/Users/jovan/Work/project/omod/target/&quot;</div><div><br></div><div>But \
nothing changed. It does not reload the new .omod.</div><div><br></div><div>Is this \
the right place where to add the vm_arguments?  </div>



<div><br></div><div><br></div><div>Thanks,</div><div>jovan</div><br>Il giorno \
mercoledì 21 novembre 2012 12:15:45 UTC+1, David Sanders ha scritto:<blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>Yes I had to do something similar with Jetty - I had to pass in the argument as \
part of the MAVEN_OPTS<br><br></div><div><div class="gmail_quote">On Wed, Nov 21, \
2012 at 10:10 PM, Daniel Kayiwa <span \
dir="ltr">&lt;<a>kayiwa...@gmail.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi \
Jovan,<br><br>Can you try set it as part of the <span \
style="color:rgb(255,0,0)">vm_arguments</span> property in your standalone&#39;s \
runtime properties file?<br>




<br>E.g<br><br>vm_arguments=-Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=256m \
-XX:NewSize=128m <span \
style="color:rgb(255,0,0)">-Domodreloader.paths=&quot;/Users/</span><div> <span \
style="color:rgb(255,0,0)">jovan/Work/project/omod/</span><span \
style="color:rgb(255,0,0)">target<u></u>&quot;</span><br><br></div>And then restart \
the standalone.<div><div><br><br></div></div></blockquote> </div>
</div></blockquote></div><div><div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</div></div></blockquote></div><br></div></div></div><div class="HOEnZb"><div \
class="h5">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://go.openmrs.org/dev" \
                target="_blank">http://go.openmrs.org/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a><br>
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS subscriptions \
at <a href="https://id.openmrs.org/" target="_blank">https://id.openmrs.org/</a><br>  \
<br>  <br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>If we keep uppermost in \
our minds the unkind and unjust acts of others, we shall find it impossible to love \
them as Christ has loved us; but if our thoughts dwell upon the wondrous love and \
pity of Christ for us, the same spirit will flow out to others.<br>

<p></p>

-- <br />
OpenMRS Developers: <a \
                href="http://go.openmrs.org/dev">http://go.openmrs.org/dev</a><br />
Post: dev@openmrs.org<br />
Unsubscribe: dev+unsubscribe@openmrs.org<br />
Manage your OpenMRS subscriptions at <a \
href="https://id.openmrs.org/">https://id.openmrs.org/</a><br /> &nbsp;<br />
&nbsp;<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic