Hi Chetan,

On Thu, 2015-04-23 at 10:03 +0530, Chetan Mehrotra wrote:
> > I assume that this happens because there is no OSGi environment 
> > available
> 
> Thats not the case. MBean would be registered only if a MBeanServer 
> is
> provided while constructing Oak instance (in non OSGi env). So in
> oak-run where Oak instance is created if you also set MBeanServer
> 
> Something like
> Oak oak = ..
> oak.with(ManagementFactory.getPlatformMBeanServer());
> 
> This would lead to registration of MBean

Thanks for the pointer. Filed

  https://issues.apache.org/jira/browse/OAK-2805

with a trivial patch to enable JMX MBean registration for oak-run.

Robert

> Chetan Mehrotra
> 
> 
> On Wed, Apr 22, 2015 at 6:37 PM, Robert Munteanu <romb...@apache.org
> > wrote:
> > Hi,
> > 
> > I've built Oak from trunk and want to access the
> > DocumentNodeStoreMBean. I see that the mbeans are not registered 
> > when
> > using oak-run ( I assume that this happens because there is no OSGi
> > environment available ).
> > 
> > I can always install a custom version of Oak in Sling, but I was
> > wondering whether there's a faster way of running a locally-built 
> > Oak
> > in an OSGi environment.
> > 
> > Thanks,
> > 
> > Robert

Reply via email to