[Security & JAAS/JBoss] - getRoleSets Migrating 4.0.1 to 4.0.4
by larriagada
Hello Everybody.
I'm migrating from JBoss4.01 to JBoss4.04 but I found a problem when I want to use my Custom LoginModule, I have the following class:
public class MyLoginModule extends UsernamePasswordLoginModule {
public MyLoginModule() {....}
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) {...}
protected String getUsersPassword() throws LoginException
{...}
protected Group[] getRoleSets() throws LoginException
{...}
}
in the .../default/conf/login-config.xml
<application-policy name="Myweb">
<login-module code="authentication.MyLoginModule"
flag="required">
</login-module>
</application-policy>
in each file *.war in ../WEB-INF/jboss-web.xml
<security-domain>java:/jaas/Myweb</security-domain>
this configuration worked well with JBoss4.01 but when I use JBoss4.04 the debugger and the log show that getRoleSets() is not used then I can not get the authentication.
Do you know if I need to declare another thing??
Any help will be appreciated
Leo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968504#3968504
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968504
19 years, 7 months
[JBoss Seam] - Re: Partial page rendering
by sbryzak2
It is possible with remoting, but you need to realise that once you start down that path its hard to turn back. I've successfully implemented a fully remoting-based application for my company and I must say that more than anything it reminds me of the way you used to write client-server apps.
All the code is loaded "up front" and the client is pretty much self-contained, only retrieving the data it needs from the server and rendering the interface itself. It's not difficult to abstract out the interface generation and there's plenty of Javascript libraries (dojo, etc) that might help out in this area.
What you miss out on with this architecture is the JSF component model, which means you can't use all those nice JSF components. And you also need to have reasonable Javascript skills. What you end up with though is a very responsive application, and with the minimal client-server communication it's great for reducing load on the server.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968503#3968503
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968503
19 years, 7 months
[JBoss jBPM] - Re: before-signal and node-enter action question
by obrand
"obrand" wrote : New to jBPM and canoot understand within a simple test what is the difference between the before-signal and the node-enter as both reacts the same way.
| Actually the after-signal is doing the same that before-signal as well.
|
| The code snippet for the process is:
|
| <state name="auction">
| | <event type="before-signal">
| | <action name="devInfo" class="com.fota.action.DevInfoActionHandler"></action>
| | </event>
| | <event type="node-enter">
| | <action name="devInfo2" class="com.fota.action.DevInfoActionHandler2"></action>
| | </event>
| | <event type="after-signal">
| | <action name="devInfo3" class="com.fota.action.DevInfoActionHandler3"></action>
| | </event>
| | <transition name="to_end" to="end"></transition>
| | </state>
| And the Test is:
|
| ProcessInstance process = new ProcessInstance(definition);
| |
| | assertEquals("Process in start mode", process.getRootToken().getNode().getName(), "start");
| |
| |
| | process.signal();
| | logger.info((String)process.getContextInstance().getVariable("devInfo2"));
| | assertEquals("Process in auction mode", process.getRootToken().getNode().getName(), "auction");
| |
| | logger.info((String)process.getContextInstance().getVariable("devInfo"));
| | process.signal();
| | logger.info((String)process.getContextInstance().getVariable("devInfo3"));
|
|
| devInfo is null on this test whereas placed after the next signal(), it prints the right content.
|
| Could someone explains me the execution model associated with the action types?
|
| Thanks
|
| Olivier
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968502#3968502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968502
19 years, 7 months
[JBoss jBPM] - before-signal and node-enter action question
by obrand
New to jBPM and canoot understand within a simple test what is the difference between the before-signal and the node-enter as both reacts the same way.
Actually the after-signal is doing the same that before-signal as well.
The code snippet for the process is:
And the Test is:
ProcessInstance process = new ProcessInstance(definition);
assertEquals("Process in start mode", process.getRootToken().getNode().getName(), "start");
process.signal();
logger.info((String)process.getContextInstance().getVariable("devInfo2"));
assertEquals("Process in auction mode", process.getRootToken().getNode().getName(), "auction");
logger.info((String)process.getContextInstance().getVariable("devInfo"));
process.signal();
logger.info((String)process.getContextInstance().getVariable("devInfo3"));
devInfo is null on this test whereas placed after the next signal(), it prints the right content.
Could someone explains me the execution model associated with the action types?
Thanks
Olivier
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968501#3968501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968501
19 years, 7 months