that definitely gives me a better idea, but I'm afraid there isn't a simple solution 
to your specific problem.

Axel Faltin <[EMAIL PROTECTED]> wrote:

Hi,

> you're probably going to have to extend SampleResult, or try to
> wedge it into the existing one. Are you planning on using a local
> interface to call the EJB or do a real remote call?

1. In the case I extend SampleResult (lets say AxelSampleResult), which would be fine 
with me. How
do I convince the framework to pull out the data of my specific
AxelSampleResult?


well you're going to have to write a specific visualizer to pull out the data. the 
stock components expect to get the data from either byte or string.


2. I do use a local interface in the Sampler. I do the whole JNDI
Lookup and Cast in the Setup and call my EJB, that does work fine so
far.


> if you're goal is to measure how long it takes to get data, you
> probably should be using local interface to get the data. In that
> case, you can just use the built in timer. If you want to view the
> data, you're going to have to either pass the bytes, convert to
> string, or extend SampleResult to take an object for the response
> data.

I am trying to use tha data from the first call and put it as input in
the second. Like this:

1. First Call: "SearchForSomething" --> "SearchResult"
2. Second Call: "DoSomething" use some values from SearchResult

Using that I would like to simulate a whole UserSession. Somebody
logs in, is doing a search and is modifying one Resultset using the
next funktionality, etc.


Ok, this is going to be hard. If your sample converts the EJB session information into 
HttpSession data, then you would be ok. Otherwise you'd have to write a custom 
configuration element to handle EJB related session data.


> a bit more information about the goal of your test would make it
> easier to provide useful suggestions :)

Does that help helping :-)

Cheers,

 

testing EJB's can be a bit of a pain. If you read the latest threads on 
theServerside.com, you'll lots of people complaining about how hard it is to test EJB 
effectively. It can be done, but it's not easy or painless.  I hope that helps provide 
some useful answers.

 

peter 

                
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

Reply via email to