[JBoss Seam] - Re: Seam complained about Identity
by tonylmai
I am using Seam 1.2.1GA with JBoss AS 4.0.5GA, JSF 1.2. The project was generated with seam-gen.
Here is a snippet of my login.xhtml page:
<div>
| <label jsfc="h:outputLabel" for="loginID">#{res['login.loginId.label']}</label>
| <input jsfc="h:inputText" type="text" name="loginID" id="loginID"
| value="#{identity.username}" />
| </div>
| <br />
| <div>
| <label jsfc="h:outputLabel" for="password">#{res['login.password.label']}</label>
| <input jsfc="h:inputSecret" type="password" name="password"
| id="password" value="#{identity.password}" />
| </div>
| <div id="logonBtn" class="button">
| <b><a href="#" jsfc="h:commandLink" action="#{identity.login}" title="#{res['login.loginBtn.title']}">#{res['login.loginBtn.label']}</a></b>
| </div>
And here is a snippet of pages.xml:
<!-- Once logged in, if user wants to go to the login page, redirect to pending orders -->
| <page view-id="/login.xhtml" action="#{authenticator.checkIfLogedIn}">
| <navigation from-action="#{authenticator.checkIfLogedIn}">
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/pending_orders.xhtml"/>
| </rule>
| </navigation>
| <navigation from-action="#{identity.login}">
| <rule if="#{identity.loggedIn}">
| <redirect view-id="/pending_orders.xhtml"/>
| </rule>
| </navigation>
| </page>
|
| <!-- Upon successful login, redirect to pending orders page -->
| <page view-id="/login.xhtml">
| <navigation from-action="#{identity.login}">
| <rule if-outcome="success">
| <redirect view-id="/pending_orders.xhtml"/>
| </rule>
| </navigation>
| </page>
|
| <!-- After logged out, redisplay the login page -->
| <page view-id="*">
| <navigation from-action="#{identity.logout}">
| <redirect view-id="/login.xhtml"/>
| </navigation>
| </page>
|
I know it's very verbose. Sorry about that and thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042861#4042861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042861
17 years, 4 months
[JBossCache] - Re: Buddy Replication on Weblogic
by manik.surtani@jboss.com
anonymous wrote :
| 1) BuddyReplication only works in case of clustered environment? So If I have individual nodes which are not part of cluster then I can't use BuddyReplication?
|
You don't necessarily need a "cluster" as far as WL is concerned. They could be standalone servers. You will need some form of load balancing and session affinity however, perhaps provided by an external load balancer (HW or SW based)
anonymous wrote :
| 2) With the same configuration, when I dont use BuddyReplication in my cache-config, still the contents get replicated. i.e Application-1 and Application-2 were able to see the cache contents at any point of time.
| (Applications are deployed in two different AdminServers (not a part of cluster) but on single machine). Can you please tell us if that is right and how it replicated the contents when we did not use BuddyReplication and why it is not replicating the contents when we use BuddyReplication?
|
WL "clustering" has no effect on JBoss Cache, even if you have 2 separate Admin Servers.
Even with BR enabled, replication still happens - it is just that state is replicated to a backup region and not a primary region. This is why you do not see it.
anonymous wrote :
| Is it mandatory to use sticky session for BuddyReplication to work?
|
If it is to be of any benefit, then yes.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042858#4042858
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042858
17 years, 4 months
[JBoss jBPM] - Re: JBPM Identity
by Johan.Parent
Hi,
Actually it is indirectly through the hibernate.cfg.xml that jbpm is hardwired to the identity module.
| <!-- following mapping files have a dependendy on -->
| <!-- 'jbpm-identity-{version}.jar', mapping files -->
| <!-- of the pluggable jbpm identity component. -->
| <!-- comment out the following 3 lines if you don't-->
| <!-- want to use the default jBPM identity mgmgt -->
| <!-- component -->
| <mapping resource="org/jbpm/identity/User.hbm.xml"/>
| <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
| <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
|
If you look into the corresponding java files (User.java etc...) you'll see they are part of the identity package (as the comment in the xml says).
Hope this helps,
Johan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042855#4042855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042855
17 years, 4 months