[JBoss Profiler Development] New message: "Re: Has this project stalled?"
by Pat Arneson
JBoss development,
A new message was posted in the thread "Has this project stalled?":
http://community.jboss.org/message/520346#520346
Author : Pat Arneson
Profile : http://community.jboss.org/people/noise_is_life
Message:
--------------------------------------------------------------
So if I'm understanding what you are saying, it seems things should be in order. I've been through the entire document a couple of times, what it doesn't really tell me is how to exactly string all those dandy properties and commands together in a meaningful way. Obviously the default properties file goes a long way in that regard.
A couple follow-ups.
The classes in question live in an EAR, should that matter?
When I run a list from the client I get the following:
> [admin@g2a jboss-profiler-2.0.0.Beta5]$ java -jar jboss-profiler-client.jar -h 0.0.0.0 -p 5400 list
> org.jboss.profiler.*
> org.apache.jsp.*
Neither of those packages are defined in my config and there is no sign of the packages I did define.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520346#520346
16 years, 2 months
[JBoss Profiler Development] New message: "Re: Has this project stalled?"
by Pat Arneson
JBoss development,
A new message was posted in the thread "Has this project stalled?":
http://community.jboss.org/message/520339#520339
Author : Pat Arneson
Profile : http://community.jboss.org/people/noise_is_life
Message:
--------------------------------------------------------------
Great!
The most obvious thing would be to help out with some documentation once I figure things out enough for my own purposes.
So on to my questions to at least get the thing working.
I have the profiler running and am able to take snapshots, but have been unable to get my classes to show up in the profile.
Here are the first few lines of my jboss-profiler.properties:
> enable=yes
> precompiled=no
> cpu=yes
> memory=yes
> includes=com.upstream.inbound.*|public,com.upstream.inbound.*|public
> excludes=*
> visibility=private
> save=yes
> savelocation=.
> startup=yes
> ...
I'm unclear as to the purpose of the private/public visibility attribute so I guessed.
I also tried the following command in an attempt to get the profiler to see my classes:
java -jar jboss-profiler-client.jar -h 0.0.0.0 -p 5400 add com.upstream.inbound.*
But no luck.
My attempts so far have been with 2.0.0.Beta5.
Thanks.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520339#520339
16 years, 2 months
[JBoss Microcontainer Development] New message: "Re: Activating OnDemand beans from child controller"
by Kabir Khan
JBoss development,
A new message was posted in the thread "Activating OnDemand beans from child controller":
http://community.jboss.org/message/520261#520261
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
> mailto:kabir.khan@jboss.com wrote:
>
> Fixing http://lists.jboss.org/pipermail/jboss-development/2010-January/015434.html I am adding a ScopedOnDemandDependencyTestCase (extends OnDemandDependencyTestCase similar to (Scoped)DuplicateAliasTestCase), but have found a deeper problem. If an OnDemand bean is installed in the main controller and is depended on by a bean in a child controller the OnDemand bean never gets activated and the child controller bean's dependency never resolved.
> I install Bean1 with OnDemand, goes to Describe state
> I install scoped Bean2 with Automatic and a dependency on Bean1, goes to Instantiated state fine
>
> When trying to move Bean2 to Configured state it does not resolve for the following reasons:
> When enabling ondemand beans in AbstractDependencyItem.resolve(), it was looking at the wrong controller, I changed:
>
> *if* (unresolvedContext != *null* && ControllerMode.ON_DEMAND.equals(unresolvedContext.getMode()))
> {
> *try*
> {
> controller.enableOnDemand(unresolvedContext);
>
>
>
>
> to
>
>
> *if* (unresolvedContext != *null* && ControllerMode.ON_DEMAND.equals(unresolvedContext.getMode()))
> {
> *try*
> {
> unresolvedContext.getController().enableOnDemand(unresolvedContext);
>
>
>
>
>
>
> Now Bean1 correctly gets its requiredState set to INSTALLED. Unfortunately this is not enough.
>
>
>
> In the normal/unscoped mode the mechanism is that AbstractDI.resolve() returns false, and we end up back in the resolveContexts() loop which finds Bean1 is not in its requiredState (INSTALLED).
>
>
>
> In the scoped test, it does not get picked up since Bean2 was installed in the scoped controller whose resolveContexts() does not involve the main controller so Bean1 is never found.
>
>
>
> I'll see if I can fix this
>
>
After a trying a few different things what I have now is.
-Leaving DependencyItem as is
-Modifying AbstractController.enableOnDemand() to set onDemandEnabled for the initiating controller (i.e. scoped in this case) and also for the controller the OnDemand context actually belongs to.
-Modifying the AbstractController.resolveContexts() loop to record if onDemandEnabled was true, and if it was when finishing the loop to call resolveContexts() on the parent controller.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/520261#520261
16 years, 2 months