[JBossWS] - Re: WSSE UsernameToken without HTTP basic auth?
by mikaeljl
Hi again.
I noticed another thing when running this test.
In my service I have system outs in the c-tor and finalizer.
I've also added postCreate and preDestroy methods with:
| public HelloImpl(){
| System.out.println("HelloServiceImpl created!!!");
| }
| @PostConstruct
| protected void doSetupStuff(){
| System.out.println("HelloImpl PostConstruct +++++!");
| }
|
| @PreDestroy
| protected void doCleanupStuff(){
| System.out.println("HelloImpl PreDestroy ------");
| }
| public void finalize(){
| System.out.println("HelloImpl finalize!!!");
| }
|
Afaik the postConstruct and predestroy annotations have not been supported on a pojo webservice before, when was this support added?
Anyway, I can see that the constructor and the postCreate method is called once for each request. But I never see the preDestroy/finalizer being called. The only way getting a call to these methods is to redeploy the service.
I've tried running explicit GCs using the Server MBean but that does not help.
What kind of pooling mechanism is being used for the pojo WS implementations?
Running a client in a loop sending lot's of requests results in jboss running out of memory (after approx 60000 requests).
Maybe the code was "in a state of flux" when I checked out latest from head?
I've used JBoss 4.2.3 GA and java 1.5.0_15-b04.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204885#4204885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204885
17 years, 2 months
[JBoss jBPM] - Not getting TaskEndLog when canceling the TaskInstance
by vikas_khengare22
Hi Friends,
I am not getting TaskEndLog when I am canceling the TaskInstance bye TaskInstance.cancel() method.
Here is what I am doing,
TaskMgmtInstance tmi = i_token.getProcessInstance().getTaskMgmtInstance();
| Collection<TaskInstance> unfinishedTasks = tmi.getUnfinishedTasks(i_token);
| for (TaskInstance task : unfinishedTasks) {
| task.cancel();
| }
& to get log
LoggingSession logSession = context.getLoggingSession();
| Collection<ProcessLog> logs = logSession.findLogsByToken(process.getRootToken().getId());
| for (ProcessLog processLog : logs) {
| if (processLog.getClass().equals( org.jbpm.taskmgmt.log.TaskEndLog.class)) {
| System.out.println("Task is ENDED");
| }
| }
If I have 5 steps in process and I have canceled the task on 4th step, then I am getting TaskEndLog for first 3 steps but NOT for 4th step in which I have canceled the task.
On 4th step only TaskCreateLog event is firing but not TaskEndLog and as per documentation it should end the task. (that means it should fire TaskEndLog in jbpm_log table).
Thanks
regards
Vikas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204876#4204876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204876
17 years, 2 months