Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

partha naveen

Ranch Hand
+ Follow
since Jul 17, 2008
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 partha naveen

Same issue with JBoss Profiler too.

incidently i noticed the problem with jboss profiler too.

in the JAVA_OPTS i make this entry ===> -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties

The jboss-profiler.properties file has a field port with value 7790. However when JBoss starts up though the agent gets booted the jboss-profiler.properties file goes undetected and rather than 7790 the agent gets started on 5400(default when no property is set)

12 years ago
Hi Ranchers,

i am facing a peculiar problem. i am running the run.sh file having set the JAVA_OPTS to additionally point to a javaagent which i want to start along with the JBoss server, i also mention a required parameter -DsyncStart.properties=syncStart.properties. This property file is stored in the /bin folder.

When i start the server , it is able to detect the jar file javaagent but somehow the properties file is going undetected.

Any info on this would be very useful

Thanks
12 years ago
Hi,

Without compressing at web server level , is there a way to compress the data that we wish to send to RenderResponse object ? Additionally is it possible to send data as OutputStream and later convert it into alphanumeric characters at the browser level?


Thanks,
P
12 years ago
Hi,


What are the tools available to monitor which resources (CSS,JS, image) took what time to download in safari browser. it could be a plugin like firebug, or an independent tool that can sniff the browser traffic and monitor them

Thanks
P
12 years ago
Hi,

I am trying to consume a service for which the WSDL is provided using Axis2. When I try to invoke any of the services it gives

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: You do not have the appropriate permissions to call this function.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:You do not have the appropriate permissions to call this function.
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

I am not sure why I am getting this error. There is a sample PHP file which does the same and running the PHP script creates no problems. The authenticate() service works well though. Thats the only one that works actually, rest all of them triggers this error.

Any idea why is it showing that error? Does it mean these services need some kind of signature when being invoked. I do not see that in the PHP file though.

SAMPLE working PHP code

$client->authenticate($uid,$pwd)
$client->generateResult()

When I do the same in Java I get error for the second step.

Thanks
P
12 years ago
Hi,

We are generally using HttpCommons to do any kind of HTTP post requests (using HTTPClient). Just curious to know if this is the best approach or are there any J2EE API's to handle this? I was looking into JCA but that seemed more focussed on EIS and specific to legacy integration.

Thanks and Regards
Partha
12 years ago
Well the application under consideration here will have no forms, neither will it access any database. It will rather get data from various WS as XML and display the data on screen. There is no transaction involved , and even if it has to go that route it has to go the XML over the wire way.

In that respect would not a Spring MVC be quite heavy because we could leverage the portlet as a controller and from there on just send the call to the ws tier, get the data and display it on front end using light weights like JSON etc?

However to incorporate the bare minimum so that exception handling, localization and other aspects a framework would be helpful....Any pointers to this would be great
12 years ago
Hi,
Would like to know any competent framework for that can be used with JSR 286 portlets in JBoss. JSF will not be used in this particular case study.

Thanks and Regards
Prth
12 years ago
Hi,

I installed Hyperic HQ in my local machine and while trying to start the Hyperic server its giving a struts exception

Servlet threw load() exception

javax.servlet.UnavailableException : org/apache/commons/digester/Rules

Interestingly I am getting this error on Mac OSX 10.5 running on Java 1.5 while Mac OSX 10.6 on Java 1.6 is not giving this error. I have tried old versions of Hyperic too, but still the same.

Any help would be great!

Rgds
Prt
12 years ago
Hi,

I would like to know how do we use FutureTask to execute slow or asychronous calls with Tomcat's thread pool?


Thanks and Regards
Prth
12 years ago
Thanks for the replies. This makes an interesting discussion. However what are the alternatives if I wish to avoid threads, because my user base is indeed large and there could be more than 1000 concurrent users at any point of time. The application code does a piece of work that invokes an API call via a client jar that internally makes a HTTP call over the network. This call is synchronous and awaits for a response. There are situations where the wait exceeds expectations and then within minutes the server is overwhelmed with requests finally leading to tomcat not being able to process any request.

In order to timeout that request I was intending to use FutureTask. However I agree to the notion of using Tomcat threadpools rather than creating new threads. The question that comes up now is this. Supposing I am using the tomcatThreadPool for executing the API call and applying timeout over it, would it mean that for each such request the thread will be killed after a timeout or a normal processing ?

I need to create a new thread at the start of the process of API call, use this thread to make the API call and suspend the current thread for few seconds till the new thread either timeouts or gets the result from API. Can I use tomcatThreadPool for this ? If yes how?
Hi,

Would like to know if the use of FutureTask has led to any known issues like performance bottleneck, sudden thread kills etc? I am proposing this for an application that makes a direct API call which internally makes a httpclient request over the network. Using the same thread to do this in Tomcat is often creating problems for Tomcat and the server is going down. To avoid that this API call is now planned to be routed via a futuretask worker (Callable) thread with a designated TimeOut. Can there be any issues with this since the user base is really very large?


Thanks and Regards
Prth
Hi ,

I have an application that integrates with quite a large number of applications making calls usually with XML/HTTP using HttpClient. While none of these external applications are within my control , what would be the best way in which my application does not get performance bottlenecks if these integrating applications are down? The underlying solution I am looking for is that the tomcat server where I am hosting my application should not run into overwhelmed requests or congestion because of these client calls. Is there a way to time out client calls ? All calls are synchronous and the current requirements do not facilitate the use of asynchronous design

Any inputs on this would be great!

Thanks
Prth
12 years ago
Hi,

What is the best practice around Jboss clustering ,for a typical UDP based clustering? What can be the maximum no of nodes that JBoss can be scaled to and what is preferred topology for that

Thanks,
Prth
12 years ago
Hi ,

Would like to know how JBossMQ is configured in a different server and how it scales to high scalability for large XML inputs

Thanks
Pth
12 years ago