[JBoss Microcontainer Development] New message: "Re: Profiling the kernel project"
by Kabir Khan
User development,
A new message was posted in the thread "Profiling the kernel project":
http://community.jboss.org/message/527084#527084
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
Changing CommonAnnotationAdapter to not always create iterators improves things a little bit:
e.g. things like
ClassInfo classInfo = info.getClassInfo();
- for (Annotation annotation : retrieval.getAnnotations())
+ Annotation[] anns = retrieval.getAnnotations();
+ for (int i = 0 ; i < anns.length ; i++)
{
- for(T plugin : getPlugins(ElementType.TYPE, annotation, null, annotationClasses))
+ for(T plugin : getPlugins(ElementType.TYPE, anns[i], null, annotationClasses))
{
if (isApplyPhase)
- applyPlugin(plugin, annotation, classInfo, retrieval, handle);
+ applyPlugin(plugin, anns[i], classInfo, retrieval, handle);
else
- cleanPlugin(plugin, annotation, classInfo, retrieval, handle);
+ cleanPlugin(plugin, anns[i], classInfo, retrieval, handle);
}
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527084#527084
16 years, 4 months
[EJB 3.0] New message: "EJB3 Client with Shared InitialContext and Security"
by Chris Baxter
User development,
A new message was posted in the thread "EJB3 Client with Shared InitialContext and Security":
http://community.jboss.org/message/527079#527079
Author : Chris Baxter
Profile : http://community.jboss.org/people/cbaxter76
Message:
--------------------------------------------------------------
I'm in the process of developing a web application that will be comunicating with some ejb3 stateless session beans remotely. These session beans will be secured so only authenticated users can call them. Within the web app, I only want to create one initial context for looking up the beans on the back end, but I want each call to the back end to send back the principal and password of the person on the front end who is actually making the call. From all the examples I have seen, the security info is setup before creating the initial context (via some client side login module) and then all beans looked up via that context will propogate that security info to back end calls. Is there a way for me to have one global initial context and still be able to propogate different security info to the back end per call? Also, can I cache the remote session bean proxys and is there any benefit to doing this?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527079#527079
16 years, 4 months
[jBPM] New message: "Deleting a task with an ended execution"
by Per Christian Henden
User development,
A new message was posted in the thread "Deleting a task with an ended execution":
http://community.jboss.org/message/527073#527073
Author : Per Christian Henden
Profile : http://community.jboss.org/people/perchrh
Message:
--------------------------------------------------------------
Hi,
I have some tasks related to an ended execution and want to delete (or cancel) these tasks.
I'm not allowed to by taskService.deleteTask, it throws the exception shown below.
Would it be a problem if TaskDelete allowed you to delete tasks with an ended execution?
In org.jbpm.pvm.internal.history.events.TaskDelete
...
public TaskDelete(TaskImpl task, String reason) {
if (task.getExecution()!=null) {
throw new JbpmException("tasks related to an execution must be completed. they cannot just be deleted");
}
..
}
Suggested change:
if (task.getExecution()!=null && !task.getExecution.isEnded()) {
throw new JbpmException("tasks related to an execution must be completed. they cannot just be deleted");
}
Background:
An execution in a fork reached an end activity while the other executions of that fork had some tasks related to them. All executions ended. Now I want to get rid of those tasks.
Other suggestions on how to overcome this issue is welcome
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527073#527073
16 years, 4 months