You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Anil Philip <an...@openwave.com> on 2005/01/06 17:58:59 UTC

any interest in a corba sampler?

I have written a corba sampler for JMeter. The input data is taken from
property files. The method to be invoked is selected from a combo box and
the input parameters displayed. 
To invoke on a new server, a small class inheriting from MethodTask will
have to be written for each idl method to be tested which implements
loadInputData() and execute() (see below). Alternatively, the Dynamic
Invocation Interface can be used but is more involved/tricky to write -
however it does not seem like the orb in Sun's jdk supports it (if I am
mistaken, let me know).
 
Will there be any interest in including it in JMeter? Screen shot is
attached (corba_sampler_screenshot.jpg). Clicking on the button brings up a
File Chooser to select the property file. 
Needs more testing.
Thanks,
Anil Philip
For good news go to
http://members.tripod.com/~goodnewsforyou/goodnews.html


// class to be written for each idl method to be tested - if not using DII
public class VerifyHomeTask
    extends MethodTask {
  Pmcs.PmcsUserMgt manager;
  String id = ""; // argument in idl method

  public VerifyHomeTask() {
  }

  /**
   *
   * @return Object
   * @todo Implement this MethodTask
   *   method
   */
  public java.lang.Object execute() throws Exception {
    BooleanHolder isHome = null;
    try {
	  this.manager = connectToServer();
      isHome = new org.omg.CORBA.BooleanHolder();
      manager.verifyHome(id, isHome);
    }
    catch (UnsupportedOperationError ex) {
    }
    return new Boolean((boolean)isHome.value);
  }

  /**
   * loadInputData
   *
   * @param inputData Properties
   * @return String[]
   * @todo Implement this MethodTask
   *   method
   */
  public void loadInputData(Properties inputData) throws Exception {
	  loadConnectionData(inputData);
    id = inputData.getProperty("verifyHome.id");
    id = "Forsee";
     if(id == null)
       throw new Exception("verifyHome.id undefined");
   }
}


Re: any interest in a corba sampler?

Posted by sebb <se...@gmail.com>.
On Thu, 6 Jan 2005 14:08:42 -0600, Anil Philip <an...@openwave.com> wrote:
> What licensing issues? We shall be using only what comes in the jdk...

> ... Or should I try to use DII (not in Sun JDK?)

I know nothing about DII, so this may not be relevant ...

> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, January 06, 2005 12:32 PM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > Do the others think it will be useful? Will it be a pain for the user to
> > write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> > which will not require any new code to be written?
> 
> There may be licensing issues; this would need to be checked before
> committing any code/jars.
> 
> Perhaps one could use BeanShell to define the extra classes?
> This should make it easier to try things out.
> 
> > Thanks,
> > Anil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


RE: any interest in a corba sampler?

Posted by Anil Philip <an...@openwave.com>.
No third party libraries, only what comes in
http://java.sun.com/j2se/1.4.2/docs/guide/idl/ (including DII)
I shall rewrite it in my free time to use DII, but it will take a few
weeks... (other projects going on)
Thanks,
Anil

-----Original Message-----
From: Peter Lin [mailto:woolfel@gmail.com] 
Sent: Thursday, January 06, 2005 2:13 PM
To: JMeter Developers List
Subject: Re: any interest in a corba sampler?

it depends on if the sampler uses any third party libraries. If it
doesn't than it should be free of potential issues.   for example when
I implemented saving listener graphs, I originally used the advanced
graphics package, but there were license issues, so I had to find an
alternative. which is why the current implementation uses batik for
generating png from the graphs.

peter



On Thu, 6 Jan 2005 14:08:42 -0600, Anil Philip <an...@openwave.com>
wrote:
> What licensing issues? We shall be using only what comes in the jdk...
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, January 06, 2005 12:32 PM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > Do the others think it will be useful? Will it be a pain for the user to
> > write a class per idl method? Or should I try to use DII (not in Sun
JDK?)
> > which will not require any new code to be written?
> 
> There may be licensing issues; this would need to be checked before
> committing any code/jars.
> 
> Perhaps one could use BeanShell to define the extra classes?
> This should make it easier to try things out.
> 
> > Thanks,
> > Anil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: any interest in a corba sampler?

