[Beginner's Corner]Session Scope - War Only?
by Stephen Davidson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings.
Due to a recent requirement change for the (growing) project I am on, I
am splitting the single WAR into Mutiple WARs. All WARs are still
inside the same EAR file. I was stunned to find that the scope of the
Session object was limited to the WAR file, and not the site (or at
least the EAR?) that the Request lives at. I spent some time Googling,
but did not find any information relevant to this behaviour.
Is there any way to share the Session among the WARs in an application?
Or do I need to store/read from the Temp data for the Session in the
Database now?
Regards,
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFG/PJ0PtiPEDq7o8YRAiPvAKCx5igfAj3eIAYPrLmjt4eQ17vBEACgkhgR
vALDMcRKQwTEckrmQ6664Hg=
=mGtV
-----END PGP SIGNATURE-----
18 years, 6 months
[JBoss jBPM] - Problem with the decision making node
by ashusri000
Hi All ,
I am a new user to the jBPM tool and quite in a fix with it . I am trying a simple process as this :
| START
| |
| Set & Check Account Type
| /\
| Active / \ Inactive
|
| Get Address Get Reactivated
|
But the problem is that after executing the correct condition it traverses the Get Address node again at the end . I am unable to figure out why does it so ? Please , it would be very kind of you if you can help with this ...........
the action handler for the decision box goes like this :
| public void execute(ExecutionContext context) throws Exception {
|
| System.out.println("Checking the Accnt Status");
| if(context.getContextInstance().getVariable("acctStatus").equals("active"))
| {
| System.out.println("Account is Active");
|
| context.leaveNode("Yes");
| }else{
| System.out.println("Account is InActive");
| context.leaveNode("No");
| }
|
|
|
|
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <start-state name="start">
| <transition name="" to="CheckaccountType"></transition>
| </start-state>
| <end-state name="end">
| </end-state>
| <decision name="CheckaccountType">
| <event type="node-enter">
| <action name="action1" class="com.bpm.actions.CheckAcctStatus"></action>
| </event>
| <transition name="Yes" to="Fetch Address Info"></transition>
| <transition name="No" to="InactiveAccount"></transition>
| </decision>
| <node name="Fetch Address Info">
| <event type="node-leave">
| <action name="action1" class="com.bpm.actions.FetchAddInfo"></action>
| </event>
| <transition name="1" to="end"></transition>
| </node>
| <node name="InactiveAccount">
| <event type="node-enter">
| <action name="action1" class="com.bpm.actions.InactiveAcctStatus"></action>
| </event>
| <transition name="2" to="end"></transition>
| </node>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089662#4089662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089662
18 years, 6 months
[JBoss Portal] - Re: JBoss Portal LDAP Setup
by shilpak
Hi,
I am using jboss portal 2.6.0 bundle version. I made the changes in jboss-service.xml to use ldap server as storage. And in login-config.xml I uncommented SynchronizingLoginModule module. So i will be using SynchronizingLoginModule and IdentityLoginModule for authentication.
I started the server. I am able to add users from ldap browser and its reflecting in application. And also i am able to add users through application and albe to see in ldap browser. But when i stop ldap server, i still should be able to login with old and new user accouts right, as i have used synchronizingLoginModule, It would have synchronised ldap users with the db? Is not SynchronizingLoginModule does not work?
If I stop ldap server, and restart the application, I am not able login with any credentials. If i modify jboss-service.xml, to use db as storage, then I am able to login with old users, But not with new users which I added though ldap.
Whats the use of SynchronizingLoginModule then?
Hope I am clear in explaining my problem.
Thanks in advance
Shilpa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089657#4089657
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089657
18 years, 6 months