[JBoss jBPM] - Timers and transitions
by brado
Using jbpm 3.1.1, I am trying to accomplish the following:
1) Create a timer.
2) Execute some action as the result of the timer waking up and being serviced.
My question regards how to structure the business process in conjunction with the proper setting of the timer's transition. I have created a single business process which includes a node that creates the timer -- works without a problem. But I need the result of the timer waking up to execute another node in the process which performs an action. I thought this was simple as specifying the transition to this other node using the setTransitionName() method. However, the node specified is never being executed. Any ideas on why the transition to node isn't being executed, even though the timer is being processed?
Secondly, am I correct in assuming that the "transition to" node must be contained within the same business process of the node which creates the timer? If this is correct, then is the proper structure of the business process not to transition programmatically after the node which creates the timer is executed? (so that the business process execution exits and processing may continue while the timer awaits).
Thanks for your help.
Brad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962685#3962685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962685
18 years, 5 months
[Beginners Corner] - Re: Redeploying Servlet
by kalun
Thank you for your reply, I guess I should be more clear.
The Structure of the EAR file I deployed follows the J2EE specification:
| -Sample2.WAR File
| -META-INF
| -application.xml File
|
Inside the WAR File, the structure is
| -index.jsp File
| -WEB-INF
| -web.xml File
| -classes
| -src
| -HelloWorld.class File
| -HelloWorld.class File
|
When I redeploy (by coming the ear file to server/default/deploy diectory), I gets the following message:
| 09:58:04,744 INFO [TomcatDeployer] undeploy, ctxPath=/Sample2, warUrl=.../tmp/deploy/tmp61625Sample2.ear-contents/Sample2-exp.war/
| 09:58:30,285 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/Sample2.ear
| 09:58:30,395 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/Sample2.ear
| 09:58:32,919 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/Sample2.ear
|
But when I access the site, the OLD contents will show up instead of the updated once.
Once again, thank you for your help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962680#3962680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962680
18 years, 5 months
[JNDI/Naming/Network] - JNDI name not bound when servlet initializes
by jon_french@fws.gov
JBOSS 4.0.3.SP1
I have a servlet which on initialization (i.e. a call to its init(ServletContext) method) attempts to do a JNDI lookup to a datasource defined in a *-ds.xml file in my deploy directory. This works just fine as long as the servlet is not loaded when the context is loaded (i.e. the servlet's <load-on-startup> element is not defined).
However, when I set <load-on-startup> to a positive integer, the servlet initialization errors with a javax.naming.NameNotFoundException when trying to lookup the JNDI datasource name. To fix the error, all I have to do is touch the application's jboss-service.xml file to re-deploy the application. Presumably since the JNDI datasource is now correctly bound, the servlet initializes without difficulty.
Thus it seems as though my problem is that my sar (and thus the servlet context) is being deployed by JBoss before the Datasource is bound to JNDI. Is there a way in which to change this deployment ordering? I've tried many different hacks to try to get JBoss to bind the JNDI name before my context is loaded, all with no luck.
Can anyone help!?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962678#3962678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962678
18 years, 5 months
[Security & JAAS/JBoss] - JAAS and DatabaseServerLoginModule
by TheThirdEye
Hi,
I am trying to configure Jaas with DatabaseServerLoginModule, I have the following setup:
login-config.xml
<application-policy name="db_Sec_realm">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag="required">
| <module-option name="dsJndiName">java:/login_ds</module-option>
| <module-option name="principalsQuery">
| SELECT PASSWORD FROM USER WHERE LOWER(USERNAME) = TRIM(LOWER(?)) AND ENABLED = '1'
| </module-option>
| <module-option name="rolesQuery">
| SELECT DISTINCT RP.PERMISSION_NAME, 'Roles' FROM USER U, USER_ROLE UR, ROLE_PERMISSION RP WHERE LOWER(U.USERNAME) = TRIM(LOWER(?)) AND U.SEQ = UR.USER_SEQ AND UR.ROLE_SEQ = RP.ROLE_SEQ
| </module-option>
| <module-option name="unauthenticatedIdentity">anonymous</module-option>
| <module-option name="password-stacking">useFirstPass</module-option>
| <module-option name="hashAlgorithm">MD5</module-option>
| <module-option name="hashEncoding">base64</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
web.xml
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>Action servlet</web-resource-name>
| <url-pattern>*.do</url-pattern>
| </web-resource-collection>
| <web-resource-collection>
| <web-resource-name>Secure JSP Pages</web-resource-name>
| <url-pattern>/jsp/*</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>app_access</role-name>
| </auth-constraint>
| <user-data-constraint>
| <transport-guarantee>NONE</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
|
| <!-- Form-based login -->
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>db_Sec_realm</realm-name>
| <form-login-config>
| <form-login-page>/login.jsp</form-login-page>
| <form-error-page>/loginError.jsp</form-error-page>
| </form-login-config>
| </login-config>
|
| <!-- Permission for login (neede to access secure resources) -->
| <security-role>
| <role-name>app_access</role-name>
| </security-role>
|
| <session-config>
| <session-timeout>20</session-timeout>
| </session-config>
|
The problem:
When I try to login to the app using a valid username/password. I am redirected to the loginError.jsp page. I am really lost on how to debug this problem. Any pointers on the solution to this issue or possible areas of issues to investigate is greatly appriciated.
Regards,
MR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962677#3962677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962677
18 years, 5 months