[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-03-05 Thread vickyk
Found the problem , it was in the AspectManager .
When I included org.jboss.mc in 
org.jboss.test, org.jboss.injbossaop, org.jboss.cache.jmx, 
org.jboss.cache.pojo.jmx, org.jboss.ha, org.jboss.invocation , org.jboss.mc
it worked ..







View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025117#4025117

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-03-04 Thread alesj
No, you need this piece of xml code to integrate aop aspects with pojo 
instantiation - order matters (add dependency if needed).

This is a small example I've done for Seam, and it works.

  |
  | 
  |
  |   
  |
  | 
  |
  | 
  |
  |   
  |   
  |
  | 
  |
  |   @org.jboss.seam.annotations.Name
  |   
  |  
  | 
org.jboss.kernel.spi.dependency.KernelControllerContextAware
  |  
  |   
  |   
  |
  | 
  |
  |   execution(* 
$instanceof{org.jboss.kernel.spi.dependency.KernelControllerContextAware}->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))
  |   
  |   
  |
  | /code]
  | 
  | It intercepts all MC beans that have Seam's @Name annotation.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024918#4024918

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-03-03 Thread vickyk
I don't think comments in xml will cause any problem , the pojo-beans.xml 
contains only one bean .
Turn on debuging / trace log for more info.
Yes this is the last option left now :(

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024832#4024832

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024832
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-03-03 Thread alesj
Your xml is commented - with 

[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-03-02 Thread vickyk
Ales , Can you too test this 
1) I have POJO 
public class SimplePojo implements SimplePojoMBean
  | {
  | public void display(){
  | System.out.println("Hello ");
  | }
  | }
  | 

2) POJO MBean Interface as 
public interface SimplePojoMBean
  | {
  | public void display();
  | }
  | 

3)pojo-beans.xml as 

  | 
  | 
  | 
  | 
  |
  | 
  |
  | 
  | 
  |
  |
  |   
@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=POJO",
 exposedInterface=org.jboss.mc.SimplePojoMBean.class, 
registerDirectly=true) 
  | 
  | 
  | 

I prepared the pojo.jar which contians SimplePojo and SimplePojoMBean .I am 
keeping this at Jboss-5.0.0.Beta1\server\default\lib
I have kept the pojo-beans.xml file at the 
Jboss-5.0.0.Beta1\server\default\deploy .
I would expect the SimplePojoMBean getting registered in Mbean server , but I 
am not able to look this bean at jmx-console .
What is wrong here ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024745#4024745

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread vickyk
"alesj" wrote : "vickyk" wrote : 
  |   | All we need to do is to have the above code formed through the xml file 
when using the MC . Am I right ?
  |   | 
  | Yes, see how this is done in JMXDecoratedTestCase.(java|xml).
  | And this can be simplified now - less aop xml code.

After looking into the JMXDecoratedTestCase I have found this
  |   org.jboss.aop.microcontainer.aspects.jmx.JMX
  |
  | 
What does this precisely do ?

I have prepared a POJO , I have prepared a jar of that and dropped in the 
server/default/lib as pojo.jar . The pojo.jar contains the required POJO .
The step where I am getting stuck is how to configure the pojo-beans.xml for 
the POJO 
I am not able to understand what to have instead of this 
   
  |   org.jboss.aop.microcontainer.aspects.jmx.JMX
  |
  | 

Here goes my pojo-beans.xml contents 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   org.jboss.aop.microcontainer.aspects.jmx.JMX
  |
  | 
  | 
  |   
  |   
  |
  | 
  | 
  |   execution(* 
org.jboss.test.microcontainer.support.SimpleBeanImpl->*(..))
  |   
  |   
  |
  | 
  |  
  |
  |
  |   
@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=POJO",
 exposedInterface=org.jboss.mc.SimplePojoMBean.class, 
registerDirectly=true) 
  | 
  |   
  | 

What should be the entry for the  beanfactory's classname  in the 
pojo-beans.xml which I have pasted above? Looks like I need to write some class 
specific to POJO here or I can use some standard one from the Jboss itself ?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023945#4023945

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023945
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread alesj
JBoss5_Beta2 is about to be released.
MC features are quite polished there.
Or maybe you can port MC v2.0 to replace v1.0 in JBoss4.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023628#4023628

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023628
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread eknathkadam
Thanks for the response.
Eventually we would start using v2.0, but that also means Jboss5, for which we 
will have to wait for sometime untill GA is out.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023624#4023624

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023624
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread alesj
Ok, I had some idea, but it is far uglier than the one with exporter.
Never mind about KCCA in v1.0.
Try with exporter.

Or what's the problem updating MC to v2.0(beta)?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023564#4023564

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread eknathkadam
"alesj" wrote : Can you look if KernelControllerContextAware interface is 
present with v1.0?

Yes, it is present with v1.0

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023560#4023560

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023560
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-28 Thread alesj
Or you can always add a MBean Exporter kind of bean.
Inject MBean server bean into it and all the beans that you want to export 
(along with ObjectName and exposed interface info).
There is no 'exporter' impl within MC, but you can probably use this one (with 
slight modifications) 
http://www.springframework.org/docs/api/org/springframework/jmx/export/MBeanExporter.html.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023520#4023520

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023520
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread alesj
Can you look if KernelControllerContextAware interface is present with v1.0?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023514#4023514

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023514
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread eknathkadam
I believe all this JMX support is for microcontainer that is supplied with 
Jboss5, I think the MC release is 2.0, is there any JMX support in prior 
release, the one supplied with Jboss 4.x (release 1.0, I guss.) ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023482#4023482

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023482
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread alesj
"alesj" wrote : And this can be simplified now - less aop xml code.
See JMXLifecycleTestCase.xml.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022982#4022982

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022982
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread alesj
"vickyk" wrote : 
  | All we need to do is to have the above code formed through the xml file 
when using the MC . Am I right ?
  | 
Yes, see how this is done in JMXDecoratedTestCase.(java|xml).
And this can be simplified now - less aop xml code.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022975#4022975

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022975
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread vickyk
org.jboss.aop.advice.AdviceBinding binding = new 
AdviceBinding("execution(POJO->new(..))", null);
  |   binding.addInterceptor(SimpleInterceptor.class);
  |   AspectManager.instance().addBinding(binding);
All we need to do is to have the above code formed through the xml file when 
using the MC . Am I right ?

And logically the Interceptor will 
1) Read the annotation data of the POJO .
2) Get the MBeanServer .
3) Register the POJO in the MBeanServer .

Am I missing something here ?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022964#4022964

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022964
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread alesj
"eknathkadam" wrote : "bkeh12" wrote : 6. JMX interface for deployed components 
if desired 
  |   | 
http://jira.jboss.com/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolutionIds=-1&pid=12310060&fixfor=12310587
  |   | 
  | I clicked this link but found nothing, any update on point 6 ?

Yes.
It is there for a while now.
Already used with JBoss5 clustering support.

See this issues:
 - JMXDecoratedTestCase in MC testing
 - http://www.jboss.org/index.html?module=bb&op=viewtopic&t=94154&start=0
 - http://www.jboss.org/index.html?module=bb&op=viewtopic&t=102792

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022949#4022949

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022949
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Evaluating IOC Containers

2007-02-27 Thread eknathkadam
"bkeh12" wrote : 6. JMX interface for deployed components if desired 
  | 
http://jira.jboss.com/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolutionIds=-1&pid=12310060&fixfor=12310587
  | 

I clicked this link but found nothing, any update on point 6 ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022914#4022914

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022914
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user