[JBoss AOP] - Re: interceptors stack is static?
by bornmw
"kabir.khan(a)jboss.com" wrote : I fail to see how you would get that behaviour...
I was doing invocation.getInterceptors()[someIndex] = MyDummyInterceptor.
It did the job - interceptor at someIndex was disabled.
But MyDummyInterceptor remained there for all subsequent calls.
Which was a surprise to me - I really thought invocation contained current-invocation-related interceptors stack :)
"kabir.khan(a)jboss.com" wrote : But you can try to use the following Invocation method instead:
|
| | Object invokeNext(Interceptor[] newInterceptors) throws Throwable;
| |
|
Yes, this way it works.
I'm eventually copying invocation interceptors into a new array, modifying it (not forgetting to remove the current interceptor from it) and calling invokeNext(newInterceptors)
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125608#4125608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125608
18 years, 2 months
[Clustering/JBoss] - Ejb clustered registering
by tfranconville
Hi,
I have difficulties to deploy Stateless Ejb 3 on HA-JNDI.
If I have well understood, to do that, I only have to put the annotation @Clustered on my Ejb.
But when I deploy, I see nothing into the HA-JNDI Namespace with the JNDIView.
I view my Ejb only into the Global JNDI Namespace.
I have deployed my ear into the farm directory. I have added a service of PojoCache to share data.
What I have wrong ?
I have tried to do a lookup into my webapplication to found the ejb: NameNotfoundException
I have put conf/jndi.properties into my ear with thoses values to use the HA-JNDI.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1100
Thank to give me clue for my problem/understanding.
Regards
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125605#4125605
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125605
18 years, 2 months
[JBoss Seam] - seam conversation problem
by Necromancer
i try use conversation.
just annotated my method by @Begin (also try with @Create) and do redirect by return "/page.jsp"
in my method in Conversation context i see valid value
but after redirect it dissapear and conversation id is changed?
can some bidy help me?
PS i not use pages.xml, just simple @Begin and @End
| <h:inputText value="#{data.value}"/>
| <h:commandButton value="Click me" action="#{Action.action}"/>
|
| @Name("data")
| @Scope(ScopeType.CONVERSATION)
| public class Data {
| private int value;
|
| public Data() {
| System.out.println("Data create");
| }
|
| public int getValue() {
| return value;
| }
|
| public void setValue(int value) {
| this.value = value;
| }
| }
|
| @Name("Action")
| @Scope(ScopeType.SESSION)
| public class Action {
|
| @Logger private Log log;
| @Begin
| public String action() {
| System.out.println("1");
|
| return "/test2.jsp";
| }
|
| @End
| public String action2() {
| System.out.println("2");
| return "/test3.jsp";
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125599#4125599
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125599
18 years, 2 months