Re: [Resin-interest] Namespace files (in META-INF)
On Apr 13, 2009, at 1:44 PM, Scott Hernandez wrote: > Is there a way in the jsr299 way of things to include namespaces in > your package to shorten the need for explicitly listing them in the > web/web-resin/beans.xml files? > > For example, if I want to use X (10) ns prefixes in web-resin.xml do I > have to include them explicitly? Yes to the first (no the the second). The current filename is "namespace" (possibly subject to change in the next draft) and it's in the package directly, e.g. com/caucho/resin/namespace (not in META- INF). The current Resin one looks like: com.caucho.admin com.caucho.config com.caucho.jms com.caucho.protocols com.caucho.resources com.caucho.rewrite com.caucho.security i.e. each alias package is listed on a new line. -- Scott > > > http://caucho.com/ns/resin"; >xmlns:r="urn:java:com.caucho.resin" >xmlns:rcfg="urn:java:com.caucho.config" >xmlns:jms="urn:java:com.caucho.jms" >xmlns:ejb="urn:java:com.caucho.ejb" >xmlns:adm="urn:java:org.subethamail.core.admin" >xmlns:util="urn:java:org.subethamail.core.util" >xmlns:sec="urn:java:org.subethamail.web.security" >xmlns:queue="urn:java:org.subethamail.core.queue" >> > > > > ... > > Thanks, > Scott > On Mon, Apr 13, 2009 at 1:19 PM, Scott Ferguson > wrote: >> >> On Apr 13, 2009, at 1:14 PM, Scott Hernandez wrote: >> >>> Hi all, >>> >>> I was looking through the source of resin and noticed the namespace >>> files in META-INF/caucho. Is there a place to read up on the >>> placement, and format of these files? >> >> These are essentially obsolete. Although Resin has been using an >> IoC/ >> DI style for its configuration since 3.0, there wasn't a standard to >> follow, so we needed to invent our own extension capabilities. >> >> Going forward, JSR-299 should be the way to go, and the META-INF/ >> caucho should be treated as backward-compatibility configuration. > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Namespace files (in META-INF)
Is there a way in the jsr299 way of things to include namespaces in your package to shorten the need for explicitly listing them in the web/web-resin/beans.xml files? For example, if I want to use X (10) ns prefixes in web-resin.xml do I have to include them explicitly? http://caucho.com/ns/resin"; xmlns:r="urn:java:com.caucho.resin" xmlns:rcfg="urn:java:com.caucho.config" xmlns:jms="urn:java:com.caucho.jms" xmlns:ejb="urn:java:com.caucho.ejb" xmlns:adm="urn:java:org.subethamail.core.admin" xmlns:util="urn:java:org.subethamail.core.util" xmlns:sec="urn:java:org.subethamail.web.security" xmlns:queue="urn:java:org.subethamail.core.queue" > ... Thanks, Scott On Mon, Apr 13, 2009 at 1:19 PM, Scott Ferguson wrote: > > On Apr 13, 2009, at 1:14 PM, Scott Hernandez wrote: > >> Hi all, >> >> I was looking through the source of resin and noticed the namespace >> files in META-INF/caucho. Is there a place to read up on the >> placement, and format of these files? > > These are essentially obsolete. Although Resin has been using an IoC/ > DI style for its configuration since 3.0, there wasn't a standard to > follow, so we needed to invent our own extension capabilities. > > Going forward, JSR-299 should be the way to go, and the META-INF/ > caucho should be treated as backward-compatibility configuration. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Namespace files (in META-INF)
On Apr 13, 2009, at 1:14 PM, Scott Hernandez wrote: > Hi all, > > I was looking through the source of resin and noticed the namespace > files in META-INF/caucho. Is there a place to read up on the > placement, and format of these files? These are essentially obsolete. Although Resin has been using an IoC/ DI style for its configuration since 3.0, there wasn't a standard to follow, so we needed to invent our own extension capabilities. Going forward, JSR-299 should be the way to go, and the META-INF/ caucho should be treated as backward-compatibility configuration. -- Scott > > > I would guess, without seeing it described other than in the resin > module, that it goes something like this: The class loader looks for > any *.namespace files and loads them. Then those defined namespaces > can be used anywhere there is an xml def for JSR299 beans. Is this > right? > > Thanks in advance > Scott > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Namespace files (in META-INF)
Hi all, I was looking through the source of resin and noticed the namespace files in META-INF/caucho. Is there a place to read up on the placement, and format of these files? I would guess, without seeing it described other than in the resin module, that it goes something like this: The class loader looks for any *.namespace files and loads them. Then those defined namespaces can be used anywhere there is an xml def for JSR299 beans. Is this right? Thanks in advance Scott ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest