Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 64372 invoked from network); 14 Jan 2009 16:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 16:39:03 -0000 Received: (qmail 61640 invoked by uid 500); 14 Jan 2009 16:39:02 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 61100 invoked by uid 500); 14 Jan 2009 16:39:01 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 61091 invoked by uid 99); 14 Jan 2009 16:39:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 08:39:01 -0800 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 16:38:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LN8lF-0000Ye-7m for user@geronimo.apache.org; Wed, 14 Jan 2009 08:38:33 -0800 Message-ID: <21459715.post@talk.nabble.com> Date: Wed, 14 Jan 2009 08:38:33 -0800 (PST) From: fladimir To: user@geronimo.apache.org Subject: Re: How to get hold of a WorkManager in a web app? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: publicfakeemailaddress@yahoo.com References: <21400861.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Unfortunately I couldn't get it to work. I'm really new to gbeans, though... Maybe someone here (developer?) knows how this is supposed to be done? First I tried putting it inside the root tag and it gave me: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: jar:file:/home/apollo/software/geronimo-tomcat6-javaee5-2.1.3/var/temp/geronimo-deployer59214.tmpdir/lobby.ear!/META-INF/geronimo-application.xml:6:1: error: cvc-complex-type.2.4a: Expected element 'environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'gbean@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element application@http://geronimo.apache.org/xml/ns/j2ee/application-2.0 jar:file:/home/apollo/software/geronimo-tomcat6-javaee5-2.1.3/var/temp/geronimo-deployer59214.tmpdir/lobby.ear!/META-INF/geronimo-application.xml:22:4: error: cvc-complex-type.2.4a: Expected element 'environment@http://geronimo.apache.org/xml/ns/deployment-1.2' instead of 'gbean@http://geronimo.apache.org/xml/ns/deployment-1.2' here in element application@http://geronimo.apache.org/xml/ns/j2ee/application-2.0 Same happened when I tried putting it inside . Then I tried putting it inside and it gave me: Unable to set attribute abstractNameQuery to ?name= DefaultWorkManager# org.apache.geronimo.common.DeploymentException: Unable to set attribute abstractNameQuery to ?name= DefaultWorkManager# at org.apache.geronimo.deployment.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:90) I tried putting the gbean-definition in config.xml, inside the module: DefaultWorkManager ?name= DefaultWorkManager# and I got: org.apache.geronimo.kernel.config.InvalidConfigException: New GBeans must be specified with a GBeanInfo and a full AbstractName configuration=designfa ctory/lobby/0.2.0/car gbeanName=WorkManagerBinding Any help? djencks wrote: > > I assume you are talking about the j2ca work manager we've had for a > long time rather than a newer choice -- I think the ee concurrent spec > may also have a work manager and I don't know about ejb 3.1. > > The default work manager isn't bound in jndi right now. To bind it > you can include a binding gbean like we use for the transaction > manager -- see the plan at plugins/connector/transaction/src/main/plan/ > plan.xml or inside the transaction car. I think yours will look like > this: > > class="org.apache.geronimo.gjndi.binding.GBeanBinding"> > DefaultWorkManager > ?name= > DefaultWorkManager# > > JavaContext > > > > I think the work manager will then be at java:DefaultWorkManager > > I think you can put this gbean in your geronimo plan for your web app > although there might be ordering issues if you try to look it up > during servlet initialization... you could experiment. > > thanks > david jencks > > > On Jan 11, 2009, at 8:16 AM, fladimir wrote: > >> >> I've tried searching for this a lot, but I haven't found any >> documentation >> yet of any JNDI name for DefaultWorkManager or anything similar. >> >> Any advice? The WorkManager is to be used by a session bean. >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21400861.html >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21459715.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.