Drawback of implementing service in Java is that whenever you make any
change in the source, you'll have to restart the server. Does anybody know the workaround for that. I tried Apache Commons JCI but it didn't work. Please don't advice to use groovy, for some reason I don't want to use it. Thanks |
Administrator
|
That's why minilang exists!
Jacques From: "Muhammad Aamir" <[hidden email]> > Drawback of implementing service in Java is that whenever you make any > change in the source, you'll have to restart the server. Does anybody know > the workaround for that. I tried Apache Commons JCI but it didn't work. > > Please don't advice to use groovy, for some reason I don't want to use it. > > Thanks > |
Is minilang a complete replacement of Java language?
On Mon, Jun 28, 2010 at 5:47 PM, Jacques Le Roux < [hidden email]> wrote: > That's why minilang exists! > > Jacques > > From: "Muhammad Aamir" <[hidden email]> > > Drawback of implementing service in Java is that whenever you make any >> change in the source, you'll have to restart the server. Does anybody know >> the workaround for that. I tried Apache Commons JCI but it didn't work. >> >> Please don't advice to use groovy, for some reason I don't want to use it. >> >> Thanks >> >> > |
Administrator
|
To know more about it, look for "simple method" in wiki from main page
For easier search I just also added labels: minilang, minilanguage, simple-method, simple, method Jacques From: "Muhammad Aamir" <[hidden email]> > Is minilang a complete replacement of Java language? > > On Mon, Jun 28, 2010 at 5:47 PM, Jacques Le Roux < > [hidden email]> wrote: > >> That's why minilang exists! >> >> Jacques >> >> From: "Muhammad Aamir" <[hidden email]> >> >> Drawback of implementing service in Java is that whenever you make any >>> change in the source, you'll have to restart the server. Does anybody know >>> the workaround for that. I tried Apache Commons JCI but it didn't work. >>> >>> Please don't advice to use groovy, for some reason I don't want to use it. >>> >>> Thanks >>> >>> >> > |
In reply to this post by Muhammad Aamir
On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir <[hidden email]> wrote:
> Is minilang a complete replacement of Java language? > This is not the intention of Minilang. It's a matter of opinion as to whether Minilang is easier to maintain than the eqivalent Java. Minilang is excellent for much of the work that is commonly done in the service layer, especially simple create and update operations, getting lists using variables that are automatically bound from the context, checking permissions, etc. This kind of thing is very common in OFBiz, so there are numerous examples. Since you have <call-bsh> in minilang, you also have the option of using java grammar inline. There are plenty of things that are simple to do in Java that might be very difficult or impossible to do in Minilang, and in my opinion there are Minilang routines in the OFBiz distribution that appear to have gone through enough evolution, that they would be better, in the long run, ported to Java. -- James McGill Phoenix AZ |
Actually I am aware of minilang and have used it earlier. The reason I want
to minimize the use of it (in addition to its limitation) is that I don't want to release the source code of my application. On Mon, Jun 28, 2010 at 7:47 PM, James McGill < [hidden email]> wrote: > On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir <[hidden email]> wrote: > > > Is minilang a complete replacement of Java language? > > > > This is not the intention of Minilang. It's a matter of opinion as to > whether Minilang is easier to maintain than the eqivalent Java. > Minilang is excellent for much of the work that is commonly done in the > service layer, especially simple create and update operations, getting > lists > using variables that are automatically bound from the context, checking > permissions, etc. This kind of thing is very common in OFBiz, so there are > numerous examples. > > Since you have <call-bsh> in minilang, you also have the option of using > java grammar inline. There are plenty of things that are simple to do in > Java that might be very difficult or impossible to do in Minilang, and in > my > opinion there are Minilang routines in the OFBiz distribution that appear > to > have gone through enough evolution, that they would be better, in the long > run, ported to Java. > > -- > James McGill > Phoenix AZ > |
I know you said not to mention groovy but you could always just write your service in groovy using standard java and then drop it into a java file when you're done.
Regards Scott HotWax Media http://www.hotwaxmedia.com On 29/06/2010, at 1:46 PM, Muhammad Aamir wrote: > Actually I am aware of minilang and have used it earlier. The reason I want > to minimize the use of it (in addition to its limitation) is that I don't > want to release the source code of my application. > > On Mon, Jun 28, 2010 at 7:47 PM, James McGill < > [hidden email]> wrote: > >> On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir <[hidden email]> wrote: >> >>> Is minilang a complete replacement of Java language? >>> >> >> This is not the intention of Minilang. It's a matter of opinion as to >> whether Minilang is easier to maintain than the eqivalent Java. >> Minilang is excellent for much of the work that is commonly done in the >> service layer, especially simple create and update operations, getting >> lists >> using variables that are automatically bound from the context, checking >> permissions, etc. This kind of thing is very common in OFBiz, so there are >> numerous examples. >> >> Since you have <call-bsh> in minilang, you also have the option of using >> java grammar inline. There are plenty of things that are simple to do in >> Java that might be very difficult or impossible to do in Minilang, and in >> my >> opinion there are Minilang routines in the OFBiz distribution that appear >> to >> have gone through enough evolution, that they would be better, in the long >> run, ported to Java. >> >> -- >> James McGill >> Phoenix AZ >> smime.p7s (3K) Download Attachment |
as long as you use java only coding conventions non of the groovy
conventions. Scott Gray sent the following on 6/28/2010 7:20 PM: ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > I know you said not to mention groovy but you could always just write your service in groovy using standard java and then drop it into a java file when you're done. > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 29/06/2010, at 1:46 PM, Muhammad Aamir wrote: > >> Actually I am aware of minilang and have used it earlier. The reason I want >> to minimize the use of it (in addition to its limitation) is that I don't >> want to release the source code of my application. >> >> On Mon, Jun 28, 2010 at 7:47 PM, James McGill< >> [hidden email]> wrote: >> >>> On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir<[hidden email]> wrote: >>> >>>> Is minilang a complete replacement of Java language? >>>> >>> >>> This is not the intention of Minilang. It's a matter of opinion as to >>> whether Minilang is easier to maintain than the eqivalent Java. >>> Minilang is excellent for much of the work that is commonly done in the >>> service layer, especially simple create and update operations, getting >>> lists >>> using variables that are automatically bound from the context, checking >>> permissions, etc. This kind of thing is very common in OFBiz, so there are >>> numerous examples. >>> >>> Since you have<call-bsh> in minilang, you also have the option of using >>> java grammar inline. There are plenty of things that are simple to do in >>> Java that might be very difficult or impossible to do in Minilang, and in >>> my >>> opinion there are Minilang routines in the OFBiz distribution that appear >>> to >>> have gone through enough evolution, that they would be better, in the long >>> run, ported to Java. >>> >>> -- >>> James McGill >>> Phoenix AZ >>> > |
>> write your service in groovy using standard java
Yes, that is exactly what I said. Regards Scott On 29/06/2010, at 3:48 PM, BJ Freeman wrote: > as long as you use java only coding conventions non of the groovy conventions. > > Scott Gray sent the following on 6/28/2010 7:20 PM: > > > ========================= > BJ Freeman > http://bjfreeman.elance.com > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com <http://www.specialtymarket.com/> > > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > Linkedin <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > >> I know you said not to mention groovy but you could always just write your service in groovy using standard java and then drop it into a java file when you're done. >> >> Regards >> Scott >> >> HotWax Media >> http://www.hotwaxmedia.com >> >> On 29/06/2010, at 1:46 PM, Muhammad Aamir wrote: >> >>> Actually I am aware of minilang and have used it earlier. The reason I want >>> to minimize the use of it (in addition to its limitation) is that I don't >>> want to release the source code of my application. >>> >>> On Mon, Jun 28, 2010 at 7:47 PM, James McGill< >>> [hidden email]> wrote: >>> >>>> On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir<[hidden email]> wrote: >>>> >>>>> Is minilang a complete replacement of Java language? >>>>> >>>> >>>> This is not the intention of Minilang. It's a matter of opinion as to >>>> whether Minilang is easier to maintain than the eqivalent Java. >>>> Minilang is excellent for much of the work that is commonly done in the >>>> service layer, especially simple create and update operations, getting >>>> lists >>>> using variables that are automatically bound from the context, checking >>>> permissions, etc. This kind of thing is very common in OFBiz, so there are >>>> numerous examples. >>>> >>>> Since you have<call-bsh> in minilang, you also have the option of using >>>> java grammar inline. There are plenty of things that are simple to do in >>>> Java that might be very difficult or impossible to do in Minilang, and in >>>> my >>>> opinion there are Minilang routines in the OFBiz distribution that appear >>>> to >>>> have gone through enough evolution, that they would be better, in the long >>>> run, ported to Java. >>>> >>>> -- >>>> James McGill >>>> Phoenix AZ >>>> >> smime.p7s (3K) Download Attachment |
so you did, it just did not sink in that is what you meant.
:D ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> Scott Gray sent the following on 6/28/2010 8:58 PM: >>> write your service in groovy using standard java > > Yes, that is exactly what I said. > > Regards > Scott > > On 29/06/2010, at 3:48 PM, BJ Freeman wrote: > >> as long as you use java only coding conventions non of the groovy conventions. >> >> Scott Gray sent the following on 6/28/2010 7:20 PM: >> >> >> ========================= >> BJ Freeman >> http://bjfreeman.elance.com >> Strategic Power Office with Supplier Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52> >> Specialtymarket.com<http://www.specialtymarket.com/> >> >> Systems Integrator-- Glad to Assist >> >> Chat Y! messenger: bjfr33man >> Linkedin<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >> >>> I know you said not to mention groovy but you could always just write your service in groovy using standard java and then drop it into a java file when you're done. >>> >>> Regards >>> Scott >>> >>> HotWax Media >>> http://www.hotwaxmedia.com >>> >>> On 29/06/2010, at 1:46 PM, Muhammad Aamir wrote: >>> >>>> Actually I am aware of minilang and have used it earlier. The reason I want >>>> to minimize the use of it (in addition to its limitation) is that I don't >>>> want to release the source code of my application. >>>> >>>> On Mon, Jun 28, 2010 at 7:47 PM, James McGill< >>>> [hidden email]> wrote: >>>> >>>>> On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir<[hidden email]> wrote: >>>>> >>>>>> Is minilang a complete replacement of Java language? >>>>>> >>>>> >>>>> This is not the intention of Minilang. It's a matter of opinion as to >>>>> whether Minilang is easier to maintain than the eqivalent Java. >>>>> Minilang is excellent for much of the work that is commonly done in the >>>>> service layer, especially simple create and update operations, getting >>>>> lists >>>>> using variables that are automatically bound from the context, checking >>>>> permissions, etc. This kind of thing is very common in OFBiz, so there are >>>>> numerous examples. >>>>> >>>>> Since you have<call-bsh> in minilang, you also have the option of using >>>>> java grammar inline. There are plenty of things that are simple to do in >>>>> Java that might be very difficult or impossible to do in Minilang, and in >>>>> my >>>>> opinion there are Minilang routines in the OFBiz distribution that appear >>>>> to >>>>> have gone through enough evolution, that they would be better, in the long >>>>> run, ported to Java. >>>>> >>>>> -- >>>>> James McGill >>>>> Phoenix AZ >>>>> >>> > |
In reply to this post by Scott Gray-2
I absolutely agree with you and that was the first option I tried out.
However, quickly gave up because it would give me an exception when I would call the service (via RMI) that some class (most probably some groovy class) was not serializable. Regards On Tue, Jun 29, 2010 at 5:20 AM, Scott Gray <[hidden email]>wrote: > I know you said not to mention groovy but you could always just write your > service in groovy using standard java and then drop it into a java file when > you're done. > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 29/06/2010, at 1:46 PM, Muhammad Aamir wrote: > > > Actually I am aware of minilang and have used it earlier. The reason I > want > > to minimize the use of it (in addition to its limitation) is that I don't > > want to release the source code of my application. > > > > On Mon, Jun 28, 2010 at 7:47 PM, James McGill < > > [hidden email]> wrote: > > > >> On Mon, Jun 28, 2010 at 7:56 AM, Muhammad Aamir <[hidden email]> wrote: > >> > >>> Is minilang a complete replacement of Java language? > >>> > >> > >> This is not the intention of Minilang. It's a matter of opinion as to > >> whether Minilang is easier to maintain than the eqivalent Java. > >> Minilang is excellent for much of the work that is commonly done in the > >> service layer, especially simple create and update operations, getting > >> lists > >> using variables that are automatically bound from the context, checking > >> permissions, etc. This kind of thing is very common in OFBiz, so there > are > >> numerous examples. > >> > >> Since you have <call-bsh> in minilang, you also have the option of using > >> java grammar inline. There are plenty of things that are simple to do > in > >> Java that might be very difficult or impossible to do in Minilang, and > in > >> my > >> opinion there are Minilang routines in the OFBiz distribution that > appear > >> to > >> have gone through enough evolution, that they would be better, in the > long > >> run, ported to Java. > >> > >> -- > >> James McGill > >> Phoenix AZ > >> > > |
Free forum by Nabble | Edit this page |