Efficieny
---------
What does resource->classloader map give over resource->url?

If the resource is unique they give the same result, the second
more efficiently.

Non unique non-local resource
-----------------------------
If the resource is not unique, at least the resource->url gives
predictable results within the same server session.

Or are you saying I should fail the global getResource if it is not
unique?

This is not what happens at the moment. It returns a random
resource depending on the current state of the packagesMap or the
classLoaders HashSet.

The resource->classloader map would also give a random result as each
classloader discovers it has that resource name during a local lookup.

Global resources not in the ULR
-------------------------------
The resource->classloader could also fill up with entries that
are actually unique. They are loaded through the parent boot classloader
or system classpath during different local lookups.

Regards,
Adrian

>From: "Scott M Stark" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: [JBoss-dev] Resource loading
>Date: Fri, 30 Aug 2002 12:44:06 -0700
>
>That should not matter as long as the resource name is unique. There
>should be a map of resource names to the class loaders that contain
>that resource. Once the resource is not found in the ejb jar it should
>be mapped to the class loader. This map must be built correctly.
>
>xxxxxxxxxxxxxxxxxxxxxxxx
>Scott Stark
>Chief Technology Officer
>JBoss Group, LLC
>xxxxxxxxxxxxxxxxxxxxxxxx
>----- Original Message -----
>From: "Adrian Brock" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, August 30, 2002 12:25 PM
>Subject: Re: [JBoss-dev] Resource loading
>
>
> > The problem is, it is in a different classloader.
> > The search starts from the ejb (xerces uses the context classloader)
> > but the resource is in xercesImpl.jar
> >
> > Regards,
> > Adrian
> >
> > >From: "Scott M Stark" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Re: [JBoss-dev] Resource loading
> > >Date: Fri, 30 Aug 2002 12:20:19 -0700
> > >
> > >Mapping a resource name to its class loader should already be in 3.0.1
> > >unless
> > >the matching of the resource name is not working.
> > >
> > >xxxxxxxxxxxxxxxxxxxxxxxx
> > >Scott Stark
> > >Chief Technology Officer
> > >JBoss Group, LLC
> > >xxxxxxxxxxxxxxxxxxxxxxxx
> > >----- Original Message -----
> > >From: "Adrian Brock" <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Sent: Friday, August 30, 2002 12:12 PM
> > >Subject: [JBoss-dev] Resource loading
> > >
> > >
> > > > Hi,
> > > >
> > > > Somebody reported a peformance problem in the forums that
> > > > is caused by inefficient loading of resources.
> > > >
> > > > With xerces in server/default/lib, they do
> > > > new DomParser(...),
> > > > this leads to a
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>_______________________________________________
>Jboss-development mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-development




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to