Kousik Majumder

Ranch Hand
+ Follow
since Sep 30, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Kousik Majumder

Hi,

I am creating python Process each time a rest request is coming. Then from  inside that process threads are spawning up. So these threads running in different process space need to be synced. I wish to run only on thread at a time, does not matter how many process have been created.
How do I achieve that?
5 years ago
Thank you for your suggestion Rob and Knute. It suddenly started working after I changed the phase from 'package' to 'compile' in all my plugins.
Now first files are compiled then with the plugins are running with which .html is generated and copied to target/PROJECT sequentially and at last the .war is being created out of that target/PROJECT folder. So I am good now.

Thank you very much again for your quick reply.
6 years ago
Hi All,

This is what happens with my build:-

1. When I run my pom.xml the first step that happens is building and creating the final .war file.
2. Then there are 2 plugins which I require to create a .html file runs afterwards.
3. Can copy the resource to target/PROJECT folder.

Requirement :-

I need to update the .war file created in step 1 with the .html file created in step 2.

So far I am able to copy the .html file in project's target/PROJECT folder with maven-resources-plugin's copy-resources goal. But my final requirement is still pending.
Please help.
6 years ago
Hi All,

While using gethibernateTemplate() I observed this is deprecated as per spring-orm version 3(as SessionFactory.getCurrentSession() was not present) but not deprecated as per spring-orm version 4. I have couple of question :

1. Is it suggested to use if we choose version 4?
2. If not then what is the ideal way to implement these functionality getHibernateTemplate ().save/update/find?
Hi All,

I have a application where from UI multiple REST services are called sequentially to fulfill value in dropdown list. All these service are cached using ehcache with 1 min as TTL.
The problem is I am getting response code 204 - No Content intermittently for any of those services. It is not always the same service which is throwing 204. All intermittently throwing 204, not all at the same time but one of them at a time.
Please help.
6 years ago
Hi,

I am trying to configure two different report in my local sonar. But as because there should be only one 'sonar.projectKey' in sonar-scanner.properties, so I was wondering if it is possible if I want to generate two different reports for example for Clover and Cobertura in the same sonar server for same project at the same time.

That will be easy for me to compare them.

Thanks,
Kousik
7 years ago
Hi,

Can somebody give me the industry wise usage data for the below mentioned test coverage tools?

1. Emma
2. Jacoco
3. Cobertura
4. Clover
7 years ago
Hi,

Can anyone suggest a good video on all the data binding technologies?


Thanks in advance,
Kousik
Hi,

Can Soap based web services call REST \/Restful web service and vice versa?

Thanks,
Kousik
8 years ago
Hi,
Could you please tell me at what time the video tutorial will start and will it cover security of Rest too?



Thanks,
Kousik
8 years ago
Hi All,

I am trying to deploy a JAX-WS web service project in Websphere 7.0 server. At the last step when I am clicking Finish it is throwing
NoClassDefFoundError: org.springframework.web.context.support.SpringBeanAutowiringSupport error.
Due to this reason my ear is not deployed.I have checked that ear contains the spring-web jar as well.
I have found a way to bypass this problem. Please let me know what is the root cause and the permanent solution of this problem.

Here is the way I bypassing this problem each time I am deploying a new ear.

1. Clicking on the project and going to 'Class loading and update detection'.
2. Then I am selecting 'Classes loaded with local class loader first (parent last)' in Class loader order and saving.
3. Again coming back to same place and reverting back the changes by selecting 'Classes loaded with parent class loader first'. And apply.
4. Now I select the project and start it wont give any problem.

PFB Full error log:
9 years ago
Hi Winston,

I understand your concern. While trying to solve my original problem it suddenly came into my mind how can I stop a simple long running loop from outside the thread without breaking it but forcefully stopping that thread. Thats why I posted this thread.My original problem is posted here ExecutorServiceTimeout.

Let me know if that is understandable.
9 years ago
Thank you for your suggestion Junilu. But I did not find any api suitable for this task.
To be more specific suppose I have below code which runs for a very long time in a thread but I want to kill that thread after 2 seconds no matter whether it is finished or not. How can I achieve that. Below is a small piece of code which does not work as my expectation(because invokeAll does not kill the thread after specified time).

Please guide me for a suitable solution.

9 years ago
Hi All,

We do have a logging feature in our application which is invoked as part of New thread. This logging post messages in MQ, if MQ is down without writing the logs the LoggerThread objects are accumulating in server insisting server to hang. The problem is we are using ExecutorService as a thread pool and writing in logs using this.

What I am looking for now is incorporating Timeout into this ExecutorService which will cancel/stop/kill the LoggerThread thread from executing after a specified timeout period.

Can someone give a solution using an example.
Hi All,

Suppose I do have a below loop as my task. How can I stop executing this loop with timeout(of 2 seconds) using java concurrent package?


9 years ago