Questions tagged [commonj]

Use tag for CommonJ - Timer And Work Manager API

CommonJ is the Timer and Work Manager API

API enables concurrent programming of EJBs and Servlets within aJ2EE application.

Docs: https://docs.oracle.com/cd/E13222_01/wls/docs92/commonj/commonj.html

32 questions
8
votes
3 answers

CommonJ TimerManager versus EJB3 TimerService

I have to implement a simple (not clustered) timer for WebLogic and it seems there are two different 'standard' options Timer and Work Manager API (CommonJ) EJB3.0 TimerService Does anyone have any advice on using the CommonJ TimerManager versus…
fglez
  • 8,422
  • 4
  • 47
  • 78
7
votes
1 answer

Thread keeps running even after application has been stopped in Websphere

I have a long running thread which is created using org.springframework.scheduling.commonj.WorkManagerTaskExecutor with Spring and is running in Websphere Application Server 8. The problem is that this thread keeps running even if the application…
Alfredo Osorio
  • 11,297
  • 12
  • 56
  • 84
6
votes
1 answer

Enable programmatic concurrency on Jetty with WorkManager

I managed to configure a custom implementation of the CommonJ − JSR 237 Timer & WorkManager API (http://commonj.myfoo.de) as a JNDI resource on Jetty 6 and 8, but it only works in a global scope. With this solution JNDI name of the resource is…
Rafael Guillen
  • 1,343
  • 10
  • 25
5
votes
3 answers

Using a CommonJ implementation with GlassFish and Spring 3

In my quest to unify deployment among Websphere 7 and GlassFish 3 environments, I decided to try implementing a CommonJ WorkManager and TimerManager in GlassFish. But it isn't quite working as expected. I have done the following: Use the myFOO…
faffy
  • 351
  • 3
  • 14
3
votes
2 answers

Websphere equivalent to glassfish-web.xml

I have two deployment environments - Websphere 7.0 and Glassfish 3.1. I have to include a work manager resource reference in the web.xml of my applications for the Websphere environment like so:
faffy
  • 351
  • 3
  • 14
3
votes
2 answers

Is there a way to integrate CommonJ WorkManager with Glassfish

Is there a way to integrate CommonJ WorkManager with Glassfish
Rohan
  • 83
  • 1
  • 9
3
votes
2 answers

How to configure spring commonj workManager in webSphere liberty profile server 8.5

I'm trying to migrate a spring web application to WebSphere liberty profile 8.5 from WebSphere application server 7. I'm getting "java.lang.NoClassDefFoundError: commonj/work/WorkException" at the application start up. I configured the data sources…
user3767688
  • 51
  • 1
  • 3
3
votes
1 answer

Custom Thread on Weblogic Server 11g

I need a custom threda on my weblogic server; I cannot use TimerEJB or Delayed MDB since I have to use a 3d library. I know that custom threads on application server are discouraged; here a related post (4 years old): Why is spawning threads in Java…
giusy
  • 365
  • 2
  • 5
  • 17
2
votes
1 answer

How to notify mainthread when completing WorkEvent with exception?

I'm working with the IBM WorkManager (v8.0.0) to do some work asynchronous to the main thread. For this I use the following code: // wm = via resource injected WorkManager WorkItem item = wm.startWork(work, WorkManager.INDEFINITE, new…
bish
  • 3,381
  • 9
  • 48
  • 69
2
votes
1 answer

Why is Weblogic work manager is rejecting work

I am using commonJ work managers running in web logic environment. My setup is as follows: My spring application context
cp5
  • 1,087
  • 6
  • 26
  • 58
2
votes
0 answers

How to implement CommonJ Work Manager with WebSphere?

I have never implemented CommonJ Work Manager with WebSphere. Infact, i am not even familiar with this term. We have one schedular running currently which runs after specific time interval, it creates a job and handles the job to the…
DineshM
  • 829
  • 1
  • 15
  • 24
2
votes
3 answers

Spring WorkManagerTaskExecutor cannot initialize in websphere

i want use Websphere work manager for executing async jobs in jee context but i have problem with creating spring WorkManager. bean definition:
JIV
  • 813
  • 2
  • 12
  • 30
2
votes
1 answer

weblogic 10 TimerManager avoiding propagation of security context to the scheduled tasks

We are using weblogic 10 and I am using the commonj's TimerManager which is part of weblogic to schedule a task, everything is fine but I have one problem. The securitycontext of the thread which scheduled the TimerListener task is somehow stored in…
Kumar225
  • 227
  • 1
  • 5
  • 13
1
vote
2 answers

How do I ignore stuck threads in a Weblogic Server

I've got the below code working on Weblogic Application Server 10.3.2. The long running task executed on timerExpired takes longer than the server wide StuckThreadMaxTime of 600 seconds. I do not want to modify this value, but just to ignore the…
rudolfv
  • 797
  • 1
  • 9
  • 22
1
vote
1 answer

Websphere workmanager alternative

In my current project I see workmanager uses to process the thread in asynchronous. We are getting getting rid off IBM products and start using Tomcat. I need some input to replace the workmanager with what. I see commonj api but need some…
1
2 3