Posted by Peter Lin <wo...@gmail.com>.
it depends on if the sampler uses any third party libraries. If it
doesn't than it should be free of potential issues.   for example when
I implemented saving listener graphs, I originally used the advanced
graphics package, but there were license issues, so I had to find an
alternative. which is why the current implementation uses batik for
generating png from the graphs.

peter



On Thu, 6 Jan 2005 14:08:42 -0600, Anil Philip <an...@openwave.com> wrote:
> What licensing issues? We shall be using only what comes in the jdk...
> 
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, January 06, 2005 12:32 PM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > Do the others think it will be useful? Will it be a pain for the user to
> > write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> > which will not require any new code to be written?
> 
> There may be licensing issues; this would need to be checked before
> committing any code/jars.
> 
> Perhaps one could use BeanShell to define the extra classes?
> This should make it easier to try things out.
> 
> > Thanks,
> > Anil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: any interest in a corba sampler?

Posted by Peter Lin <wo...@gmail.com>.
 hi anil,

once you file the bugzilla entry I can work with you to double check
the dependencies and work out the licensing issues. Having gone
through that a few times in the past, it's good to have multiple eyes
looking at it. Usually sebastian is best at catching that stuff.

peter


On Thu, 6 Jan 2005 18:32:11 +0000, sebb <se...@gmail.com> wrote:
> On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com> wrote:
> > Do the others think it will be useful? Will it be a pain for the user to
> > write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> > which will not require any new code to be written?
> 
> There may be licensing issues; this would need to be checked before
> committing any code/jars.
> 
> Perhaps one could use BeanShell to define the extra classes?
> This should make it easier to try things out.
> 
> > Thanks,
> > Anil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


RE: any interest in a corba sampler?

Posted by Anil Philip <an...@openwave.com>.
What licensing issues? We shall be using only what comes in the jdk...

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Thursday, January 06, 2005 12:32 PM
To: JMeter Developers List
Subject: Re: any interest in a corba sampler?

On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
wrote:
> Do the others think it will be useful? Will it be a pain for the user to
> write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> which will not require any new code to be written?

There may be licensing issues; this would need to be checked before
committing any code/jars.

Perhaps one could use BeanShell to define the extra classes? 
This should make it easier to try things out.

> Thanks,
> Anil

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: any interest in a corba sampler?

Posted by sebb <se...@gmail.com>.
On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com> wrote:
> Do the others think it will be useful? Will it be a pain for the user to
> write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> which will not require any new code to be written?

There may be licensing issues; this would need to be checked before
committing any code/jars.

Perhaps one could use BeanShell to define the extra classes? 
This should make it easier to try things out.

> Thanks,
> Anil

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


RE: any interest in a corba sampler?

Posted by Michael Stover <ms...@apache.org>.
I'd assume interest will be light at first, simply because you're the
first one I can think of who came along and wanted a corba sampler. 
But, it may be that most corba developers just would not have imagined
there was much out there for corba stress testing?  I would think anyone
doing corba would be very interested.

In any case, we're very glad for your contribution.

As for peer review, usually the person who checks contributions in is a
fairly experienced JMeter developer and will check it over.

-Mike

