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
1
vote
1 answer

Get Date from a DataObject (SDO) without losing the hour (JAVA)

I'm trying to get a date from a DataObject (Service Date Object (SDO)) that comes to me as an input and insert it into an Oracle database. The problem has been that the Date I get does not seem to have the introduced hour. I am using the setDate()…
Mikel SS
  • 13
  • 2
1
vote
1 answer

Programmatically create WorkManager on WAS 6.1

Is it possible to create a WorkManager from within a running application? (will even accept hacks and/or non-public API:) I have neither access to any deployment descriptor nor can I require any extra configuration in the deployment environment…
rustyx
  • 80,671
  • 25
  • 200
  • 267
1
vote
1 answer

How to use commonJ Timer Manager in MDB at Weblogic 10.3 environment

I am getting javax.naming.NameNotFoundException while trying to look up TimerManager. Here I am giving MDB components. MDBTimer.java package my.examples.mdb.timer; import javax.ejb.MessageDriven; import javax.ejb.TransactionAttribute; import…
1
vote
1 answer

Common timeout across ExecutorChannel threads

Our application integration flow is defined as splitter -> ws gateway -> aggregator. The splitter splits request into a list of account numbers; so that for each account number a web service call is initiated and the responses from multiple web…
1
vote
1 answer

How to get a JCA Workmanager on Websphere 8 for Springs WorkManagerTaskExecutor

We use an Websphere 8 Application Server and I want to use the servers workmanager in our webapplication. I am trying to get a reference to a jca workmanager javax.resource.spi.work.Workmanager to use it with Springs…
Lykourgos
  • 43
  • 7
1
vote
1 answer

Is there a way to integrate CommonJ WorkManager with JBoss 5.1

I did find a Jboss Commonj Service on sourceforge, but that appears to be for JBoss 4x. Any pointers would be great..
Shreeni
  • 295
  • 4
  • 12
1
vote
2 answers

Need sample code explaning Workmanager in Tomcat

I want to know how to use WorkManager in Tomcat 7. I came across the open source library Foo-CommonJ but nowhere i found a sample code explaning the usage. The input parameter for FooWorkManager's constructor is an instance of commonj.work.work…
0
votes
1 answer

"AsynchBeans Service not initialized" error trying to lookup WebSphere 7 WorkManager

I'm trying to use the CommonJ WorkManagerTaskExecutor as the task executor for a Quartz SchedulerFactoryBean in order to avoid unmanaged threads in WebSphere (described here--scroll down to "Quartz With CommonJ" section). Unfortunately, I can't seem…
holic87
  • 791
  • 2
  • 17
  • 29
0
votes
1 answer

OC4J (10.1.2) orion-web.xml

I try to use CommonJ with OC4J. I need to write 'resource-ref-mapping' in orion-web.xml If I have such entry in web.xml: tm/PublisherTimerManager commonj.timers.TimerManager
den bardadym
  • 2,747
  • 3
  • 25
  • 27
0
votes
3 answers

Setting up a CommonJ Timer Manager in Websphere

In the Web.xml I have: java:/comp/env/tm/TimerManager commonj.timers.TimerManager Container
user3648235
  • 169
  • 4
  • 13
0
votes
1 answer

commonj workmanager in jboss threads not waiting to complete

We have deployed commonj workmanager rar in jboss EAP 6.4.9.GA and jdk 1.7. We are using the workmanager reference to create multiple threads in case of multiple file uploads.We have the default configuration for the workmanager with 50 value for…
0
votes
0 answers

Mapping commonj work manager with weblogic work manager fails with NameNotFoundException

I have a (weblogic) singleton service that uses the commonj workManagerTaskExecutor to execute a task. I also have a work manager defined in my weblogic console with the name MyWorkManager. Now I am trying to map the commonj Work manager to the work…
Sherlock123
  • 61
  • 1
  • 1
  • 4
0
votes
2 answers

java.util.concurrent

im trying to kick off a Runnable classes run method however i keep getting a NullPointerException, Im using WebSpheres commonj.workmanager to get an instance of executorService.this is the code im using. executorService.execute(new Runnable() { …
cdugga
  • 3,849
  • 17
  • 81
  • 127
0
votes
1 answer

Using a Commonj Work Manager to send Asynchronous HTTP calls

I switched from making sequential HTTP calls to 4 REST services, to making 4 simultaneous calls using a commonj4 work manager task executor. I'm using WebLogic 12c. This new code works on my development environment, but in our test environment…
user994165
  • 9,146
  • 30
  • 98
  • 165
0
votes
2 answers

How to map commonj.work.WorkManager with weblogic 10.3 Work Manager

I am trying to use WorkManagers in Weblogic 10.3. I have defined work managers in weblogic-ejb-jar.xml. I declared a resource reference for commonj.work.WorkManager in ejb-jar.xml with the res-ref-name same as the Work manager defined in…