Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7AF2F795 for ; Fri, 5 Jul 2013 15:25:02 +0000 (UTC) Received: (qmail 75020 invoked by uid 500); 5 Jul 2013 15:25:02 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 74914 invoked by uid 500); 5 Jul 2013 15:25:01 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 74904 invoked by uid 99); 5 Jul 2013 15:25:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 15:25:00 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of D.Lade@bigpoint.net designates 178.132.246.173 as permitted sender) Received: from [178.132.246.173] (HELO srv010072.nue2.bigpoint.net) (178.132.246.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jul 2013 15:24:53 +0000 Received: from nlb-01-exchange.nue2.bigpoint.net ([10.74.0.64] helo=exchange.bigpoint.net) by srv010072.nue2.bigpoint.net with esmtp (Exim 4.72) (envelope-from ) id 1Uv7s7-0004ut-2F for dev@jmeter.apache.org; Fri, 05 Jul 2013 17:24:32 +0200 Received: from srv024038.bigpoint.local ([fe80::6d95:45c1:be15:dd32]) by srv024050.bigpoint.local ([::1]) with mapi id 14.02.0342.003; Fri, 5 Jul 2013 17:24:30 +0200 From: Danny Lade To: "dev@jmeter.apache.org" Subject: AW: Groovy Thread-Topic: Groovy Thread-Index: AQHOdROt/4nuOqHUOkWEpB6hxBdsBZlOI0IAgAABjgCAA6nEAIAACkCAgAAB+wCAAAZQAIAAa4eAgAATRYCAAEAbMIAA2EyAgAKnApD//+0YgIAALLAA Date: Fri, 5 Jul 2013 15:24:29 +0000 Message-ID: <0E1FDD26CD35694FBC52505E30FA0448FAC2FF@srv024038.bigpoint.local> References: <0E1FDD26CD35694FBC52505E30FA0448FABC12@srv024038.bigpoint.local> <0E1FDD26CD35694FBC52505E30FA0448FAC2A1@srv024038.bigpoint.local> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.188.26.243] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > -----Urspr=FCngliche Nachricht----- > Von: sebb [mailto:sebbaz@gmail.com] > Gesendet: Freitag, 5. Juli 2013 16:29 > An: dev@jmeter.apache.org > Betreff: Re: Groovy >=20 > > I'm not sure how could you know the code about JSR223TestElement is > > implementing the support for "script compilation caching", so here come= s > some short code: > > > > processFileOrScript() > > // Hack as in bsh-2.0b5.jar BshScriptEngine implements Compilab= le but > throws new Error > > boolean supportsCompilable =3D scriptEngine instanceof Compilab= le > > && > > !(scriptEngine.getClass().getName().equals("bsh.engine.BshScriptEngine > > ")); > > > > Because the JavaScriptEngine is based on the BshScriptEngine the "scrip= t > compilation caching" > > isn't available for Java, but it is available for groovy. >=20 > Which JavaScriptEngine? >=20 There is no physical implementation, but if you use the "JSR223 Sampler" it= provides the language "Java". This is made via the BshScriptEngineFactory = which provides the information it also "speaks" Java. (see https://code.google.com/p/beanshell2/source/browse/trunk/src/bsh/BshSc= riptEngineFactory.java?r=3D94) However, the "script compilation caching" does not work for Java (provided = by BshScriptEngine). Besides that, it seems they removed the Java support in newer versions (see= same link, but newest version). You should consider that if you think abou= t using "bsh-2.1b5.jar" in the future. > > I'm not saying "you must install groovy" , I just want to be sure > > having a scripting engine with "script compilation caching" working (or= without > any synchronization during runtime). >=20 > What I am saying is that there is no need to include Groovy in the JMeter= binary > release. > It works just as well if it is downloaded separately. >=20 > And if the BSH Compilable bug can be fixed, users could then use BeanShel= l. >=20 It's the same on me, I just want to point out the "script compilation cachi= ng" with BeanShell. All I did was to suggest possible solutions (IMO), the decision is all your= s. Greetings Danny