From users-return-18511-archive-asf-public=cust-asf.ponee.io@felix.apache.org Wed Sep 19 15:32:17 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DDD58180621 for ; Wed, 19 Sep 2018 15:32:16 +0200 (CEST) Received: (qmail 36575 invoked by uid 500); 19 Sep 2018 13:32:11 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 36563 invoked by uid 99); 19 Sep 2018 13:32:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2018 13:32:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A78D31A321A for ; Wed, 19 Sep 2018 13:32:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.969 X-Spam-Level: * X-Spam-Status: No, score=1.969 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=liferay-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jNrPnPZZtyao for ; Wed, 19 Sep 2018 13:32:03 +0000 (UTC) Received: from mail-ot1-f68.google.com (mail-ot1-f68.google.com [209.85.210.68]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AA0655F582 for ; Wed, 19 Sep 2018 13:32:03 +0000 (UTC) Received: by mail-ot1-f68.google.com with SMTP id v44-v6so5714539ote.13 for ; Wed, 19 Sep 2018 06:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liferay-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=T5avekvh3qWXatdwgDB1lgGGBw5HXbxEz3W98aRyFfA=; b=BkjGpA5utpaexE5CM0+3ipmsgXei3f7thcVrp10Toh+E6R3dZ7R9cFXRDarbNF6geo vvGOlZ035zNH8aBNijYrFxonPQnn9nsCov5327ZKTgPInKA4bf+u3eRHFNw4/wZ2O5fP 1Cndb75nT7h1xhvG2lL7vHddLaoAL4bn+RQR0lxyQCGWl/TWJ36KiwMDw8rScsclTVlE oocQqjMSlFNQL6tfaxribo0/dB50Jdv7Szc3Acxrqqfjx3luXs7WfUxTyIXFkPmX2Ok0 qLQA2sjgNHO3P/F8cP+D93GPEHlFEOkYt4c2rcqa8Rjq25eQft0qMfHXoue22yY94PQQ EdYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=T5avekvh3qWXatdwgDB1lgGGBw5HXbxEz3W98aRyFfA=; b=DMv+nz+dANCaQKdAKKJuKZaCct5a2QFxdkixNRN+JvVA9ftZhNBlh79b3VG43eoMhm OfOBo3h0OBLGch9nIYcVmYIWAMvNf+6xMi8RpNsdyJFNoXVkoMERqRd6CdXkJb7/qQkl OgdgOFtBLgaEuKjqaOQ0LGmYH1tCs8j0C8yBb92a78U0b3LIhxrtpIMLmrAkfOBtNA69 fDmCJtU55arN5CSBDPke1WCtPc6EY6SxndvqeLit3Dhj/zZChipZbwq0q9Mu9pABxOlK V0WlfqtHqk79lD5swgdPOosN5+IYld+r4zh85KUTBVnvBljMSV26YWH0ekdCM2fRUzLn 9kFw== X-Gm-Message-State: APzg51DKZEdADB7PSuLruZiq2Fx7+xkFiet8aDz7PDwsJcqv3BBfb7Rh NnZIKV+PuyfEwPLs6tWxe9YE0izjazM0pt5VbPRGLje6 X-Google-Smtp-Source: ANB0VdZE2cNzgR+gW84mfUEyZ6kbaaL2mMj/lHqYmtzwmHLcSriO9ej3n38qsP34A9/w8yg1RjwKIdZ7ZbkRlgGjN4U= X-Received: by 2002:a9d:5285:: with SMTP id f5-v6mr19386608oth.247.1537363922657; Wed, 19 Sep 2018 06:32:02 -0700 (PDT) MIME-Version: 1.0 References: <30a1e4ee-8cc8-714f-3183-fd314f6d08b4@nanthrax.net> <53216EEA-7620-4832-B674-84633D9B8A73@pernexas.com> In-Reply-To: From: Raymond Auge Date: Wed, 19 Sep 2018 09:31:49 -0400 Message-ID: Subject: Re: ***UNCHECKED*** Re: Connect remote JMX To: felix users Content-Type: multipart/alternative; boundary="000000000000803c3f0576396e83" --000000000000803c3f0576396e83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable including logging... On Wed, Sep 19, 2018 at 9:31 AM Raymond Auge wrote: > All I had to do in your project was: > > java -jar my-app/target/my-app.jar > > And it just worked. > - Ray > > On Wed, Sep 19, 2018 at 9:26 AM Raymond Auge > wrote: > >> So Philipp, >> >> When I sent you a PR, your app was already resolved. Why do you not have >> the framework packages? >> All you need to do is export the runnable jar, and everything should be >> there,.. then you can run that either locally or in a Docker image that >> provides Java. >> >> You've already done all the work! >> >> :) >> >> - Ray >> >> On Wed, Sep 19, 2018 at 9:16 AM Philipp H=C3=B6fler < >> Philipp.Hoefler@pernexas.com> wrote: >> >>> Hallo JB, >>> >>> thanks for your kind reply. >>> >>> I am getting confused :-) >>> I am quite new to the OSGi world, so my questions are probably very >>> basic. >>> >>> I am not sure, if I can use Karaf just like that, as I am using OSGi >>> enRoute R7. >>> As far as I understood, it's not finally released yet? So I guess, that >>> Karaf does it not support yet? >>> >>> Anyhow, I tried to deploy my app on Karaf. And there are a lot of >>> missing dependencies. >>> How is the best way of deploying a OSGi app? I've three bundles and eac= h >>> have different dependencies. >>> The packaged app jar, that is generated from the enRoute example >>> project, packs all these dependencies in a jar folder of the app.jar >>> What I do not understand is, why dependencies like "org.osgi.framework" >>> or "org.osgi.service.log" is missing. I though, that would be provided = by >>> Karaf? >>> >>> I recently added logging via the new OSGi Logging standard and logback. >>> I read on the Karaf website, that Karaf can already unify the logging >>> configuration. >>> As I understood, logback is also trying to unify the configuration over >>> all popular logging frameworks. Does it just work or do I have to adapt >>> anything? >>> >>> Thanks for your help, >>> Philipp >>> >>> =EF=BB=BFAm 19.09.18, 14:17 schrieb "Jean-Baptiste Onofr=C3=A9" : >>> >>> Hi Philip, >>> >>> You can use Karaf as a container. It supports different programming >>> model including OSGi of course. >>> >>> Karaf supports Aries JMX and MBean whiteboard pattern to simplify >>> the >>> way of exposing your MBeans (it's just registering a MBean service)= . >>> >>> Once done, you can use Karaf Decanter to collect the metrics and >>> have >>> monitoring/BAM/alerting. >>> >>> Don't hesitate to ping me if you need more details. >>> >>> Regards >>> JB >>> >>> On 19/09/2018 12:34, Philipp H=C3=B6fler wrote: >>> > Hi, >>> > >>> > I've setup a small OSGi application. >>> > The application gets some REST requests and forwards these >>> requests to a content repository using CMIS. >>> > So, basically the app consists of three bundles. The first bundle >>> provides and RESTful webservice (HTTP Whiteboard), the second the CMIS >>> connection to the repository and the third is the internal API between = the >>> other two bundles. >>> > >>> > Now, I am encountering performances problems. Storing documents t= o >>> the repository, is quite slower than it should be. >>> > I thought it would be a good idea, to monitor the application to >>> identify the bottle necks. >>> > That's why I would like to connect VisualVM (or JConsole) via JMX= . >>> > >>> > Right now the application is not finished yet, so the deployment >>> does not exists. >>> > I am currently using the bundled app from the enRoute R7 example >>> project for testing. >>> > >>> > Is it a realistic to use the bundled app for tests or is an >>> application server like Karaf faster? >>> > Is it possible to connect to the JMX of the bundled app? Would yo= u >>> recommend using Karaf (application server)? >>> > >>> > When you do recommend Karaf, how can I deploy my app to the >>> application server? >>> > Do I have to install every single bundle? >>> > >>> > As always, thanks for your help. >>> > Philipp >>> > >>> > >>> > >>> --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> > For additional commands, e-mail: users-help@felix.apache.org >>> > >>> >>> -------------------------------------------------------------------= -- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >> >> >> -- >> *Raymond Aug=C3=A9* >> (@rotty3000) >> Senior Software Architect *Liferay, Inc.* >> (@Liferay) >> Board Member & EEG Co-Chair, OSGi Alliance >> (@OSGiAlliance) >> > > > -- > *Raymond Aug=C3=A9* > (@rotty3000) > Senior Software Architect *Liferay, Inc.* > (@Liferay) > Board Member & EEG Co-Chair, OSGi Alliance > (@OSGiAlliance) > --=20 *Raymond Aug=C3=A9* (@rotty3000) Senior Software Architect *Liferay, Inc.* (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance= ) --000000000000803c3f0576396e83--