On Thu, 2005-01-06 at 12:40, Anil Philip wrote:
> Just found this article on DII and JDK so shall look into it further. Any
> other design decision comments - I mean is there any peer review/design
> discussion on JMeter before it is decided to add a new feature?
> 
> http://64.233.161.104/search?q=cache:jC4dQlM2S7gJ:www.adtmag.com/java/articl
> eold.asp%3Fid%3D115+Dynamic+Invocation+Interface+jdk&hl=en
> 
> -----Original Message-----
> From: Peter Lin [mailto:woolfel@gmail.com] 
> Sent: Thursday, January 06, 2005 11:13 AM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> good question. I honestly don't know the answer, but testing Corba is
> NOT an easy thing to begin with. Anything that helps make it easier to
> test is good in my mind.  I have like zero practical experience with
> using Corba, but there are plenty of people who do :)
> 
> peter
> 
> 
> On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > Do the others think it will be useful? Will it be a pain for the user to
> > write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> > which will not require any new code to be written?
> > Thanks,
> > Anil
> > 
> > -----Original Message-----
> > From: Peter Lin [mailto:woolfel@gmail.com]
> > Sent: Thursday, January 06, 2005 11:04 AM
> > To: JMeter Developers List
> > Subject: Re: any interest in a corba sampler?
> > 
> > cool, thanks for offering to contribute the code. Please file an entry
> > in bugzilla and I'll try to get it in there fore the 2.1 release.
> > 
> > peter
> > 
> > On Thu, 6 Jan 2005 10:58:59 -0600, Anil Philip <an...@openwave.com>
> > wrote:
> > > I have written a corba sampler for JMeter. The input data is taken from
> > > property files. The method to be invoked is selected from a combo box
> and
> > > the input parameters displayed.
> > > To invoke on a new server, a small class inheriting from MethodTask will
> > > have to be written for each idl method to be tested which implements
> > > loadInputData() and execute() (see below). Alternatively, the Dynamic
> > > Invocation Interface can be used but is more involved/tricky to write -
> > > however it does not seem like the orb in Sun's jdk supports it (if I am
> > > mistaken, let me know).
> > >
> > > Will there be any interest in including it in JMeter? Screen shot is
> > > attached (corba_sampler_screenshot.jpg). Clicking on the button brings
> up
> > a
> > > File Chooser to select the property file.
> > > Needs more testing.
> > > Thanks,
> > > Anil Philip
> > > For good news go to
> > > http://members.tripod.com/~goodnewsforyou/goodnews.html
> > >
> > > // class to be written for each idl method to be tested - if not using
> DII
> > > public class VerifyHomeTask
> > >     extends MethodTask {
> > >   Pmcs.PmcsUserMgt manager;
> > >   String id = ""; // argument in idl method
> > >
> > >   public VerifyHomeTask() {
> > >   }
> > >
> > >   /**
> > >    *
> > >    * @return Object
> > >    * @todo Implement this MethodTask
> > >    *   method
> > >    */
> > >   public java.lang.Object execute() throws Exception {
> > >     BooleanHolder isHome = null;
> > >     try {
> > >           this.manager = connectToServer();
> > >       isHome = new org.omg.CORBA.BooleanHolder();
> > >       manager.verifyHome(id, isHome);
> > >     }
> > >     catch (UnsupportedOperationError ex) {
> > >     }
> > >     return new Boolean((boolean)isHome.value);
> > >   }
> > >
> > >   /**
> > >    * loadInputData
> > >    *
> > >    * @param inputData Properties
> > >    * @return String[]
> > >    * @todo Implement this MethodTask
> > >    *   method
> > >    */
> > >   public void loadInputData(Properties inputData) throws Exception {
> > >           loadConnectionData(inputData);
> > >     id = inputData.getProperty("verifyHome.id");
> > >     id = "Forsee";
> > >      if(id == null)
> > >        throw new Exception("verifyHome.id undefined");
> > >    }
> > > }
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> > >
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
-- 
Michael Stover <ms...@apache.org>
Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


RE: any interest in a corba sampler?

Posted by Anil Philip <an...@openwave.com>.
Just found this article on DII and JDK so shall look into it further. Any
other design decision comments - I mean is there any peer review/design
discussion on JMeter before it is decided to add a new feature?

http://64.233.161.104/search?q=cache:jC4dQlM2S7gJ:www.adtmag.com/java/articl
eold.asp%3Fid%3D115+Dynamic+Invocation+Interface+jdk&hl=en

-----Original Message-----
From: Peter Lin [mailto:woolfel@gmail.com] 
Sent: Thursday, January 06, 2005 11:13 AM
To: JMeter Developers List
Subject: Re: any interest in a corba sampler?

good question. I honestly don't know the answer, but testing Corba is
NOT an easy thing to begin with. Anything that helps make it easier to
test is good in my mind.  I have like zero practical experience with
using Corba, but there are plenty of people who do :)

peter


On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com>
wrote:
> Do the others think it will be useful? Will it be a pain for the user to
> write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> which will not require any new code to be written?
> Thanks,
> Anil
> 
> -----Original Message-----
> From: Peter Lin [mailto:woolfel@gmail.com]
> Sent: Thursday, January 06, 2005 11:04 AM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> cool, thanks for offering to contribute the code. Please file an entry
> in bugzilla and I'll try to get it in there fore the 2.1 release.
> 
> peter
> 
> On Thu, 6 Jan 2005 10:58:59 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > I have written a corba sampler for JMeter. The input data is taken from
> > property files. The method to be invoked is selected from a combo box
and
> > the input parameters displayed.
> > To invoke on a new server, a small class inheriting from MethodTask will
> > have to be written for each idl method to be tested which implements
> > loadInputData() and execute() (see below). Alternatively, the Dynamic
> > Invocation Interface can be used but is more involved/tricky to write -
> > however it does not seem like the orb in Sun's jdk supports it (if I am
> > mistaken, let me know).
> >
> > Will there be any interest in including it in JMeter? Screen shot is
> > attached (corba_sampler_screenshot.jpg). Clicking on the button brings
up
> a
> > File Chooser to select the property file.
> > Needs more testing.
> > Thanks,
> > Anil Philip
> > For good news go to
> > http://members.tripod.com/~goodnewsforyou/goodnews.html
> >
> > // class to be written for each idl method to be tested - if not using
DII
> > public class VerifyHomeTask
> >     extends MethodTask {
> >   Pmcs.PmcsUserMgt manager;
> >   String id = ""; // argument in idl method
> >
> >   public VerifyHomeTask() {
> >   }
> >
> >   /**
> >    *
> >    * @return Object
> >    * @todo Implement this MethodTask
> >    *   method
> >    */
> >   public java.lang.Object execute() throws Exception {
> >     BooleanHolder isHome = null;
> >     try {
> >           this.manager = connectToServer();
> >       isHome = new org.omg.CORBA.BooleanHolder();
> >       manager.verifyHome(id, isHome);
> >     }
> >     catch (UnsupportedOperationError ex) {
> >     }
> >     return new Boolean((boolean)isHome.value);
> >   }
> >
> >   /**
> >    * loadInputData
> >    *
> >    * @param inputData Properties
> >    * @return String[]
> >    * @todo Implement this MethodTask
> >    *   method
> >    */
> >   public void loadInputData(Properties inputData) throws Exception {
> >           loadConnectionData(inputData);
> >     id = inputData.getProperty("verifyHome.id");
> >     id = "Forsee";
> >      if(id == null)
> >        throw new Exception("verifyHome.id undefined");
> >    }
> > }
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: any interest in a corba sampler?

Posted by Peter Lin <wo...@gmail.com>.
good question. I honestly don't know the answer, but testing Corba is
NOT an easy thing to begin with. Anything that helps make it easier to
test is good in my mind.  I have like zero practical experience with
using Corba, but there are plenty of people who do :)

peter


On Thu, 6 Jan 2005 11:08:51 -0600, Anil Philip <an...@openwave.com> wrote:
> Do the others think it will be useful? Will it be a pain for the user to
> write a class per idl method? Or should I try to use DII (not in Sun JDK?)
> which will not require any new code to be written?
> Thanks,
> Anil
> 
> -----Original Message-----
> From: Peter Lin [mailto:woolfel@gmail.com]
> Sent: Thursday, January 06, 2005 11:04 AM
> To: JMeter Developers List
> Subject: Re: any interest in a corba sampler?
> 
> cool, thanks for offering to contribute the code. Please file an entry
> in bugzilla and I'll try to get it in there fore the 2.1 release.
> 
> peter
> 
> On Thu, 6 Jan 2005 10:58:59 -0600, Anil Philip <an...@openwave.com>
> wrote:
> > I have written a corba sampler for JMeter. The input data is taken from
> > property files. The method to be invoked is selected from a combo box and
> > the input parameters displayed.
> > To invoke on a new server, a small class inheriting from MethodTask will
> > have to be written for each idl method to be tested which implements
> > loadInputData() and execute() (see below). Alternatively, the Dynamic
> > Invocation Interface can be used but is more involved/tricky to write -
> > however it does not seem like the orb in Sun's jdk supports it (if I am
> > mistaken, let me know).
> >
> > Will there be any interest in including it in JMeter? Screen shot is
> > attached (corba_sampler_screenshot.jpg). Clicking on the button brings up
> a
> > File Chooser to select the property file.
> > Needs more testing.
> > Thanks,
> > Anil Philip
> > For good news go to
> > http://members.tripod.com/~goodnewsforyou/goodnews.html
> >
> > // class to be written for each idl method to be tested - if not using DII
> > public class VerifyHomeTask
> >     extends MethodTask {
> >   Pmcs.PmcsUserMgt manager;
> >   String id = ""; // argument in idl method
> >
> >   public VerifyHomeTask() {
> >   }
> >
> >   /**
> >    *
> >    * @return Object
> >    * @todo Implement this MethodTask
> >    *   method
> >    */
> >   public java.lang.Object execute() throws Exception {
> >     BooleanHolder isHome = null;
> >     try {
> >           this.manager = connectToServer();
> >       isHome = new org.omg.CORBA.BooleanHolder();
> >       manager.verifyHome(id, isHome);
> >     }
> >     catch (UnsupportedOperationError ex) {
> >     }
> >     return new Boolean((boolean)isHome.value);
> >   }
> >
> >   /**
> >    * loadInputData
> >    *
> >    * @param inputData Properties
> >    * @return String[]
> >    * @todo Implement this MethodTask
> >    *   method
> >    */
> >   public void loadInputData(Properties inputData) throws Exception {
> >           loadConnectionData(inputData);
> >     id = inputData.getProperty("verifyHome.id");
> >     id = "Forsee";
> >      if(id == null)
> >        throw new Exception("verifyHome.id undefined");
> >    }
> > }
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


RE: any interest in a corba sampler?

Posted by Anil Philip <an...@openwave.com>.
Do the others think it will be useful? Will it be a pain for the user to
write a class per idl method? Or should I try to use DII (not in Sun JDK?)
which will not require any new code to be written?
Thanks,
Anil

-----Original Message-----
From: Peter Lin [mailto:woolfel@gmail.com] 
Sent: Thursday, January 06, 2005 11:04 AM
To: JMeter Developers List
Subject: Re: any interest in a corba sampler?

cool, thanks for offering to contribute the code. Please file an entry
in bugzilla and I'll try to get it in there fore the 2.1 release.


peter


On Thu, 6 Jan 2005 10:58:59 -0600, Anil Philip <an...@openwave.com>
wrote:
> I have written a corba sampler for JMeter. The input data is taken from
> property files. The method to be invoked is selected from a combo box and
> the input parameters displayed.
> To invoke on a new server, a small class inheriting from MethodTask will
> have to be written for each idl method to be tested which implements
> loadInputData() and execute() (see below). Alternatively, the Dynamic
> Invocation Interface can be used but is more involved/tricky to write -
> however it does not seem like the orb in Sun's jdk supports it (if I am
> mistaken, let me know).
> 
> Will there be any interest in including it in JMeter? Screen shot is
> attached (corba_sampler_screenshot.jpg). Clicking on the button brings up
a
> File Chooser to select the property file.
> Needs more testing.
> Thanks,
> Anil Philip
> For good news go to
> http://members.tripod.com/~goodnewsforyou/goodnews.html
> 
> // class to be written for each idl method to be tested - if not using DII
> public class VerifyHomeTask
>     extends MethodTask {
>   Pmcs.PmcsUserMgt manager;
>   String id = ""; // argument in idl method
> 
>   public VerifyHomeTask() {
>   }
> 
>   /**
>    *
>    * @return Object
>    * @todo Implement this MethodTask
>    *   method
>    */
>   public java.lang.Object execute() throws Exception {
>     BooleanHolder isHome = null;
>     try {
>           this.manager = connectToServer();
>       isHome = new org.omg.CORBA.BooleanHolder();
>       manager.verifyHome(id, isHome);
>     }
>     catch (UnsupportedOperationError ex) {
>     }
>     return new Boolean((boolean)isHome.value);
>   }
> 
>   /**
>    * loadInputData
>    *
>    * @param inputData Properties
>    * @return String[]
>    * @todo Implement this MethodTask
>    *   method
>    */
>   public void loadInputData(Properties inputData) throws Exception {
>           loadConnectionData(inputData);
>     id = inputData.getProperty("verifyHome.id");
>     id = "Forsee";
>      if(id == null)
>        throw new Exception("verifyHome.id undefined");
>    }
> }
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Re: any interest in a corba sampler?

Posted by Peter Lin <wo...@gmail.com>.
cool, thanks for offering to contribute the code. Please file an entry
in bugzilla and I'll try to get it in there fore the 2.1 release.


peter


On Thu, 6 Jan 2005 10:58:59 -0600, Anil Philip <an...@openwave.com> wrote:
> I have written a corba sampler for JMeter. The input data is taken from
> property files. The method to be invoked is selected from a combo box and
> the input parameters displayed.
> To invoke on a new server, a small class inheriting from MethodTask will
> have to be written for each idl method to be tested which implements
> loadInputData() and execute() (see below). Alternatively, the Dynamic
> Invocation Interface can be used but is more involved/tricky to write -
> however it does not seem like the orb in Sun's jdk supports it (if I am
> mistaken, let me know).
> 
> Will there be any interest in including it in JMeter? Screen shot is
> attached (corba_sampler_screenshot.jpg). Clicking on the button brings up a
> File Chooser to select the property file.
> Needs more testing.
> Thanks,
> Anil Philip
> For good news go to
> http://members.tripod.com/~goodnewsforyou/goodnews.html
> 
> // class to be written for each idl method to be tested - if not using DII
> public class VerifyHomeTask
>     extends MethodTask {
>   Pmcs.PmcsUserMgt manager;
>   String id = ""; // argument in idl method
> 
>   public VerifyHomeTask() {
>   }
> 
>   /**
>    *
>    * @return Object
>    * @todo Implement this MethodTask
>    *   method
>    */
>   public java.lang.Object execute() throws Exception {
>     BooleanHolder isHome = null;
>     try {
>           this.manager = connectToServer();
>       isHome = new org.omg.CORBA.BooleanHolder();
>       manager.verifyHome(id, isHome);
>     }
>     catch (UnsupportedOperationError ex) {
>     }
>     return new Boolean((boolean)isHome.value);
>   }
> 
>   /**
>    * loadInputData
>    *
>    * @param inputData Properties
>    * @return String[]
>    * @todo Implement this MethodTask
>    *   method
>    */
>   public void loadInputData(Properties inputData) throws Exception {
>           loadConnectionData(inputData);
>     id = inputData.getProperty("verifyHome.id");
>     id = "Forsee";
>      if(id == null)
>        throw new Exception("verifyHome.id undefined");
>    }
> }
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org