[Design of EJB 3.0] - Re: BeanContainer.getAnnotation returning the old value
by ALRubinger
PS - don't bother looking for this logging, I've added it locally only so far:
Index: core/src/main/java/org/jboss/ejb3/Ejb3DescriptorHandler.java
| ===================================================================
| --- core/src/main/java/org/jboss/ejb3/Ejb3DescriptorHandler.java (revision 81924)
| +++ core/src/main/java/org/jboss/ejb3/Ejb3DescriptorHandler.java (working copy)
| @@ -27,6 +27,8 @@
| import java.lang.reflect.Method;
| import java.util.ArrayList;
| import java.util.Arrays;
| +import java.util.Collection;
| +import java.util.Collections;
| import java.util.Iterator;
| import java.util.List;
| import java.util.Map;
| @@ -1089,6 +1091,12 @@
| {
| annotation.addValue(roleName);
| }
| +
| + // Log and add
| + log.debug("Adding @" + RolesAllowed.class.getSimpleName() + " for method "
| + + method.getMethodName() + "("
| + + method.getMethodParams() + ") of EJB " + method.getEjbName() + ": "
| + + Arrays.asList(annotation.value()));
| addAnnotations(RolesAllowed.class, annotation, container, method);
| }
| }
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193638#4193638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193638
16 years, 1 month
[Design of EJB 3.0] - Re: BeanContainer.getAnnotation returning the old value
by ALRubinger
I'd meant to update you on my progress here.
There's no caching in the BeanContainer; what's going on is that we're explicitly adding this metadata:
22:54:44,298 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB FirstBean: [InternalRole]
| 22:54:44,298 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB FirstBean: [Echo]
| 22:54:44,403 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method *(null) of EJB SecondBean: [InternalRole]
| 22:54:44,403 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB SecondBean: [InternalRole]
| 22:54:44,403 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB SecondBean: [Echo]
| 22:54:44,516 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB SimpleStatelessBean: [Echo]
| 22:54:44,663 INFO [Ejb3DescriptorHandler] Adding @RolesAllowed for method echo([java.lang.String]) of EJB SimpleStatefulBean: [Echo]
I'm finding why.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193637#4193637
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193637
16 years, 1 month
[Design of JBoss Profiler] - Re: Coding standards and process queries
by jesper.pedersen
anonymous wrote : OK, I'll play with the existing setup and see what I can do with it. From looking at the templates, it seems to me that if we can put all the menu items into one area of the page, then merging the various templates into one should be pretty simple. The simplest way to put all the menu stuff in one place for now AFAICT would be to add the stuff on the left to the menubar across the top.
Sounds like an idea.
anonymous wrote : Also, while I'm working on menu stuff, I'm guessing all the menu titles should go into the properties bundle as you'd mentioned in an earlier post.
Correct.
anonymous wrote : I guess I'm not familiar with the functionality in the commandline client, but it seems to me from my brief look over the web app so far that there's a fair bit of functionality there. Are you aware if there's much missing?
You could try the test case -- see README.txt how to execute it. As to the web front-end I havn't looked into to it in detail -- I know that the connection to the agent is one of the first things that needs to be fixed.
I'll look the web front-end over soon and file some JIRAs about missing functionality -- but the output from the command line client should be a good starting point ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193581#4193581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193581
16 years, 1 month