[JBoss Seam] - Re: How to control end of conversations/state of stateful be
by trouby
"pete.muir(a)jboss.org" wrote : "trouby" wrote : Well, sorry for being so annoying but I still don't get the point, If I have buttons that should start a conversation, propagation='none' is not an option
|
| Normally I find that you don't want to start a new conversation whilst another one is running. Post your use case for this.
My case? I think it's any case with buttons that always exist on the template,
Lets make an example:
I have a top menu(that is always with visible) with few options,
[my items: a, b, c, d]
Pressing on one item should start a conversation, as this item is heavily being managed later on.
I have added a 'done' button with propagation='none' but no one is using it : )
Pressing on another item(from the menu) in the middle of the current long running conversation causes the error,
I solved it by 'joining' to the current conversation just to fix the error but this is not too logical as the last selected item is not being managed by the user anymore.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117020#4117020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117020
18 years, 3 months
[JBossWS] - how to get password in handler
by jalaja
hi
i am using jax-ws handlers,i have set username and paddword property in client side
Map context = ((BindingProvider) hello).getRequestContext();
context.put(BindingProvider.USERNAME_PROPERTY, "user");
context.put(BindingProvider.PASSWORD_PROPERTY, "pass");
in the handler i want to access username and password
i am able to get username
public boolean handleMessage(MessageContext context) {
javax.servlet.http.HttpServletRequest httpServletRequest = ((javax.servlet.http.HttpServletRequest)context.get(MessageContext.SERVLET_REQUEST));
System.out.println("user name"+httpServletRequest.getRemoteUser());
System.out.println("principle"+httpServletRequest.getUserPrincipal());
return true;
}
i am getting fallowing output from the handler
user name user
user username="user" password="pass" roles="basicUser"
but i need password alone ....
how to get password alone...which property i have to use
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117016#4117016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117016
18 years, 3 months
[JBoss Seam] - Seam transaction problem (maybe unclear)
by dreuzel
I need to do a lot of independent updates in one session.(JTA)
principaly I need multiple Begin/commit sessions
and I use a delegate session to handle the transactions.
even though (all/most) transactions are commited successfull
i suffer from the main transaction being timed out.
This apearently causes all (previously committed ??!?) transactions to be rolled back
I understand, seam handles the transactions itself using (8.2Seam manged transactions )
mentions :
use an extended persistence context that is scoped to the conversation, instead of to the transaction
use two transactions per request; the first spans the beginning of the update model values phase until the end of the invoke application phase; the second spans the render response phase
is there some solution to the problem , Whatever happens a long
operation gets terminated by a timeout
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117013#4117013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117013
18 years, 3 months