1. Yes.

2. If this is true, it's a bug - file a JIRA item and I'll start looking 
at it after I figure out the nillable properties thing.

Dan


"Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 11/15/2006 
03:10:09 PM:

> Thanks Dan,
> Sorry for the original typo, I meant <resource-type/> as you pointed
> out, not <router-type/>.
> 
> Two more questions:
> 
> 1) The term "resource persistence" here describes where the config data
> defining the resource EPRs are coming from (i.e. data files, database,
> etc).  It does not describe how the Resource object actually persists in
> memory during the life of the application.  Is this correct?
> 
> 2) In my test project, I'm using the default RouterFilePersistence as
> used in the samples.  For the resources which have router files defined,
> they will always be initialized when the app is first called.  When the
> app/server stops, those router files remain so that they can be read on
> the next restart.  Setting the "use-router-persistence" attribute to any
> value has no effect.  So I'm still confused as to the purpose of this
> attribute.  Is it supposed to affect the behavior of the
> RouterFilePersistence activities?  Once I understand this, I think I can
> understand how the attribute affects a custom persistence mechanism.
> 
> -Vinh
> 
> 
> 
> 
> -----Original Message-----
> From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 15, 2006 4:38 AM
> To: [email protected]
> Subject: Re: use-router-persistence attribute
> 
> The 'use-router-persistence' attribute provides opt-in persistence of
> resource EPRs. That way, not all resources have to be persisted if they
> don't need to be (for example, you might create service group entries
> dynamically at startup and not need to persist those EPRs). So, you
> specify *how* persistence is done with the <persistence/> element under
> <router/>, and then you mark which resource types are participating with
> the attribute on <resource-type/>. Setting the value to 'true' is done
> when you have resources whose existence is not kept in some other data
> store and you need to recreate the exact same EPRs across server
> reboots. 
> Good examples are a factory resource that is responsible for creating
> other ws-resources, a service group(s) that acts as a directory for your
> ws-resources, and WS-N subscriptions.
> 
> Just to clarify - you are trying to put the attribute on the
> <resource-type/> elements, not <router/>, right?
> 
> 
> 
> "Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 11/15/2006 
> 03:55:26 AM:
> 
> > Can someone clarify the use of the "use-router-persistence" attribute
> > for the <router-type/> element in muse.xml?  The online reference
> manual
> > is a bit unclear.  I'd like to know when I would set the value to true
> > or false, and how it relates to file-based and non-filebased resource
> > persistence.
> > 
> > I am finding that if I have a file in the "router-entries" directory
> for
> > a resource, that the app always initializes the resource, even if this
> > attribute is set to false.  Am I interpretting the purpose of this
> > attribute incorrectly?
> > -Vinh
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to