Re: Switch to Loom 1.0RC3

2005-09-18 Thread peter royal

On Sep 10, 2005, at 1:25 PM, Stefano Bagnara wrote:

my company deploys the phoenix trunk. its not the tip, but
its a 4.1 alpha release from early 2003. it has been solid
with zero problems, which is why we're still using it.



Is there a list of known bugs of the current trunk?


not that i know of.


Why did noone made a release of it?


avalon fell apart.

Are you using it with bundled "old" excalibur libraries or did you  
update

it?


the 'old' libraries.


I would like to know more about "persisted configuration".
I've seen I can enable it from the kernel.xml but I don't know what  
exactly

do!


you really want to use it in conjunction with schema validation of  
block config, that way you can see if there are merge errors.


by default, in ${phoenix.home}/conf, it will look for a directory  
with the app name, and then individual XML files named after the  
block (so a block named 'myblock' would be 'myblock.xml')


the information in myblock.xml is then 'merged' into the  
configuration in the SAR. elements that have "excalibur- 
configuration:merge='true'" as an attribute will be merged with an  
element of the same name in config.xml. if you have multiple elements  
with the same name, you can also add an attribute named 'excalibur- 
configuration:key-attribute' with a value of an attribute name that  
uniquely identifies elements of the same name.. so given the  
following in config.xml



  aye
  uno
  dos


and a myblock.xml of


  foo
  configuration:key-attribute="id" id="two">bar



will yield this to the app:


  foo
  uno
   id="two">bar


-pete

--
peter royal



smime.p7s
Description: S/MIME cryptographic signature


Re: What would you like to see in a mail store?

2005-09-18 Thread Josip Almasi

Kervin L. Pierre wrote:


Hello,

I started designing a message store interface
recently.


I need to hook JAMES store to my store, too. So...


Features I am targetting include so far...

  1. Folder and File objects

  2. Generic attributes / properties on
 Folder and File objects

  3. Object caching


Maybe I can help with some code:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/neurogrid/neurogrid/torque-ng/src/java/com/neurogrid/middle/Cache.java
It's SoftReferenced Map - you keep em in memory, as much as you can.


  4. Transactions / Savepoints

  5. Search API


The above code is part of a search engine... so few words BTW, maybe you 
can use it somehow.
We use triplets, like, subject-predicate-object. It turns to 
MsgID-MsgAttribute-AttribValue. i.e.

[EMAIL PROTECTED]@adevsoft.com.
So it's good for search by message attributes but not for full-text body 
search.
Still you can specify any search criteria with such an API: introduce 
'body contains' predicate or something. This predicate will not be 
stored, instead it specifies search method. Sure you can introduce 
'domain' predicate or whatever.
But the point is, search API is simple: specify msg id and you get msg, 
specify any attribute(s) and you get mgs list.
Now, one might argue that mixing actual predicates that get stored with 
predicates that specify search method isn't quite straigthforward 
development practice, but I call this 'abstraction': store handles 
predicates as it needs.

And in the end it's
public Message[] search( Object msgid, Object attrib, Object value )
each arg may be null.

Regards...

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