Sumukh Deshpande

Ranch Hand
+ Follow
since Feb 17, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sumukh Deshpande

Paul,
I tried specifying the path as {$jetty.home}.

But it instead created a directory by that name in the installation folder of Jetty .

What path should be specified when running the app on Jetty ?
12 years ago
I have an application running on Jetty 8.0.

I have configured the log4j to write the logs to a file. Here is the configuration.




I have even set the permission for the user which is running the Jetty instance.

The log directory of the Jetty has following permissions:




But still getting exception.



Can someone guide me on what could be done to solve this problem?
12 years ago
Tim,

To be more clear I am expecting multithreading support at server side .

What I want to say is, Servlet container handles all the requests multithreaded, same way SOAP engine or some responsible container in Axis 2 doing that.

I was looking into how the engine or container functions.

The question arose because I could see in logs that requests are completing one after another and we assumed that it may not be supporting multithreading.


May be what I assumed is wrong entirely.


13 years ago
Tim,

I tried changing the scope in service.xml and finding some ways to make Axis multithreaded.

But I see sequential execution of requests. Do you have any other resource to tweak in for the same?

Thanks,
Sumukh.

13 years ago

Tim Moores wrote:If it's not a setting in the Axis Admin web app then it's something in the deployment descriptor. Either way, the Axis documentation should cover it.

HTTP pipelining is a client-side issue. Are you using the same HTTP connection for both requests? If not, then pipelining wouldn't happen to begin with.




Tim ,

We are doing something like this http://<some-machine>:6565/axis2/services/API?wsdl and all requests are consumed using the same URL.

So is pipelining come in picture here?

Thanks,
Sumukh.
13 years ago

Tim Moores wrote:This seems highly relevant: http://www.mail-archive.com/[email protected]/msg17545.html (5th result I got by searching for "axis multithreading", by the way).



Tim,

By any chance do you how to set the scope as Request or Application or Session and also how to disable pipe lining in Axis?

Thanks,
Sumukh.
13 years ago

Tim Moores wrote:It's not so much Axis handling requests in parallel, as the underlying servlet container handling simultaneous requests. If those requests use a shared resource (like the same DB tables), then you should pay attention to resource congestion there. For a DB, that would be things like table-level locking vs. row-level locking, and transaction handling. Not sure if that answers your question, which is rather broad; maybe you can narrow it down to something more specific.



Tim,

What I want to ask is : Is there any configuration level change available in Axis 2 which will allow it to follow multithreaded model?

Right now what I observe is unless the first request is finished second is not initiated.

Please correct if I am wrong.

Thanks,
Sumukh.
13 years ago
Hello,

Does anyone has any idea on : How Apache Axis2 handles simultaneous requests?

What I mean is if I have a WebService which helps to insert Student Record in Student Enrollment Application then what if 1000 student try to enroll at the same time through the WebService?

Please also let me know if I am supposed to read some manuals or links for this.

Thanks in advance,
Sumukh.
13 years ago

Winston Gutkowski wrote:

Sumukh Deshpande wrote:I have a situation where I have to put getters and setters for a sublass reference in superclass...


I'd go a bit further than the others and say that it doesn't make much sense to me - certainly the "setter" part. The "getter" part is, however, possible with generics, viz:No concrete class should ever need to extend it directly, but it could be useful for "skeleton" classes that need to return properly typed instances, because it saves an explicit cast operation.

However, I can't think of any reason why you would need a subclass setter in a superclass. Maybe you could explain why you think you need it?

Winston





The reason behind designing that way :
I have a scenario in developing a Web Service using Apache Axis 2.

The rule is only the classes referred in Web Service are shown to the client. So now when I just say SubClass extends SuperClass then the SubClass is not actually shown to the user.

If at all it is to be shown then in some way SuperClass needs to refer it so I introduces a getter and setter for SubClass in SuperClass.

I will show it by an example:



Now the client would do some thing like this:



It is very natural that createCar would take the argument as SuperClass for inheritance advantage as user can create any type for car which is in the inheritance hierarchy and pass it to the function.

As the functions accept / return only super class client will not be able to see the SubClass as it is not referred.

So either I have to write the function for all type of cars or give getters and setters in SuperClass.

I hope it explains something.
13 years ago
I have a situation where I have to put getters and setters for a sublass reference in superclass. I just need to know whether its a good practice or not?

I have given the code below.



Thanks in advance.
13 years ago
I am trying to generate a stub for two classes using wsdl2java with Apache Axis 2 server.

This is what I am trying to do:


Now when the stub is generated I do not get the Truck class.

Why is that so ?

Thanks in advance.
13 years ago
Prithvi,

If you could go ahead in tutorial it will create your doubt.

But what the paragraph means is :


I have taken the examples from tutorial itself.

Generally reifiable refers to an abstract idea.

Thanks.
Hello,

I have a integer field in a class which I have made private and no setter method is provided but when I generate the client with WSDL2Java, the generated class has a setter method.

Why is it so?

I am using Apache Axis 2.

I am putting the code for more explanation



So what should I do to hide the setter method when client is generated.
13 years ago
Hello,

I am trying to check whether the value passed by an user is valid constant or not. Here is the code I have written.



Now, in above code if the String passed is not withing the listed enum then it throws IllegalArgumentException which is obvious.

But my question is : Is this the proper way to validate? As we are using Java's exception mechanism to validate.

Can someone suggest a better idea or what I have coded above itself is the best option ?

Thanks.
13 years ago
Hello,

I need to execute a static method in a Java class when the Apache Axis 2 starts.

Or

Something which could be done in an application scope.


Please suggest.

Thanks in advance.
13 years ago