You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Edgar González <eg...@valhallaproject.com> on 2002/07/26 22:44:55 UTC

[PATCH] Component Init and Shutdown

The recent modifications made by Hennings (Component Services) are a nice
code, but prevented that all services could be started....

The problem is in TurbineServices.initMapping method, and the patch is very
simple, so here it is:

Edgar


Index: TurbineServices.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/services/Turbi
neServices.java,v
retrieving revision 1.8
diff -u -r1.8 TurbineServices.java
--- TurbineServices.java 24 Jul 2002 15:01:34 -0000 1.8
+++ TurbineServices.java 26 Jul 2002 20:34:57 -0000
@@ -284,8 +284,8 @@
             String key = (String)keys.next();
             String [] keyParts = StringUtils.split(key, ".");
             if ((keyParts.length == 3)
-                && keyParts[0].equals(SERVICE_PREFIX)
-                && keyParts[2].equals(CLASSNAME_SUFFIX))
+                && (keyParts[0]+".").equals(SERVICE_PREFIX)
+                && ("."+keyParts[2]).equals(CLASSNAME_SUFFIX))
             {
                 String serviceKey = keyParts[1];
                 notice ("Added Mapping for Service: " + serviceKey);







----- Original Message -----
From: "Henning P. Schmiedehausen" <hp...@intermeta.de>
Newsgroups: hometree.jakarta.turbine.dev,hometree.jakarta.turbine.users
To: <tu...@jakarta.apache.org>
Sent: Wednesday, July 24, 2002 11:44 AM
Subject: Component Init and Shutdown


> Hi,
>
> those of you trying to get Torque and/or Fulcrum started
> and shutdown by Turbine 2 (!) in an orderly manner, might
> want to try out the current Turbine 2.2 CVS snapshot (which
> will become a beta RSN, once Martin tags the tree) and
> the current Fulcrum and Torque CVS snapshots.
>
> Turbine 2 now has a service to start up and shut down components
> (ComponentService) which replaces the old component.<xxx>... style
> config. There are some docs in the xdocs directory and on the web
> site.
>
> Please try it out and send problems or bugs to the .dev list or
> directly to me.
>
> You can also get precompiled jars from
>
> http://jakarta.apache.org/~henning/components/fulcrum-3.0-b2-dev.jar
> http://jakarta.apache.org/~henning/components/torque-3.0-b4-dev.jar
> http://jakarta.apache.org/~henning/components/turbine-2.2-b3-dev.jar
>
> Regards
> Henning
>
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PATCH] Component Init and Shutdown

Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
=?iso-8859-1?Q?Edgar_Gonz=E1lez?= <eg...@valhallaproject.com> writes:

>The recent modifications made by Hennings (Component Services) are a nice
>code, but prevented that all services could be started....

>The problem is in TurbineServices.initMapping method, and the patch is very
>simple, so here it is:

>Edgar


>Index: TurbineServices.java
>===================================================================
>RCS file:
>/home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/services/Turbi
>neServices.java,v
>retrieving revision 1.8
>diff -u -r1.8 TurbineServices.java
>--- TurbineServices.java 24 Jul 2002 15:01:34 -0000 1.8
>+++ TurbineServices.java 26 Jul 2002 20:34:57 -0000
>@@ -284,8 +284,8 @@
>             String key = (String)keys.next();
>             String [] keyParts = StringUtils.split(key, ".");
>             if ((keyParts.length == 3)
>-                && keyParts[0].equals(SERVICE_PREFIX)
>-                && keyParts[2].equals(CLASSNAME_SUFFIX))
>+                && (keyParts[0]+".").equals(SERVICE_PREFIX)
>+                && ("."+keyParts[2]).equals(CLASSNAME_SUFFIX))
>             {
>                 String serviceKey = keyParts[1];
>                 notice ("Added Mapping for Service: " + serviceKey);

You're right. I put your patch into the CVS. Thanks.

	Regards
		Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     hps@intermeta.de

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   info@intermeta.de
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>