From user-return-12573-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Thu Feb 05 17:52:27 2009 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 21218 invoked from network); 5 Feb 2009 17:52:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2009 17:52:27 -0000 Received: (qmail 52266 invoked by uid 500); 5 Feb 2009 17:52:25 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 52244 invoked by uid 500); 5 Feb 2009 17:52:25 -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 52235 invoked by uid 99); 5 Feb 2009 17:52:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2009 09:52:25 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.54] (HELO smtp109.prem.mail.sp1.yahoo.com) (98.136.44.54) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 Feb 2009 17:52:16 +0000 Received: (qmail 46130 invoked from network); 5 Feb 2009 17:51:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=RHKK/Iy/TDYpl+zxGUpeSYmrAx4dd/WDhwfFau6vzUFm/SK44Qt6g7eWZmd3U7/53PvdyQPhQ988Bf7Vk22+PRjFtOrEVr2Hdxx3piLTfYnxoo7LpqF0Qza5dnwGeYKfjndCaCE6+fQ5nb5s1219AakDosD+64aMniyZ5j3Vn5U= ; Received: from unknown (HELO ?10.11.55.40?) (david_jencks@76.76.148.215 with plain) by smtp109.prem.mail.sp1.yahoo.com with SMTP; 5 Feb 2009 17:51:55 -0000 X-YMail-OSG: Md8K4bsVM1m1Ohz0l0rEWgRFuLyQJn_9IT4xgI207Ki1bs2PcnkcFj0ewIgrFMzgXSyMY8BECiAEMsF.u.35LJ4Zl_ewjzfBIWjfgHjpBpz6FwIM73BxEvjlLACYN02w1RIed_OyUFK5dFDSEFkGWspOyIzhMkG_luWKum2TVZrlHqgzGbh7.Xtpf809xt1LzAiiOFXqcmCv.UMV4zuWWcqPepDBsg-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <4A2BD929-1261-4C20-8D7D-A1C2B5690C10@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <21850866.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Start server without open ports - possible? Date: Thu, 5 Feb 2009 09:51:52 -0800 References: <21850866.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 5, 2009, at 4:57 AM, Juergen Weber wrote: > > I've created a custom server assembly and reduced a server to > Boilerplate > Minimal and OpenEJB. This works, the server comes up (see below). > > But, can the server be started without the open ports? I only need the > server listen on a resource adapter, trigger an MDB and delegate to > an EJB. > No need for remote access, derby, Active MQ or OpenEJB Daemon. > > Can that be done? There are several bits here and I don't know why some of the dependencies are present so you will have to do some experimentation to find out what happens. Do you really need to close the jndi and jmx ports? You wont be able to add/remove plugins or shut down the server via a command if you close these. system-database is an openejb dependency, I don't know why. If you have another database you can presumably use an artifact-alias to substitute a dependency on your db pool plugin. It would be great if we could just remove this dependency from the openejb plugin, it seems philosophically very wrong. Similarly the activemq-broker dependency is IMO completely misguided. I think it is supposed to be an activemq-ra dependency since there should be no need to actually have a running broker in your geronimo server. Since you say you need mdbs I think you should be able to use an artifact alias to substitute your inbound connector for this dependency. If you could tell us the results of investigating these changes we might be able to improve the situation for 2.1.4 and 2.2. Finally the openejb daemon port can be turned off by turning off the EJBNetworkService. You can either manually modify the config.xml or use a feature that I fear is undocumented while constructing your custom server: in your assembly project, include a file src/main/resources/var/config/overrides/server-overrides.xml that looks something like this: clientcert.jks cts ssl-truststore SSL ${orbDefaultPort} 6684 localhost This will get merged into the constructed config.xml. You can turn off modules (should be unnecessary -- don't install them :-) ) or individual gbeans or use different attribute or reference values. hope this helps david jencks > > > Thanks, > Juergen > > > Booting Geronimo Kernel (in Java 1.6.0_11)... > Starting Geronimo Application Server v2.1.3 > [****************************************] 100% 9s Startup complete > Listening on Ports: > 1399 0.0.0.0 RMI Naming > 1827 127.0.0.1 Derby Connector > 4501 127.0.0.1 OpenEJB Daemon > 10299 127.0.0.1 JMX Remoting Connector > 61913 0.0.0.0 ActiveMQ Transport Connector > 61916 0.0.0.0 ActiveMQ Transport Connector > > Started Application Modules: > RAR: org.apache.geronimo.configs/system-database/2.1.3/car > > -- > View this message in context: http://www.nabble.com/Start-server-without-open-ports---possible--tp21850866s134p21850866.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >