Anna Smalska

Greenhorn
+ Follow
since Jun 02, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anna Smalska

Hello,
Using pipedoutputstream and pipedinputstream is the best way of converting outputstream into inputstream, but I have got question about a pice of code, does it make sense?



I am not sure if I can just return 'in' like this, and it will still work. Could somebody say if this is ok? Thank you.
8 years ago
hi, yeah, I was just browsing Glassfish admin console, and I found option 'Max Thread Pool Size' which was set to 5 ^^. And I wanted to write this, but you were first ^^ and you were right ^^. Thank you anyway

But I have got one more question, if you dont mind.

my webservice is simple, it doesn't do anything, it doesnt return anything (empty WS).
Later I made WS Client as normal j2se application, and I created 20 threads, and each of them was connecting to this WS (in this same time).
here are results (times of each of the request):
time: (9.376)
time: (11.375)
time: (11.391)
time: (11.396)
time: (13.404)
time: (13.416)
time: (13.429)
time: (14.431)
time: (15.431)
time: (17.437)
time: (17.44)
time: (18.443)
time: (18.452)
time: (18.458)
time: (19.457)
time: (19.462)
time: (20.461)
time: (20.471)
time: (21.501)
time: (22.477)

Is it normal, that the time is so diffrent for 1st request and for the last one? After all this is simple webservice...
8 years ago
I put simple


When I turn on application, and execute 20 concurrent request for this webservice, I got only 5 times 'running', and after 20 seconds, when those instances finished, the other requests started (again 5 of them).

So can somebody help me?
8 years ago
annasmalska@interia.pl
annasmalska

Hello, I have hot a problem and I really need your help. I have got small web application with a web service, build like this:



Everything is working this fine, but it turned out, that in one time, the number of instances of this web service can’t be more than 5. When there are more clients who at this same time want to use this web service, they will have to wait. So I wanted to ask, how I can change it. I am using Netbeans with glassfish as server. I guest this is connected with number of beans in ‘pool’, but I really don’t know where to change this option. Thanks!
8 years ago