[JBoss jBPM] - Re: JBPM Identity
by jpramondon
"kukeltje" wrote : Ok, here is another quick reply ;-)
|
| Well, you are kind of there, but not completely. I have to admit, the area of extending/overriding the identitycomponent and/or the ExpressionAssignmentHandler is/was kind of not really flexible and certainly not realy documented well.
|
| I think the best/easiest way is to not use the identity component and explicitly put AssignmentHandlers on tasks/swimlanes and not use expressions explicitly, at least not the jpdl expressions. You could pass a string param to your custom assignmenthandler which is in fact the expression you want to use and evaluate that in your assignmenthandler. The downside to this is that you have to explicitly put the assignmenthandler everywhere you want it. This is already reduced when using swimlanes btw.
|
| hth a little
Hi There,
I've been following this very interesting thread from the start and I'm really glad someone helps as much as you do.
I'm in a similar situation as Sherry's and if I understand well your post above, by simply not specifying any asignment expression in a task, the identity module is not used. Is this correct ?
If so, then the things I have to do to override the default ExpressionAssignmentHandler to define my own AssignmentHandler (say an LDAP one; for instance) are :
- comment these lines in the hibernate config
<mapping resource="hibernate.extra.hbm.xml" />
| <mapping resource="hibernate.identity.hbm.xml" />
|
- define a new class implementing AssignmentHandler interface
- refer to this class in the process desgin like this
anonymous wrote : <task-node name="createContract">
|
|
|
|
| </task-node>
|
| |
| | Is that right ?
| | You also recommend custom AssignmentHanlders to react to some passed variable in order to find which user the task should be assigned to. How exactly would one pass such variable to the AssignmentHanlder ?
| |
| | Thanks for precious time,
| |
| | Cheers,
| |
| | Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234337#4234337
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234337
16 years, 10 months
[JBossMQ] - Re: Socket closed exception in JBossMQ
by b.eckenfels
"vons1234" wrote : Hi,
| Every now and then i am seeing following exception in my server.log
|
| java.net.SocketException: Socket closed
| | at java.net.SocketInputStream.read(SocketInputStream.java:162)
| | ...
| | at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
| | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:31
| |
|
This happens when the network connection is terminated (either by hardware problems, firewall, router, os buffer shortage, jmx-stop of server or restart of the other side).
I dont think your (client) code can or is causing this.
However your client code is missing proper error and resource handling. Especially you should use finally blocks to close the connection. This can explain leaking connections, which lead to leaking threads and this quickly (on hpux) leads to out of native memory.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234335#4234335
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234335
16 years, 10 months
[Tomcat, HTTPD, Servlets & JSP] - Application home page from servlet
by antony_s
Hi,
I am developing a web application in Java EE, which will be deployed on JBoss at the root of a public web server. The home page needs to be served through a servlet, not just an index file.
I have set the context-root of the application to '/', and also tried setting the the url-pattern of a servlet to '/' - but of course, all requests are now being routed through this, so static resources such as images and CSS files are not being served.
It is a very simple objective to want to achieve, yet seems complex in practice. Do you have any suggestions on what I should try, or if there are any documentation resources may have missed?
I appreciate your support.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234324#4234324
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234324
16 years, 10 months