RE: Which API should I use for a web app?
Hi Andreas, Could you please share the performance enhancements that you mentioned below? Are those enhancements generic enough to be incorporated in Slide 2.0? Also it would be great if you could provide more details of your configuration in which you have 150,000 up documents? More specifically I am looking at the following: Which Slide APIs are you using (Server, Client, WVCM)? What is the end to end configuration? (for e.g. DesktopClient --> WebServer --> J2EE App Server --> Servlet --> EJB --> SlideServerAPI --> J2EEStore for Metadata + FileStore for Content) Is slide authorization turned on or off? What store are you using for Metadata? What store are you using for Content? What is the average size of the documents? What is the average depth of top most collection under /files? What is the peak load (no. of concurrent users)? Does your client do download of complete top level folders (recursive download of all files in all sub-folders)? if yes, approximately how long does it take for a top level folder with 1000 documents each being of approx .5 MB? Does Slide has test scripts for load tests? OR Has anyone written their own test scripts to do the same? Regards, Ritu > -Original Message- > From: Andreas Probst [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 30, 2004 11:11 PM > To: Slide Users Mailing List > Subject: RE: Which API should I use for a web app? > > > On 30 Mar 2004 at 16:26, [EMAIL PROTECTED] wrote: > > > >>If you use the slide API for storing data from your app, > take into > > >>account that it is reallly complicated to store content > in a way that > > >>you can use the versioning stuff, because all of the > versioning is done > > in the webdav layer. > > > > What do you mean ? The slide API can manage > NodeRevisionDescriptors and > > NodeRevisionDescriptor. > > It is not what you expect to do ? or are you speaking about > other features ? > > > > >>For fast content retrieval in the same vm, slide > > >>API might be a good choice. > > > > I'm using the Slide API from a Jetspeed service and its > works fine. We have > > -/+ 20.000 documents and no problem at all. > > Maybe, if we have more and more documents, this solution will not be > > scalable. So, next plan is to access to different > "external" repositories > > via the webdav client. > > Hi Christophe, > > there are major performance issues in the Slide kernel and > database layer. > > 1. A collection SubjectNode always knows about all its children. > With increasing collections the time to retrieve a collection > SubjectNode will increase. Apart from this all children > SubjectNodes are instanced to prepare the binding information. > > Solution would be to load the information about the children > only on demand. To do this, the SubjectNode needs a pointer to > the right NodeStore, which in turn needs some new methods. I > implemented this with sub-classing the SubjectNode, which had > been made more complicated than necessary with some private > members and methods in ObjectNode :-( Of course some WebDAV > methods need adaption to use the custom SubjectNode. > > 2. When adding a new child to a collection resource, all the old > child entries of the collection resource are deleted, just to be > saved again afterwards together with the information about the > new child. The same is true for removing children. > > Solution would be to enhance the NodeStore interface with > methods such as addChild and removeChild or so. Of course > StructureImpl needs to be adapted too. > > Having done these two enhancements, I can tell you the > performance has increased dramatically, especially when talking > about many documents (>1000). Nevertheless, the old database > schema with "slow" datatypes (CLOB), which I had to use when > doing the changes, prevents the usage of Slide with really many > documents: On a server with 150,000 documents (70,000 in one > collection) a put of a new document still needs a few seconds -- > and unfortunately is rising with every new document. Maybe the > new database schema is much better in this regard, but the two > problems above remain. > > Regards, > > Andreas > > > > > Christophe > > > > > - > > 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]
Re: content reset
陶 京瑞 <[EMAIL PROTECTED]> writes: > Hi, all > > I used the Slide1.0.16 in the first week. I put some files to the > Slide Server. the files store in a give folder, name "filestore". When > I shutdown the server and restart it, the files were still in the > "filestore" folder, but from WebDAV Client, I cannot see the > files. And if I reput the files to the "filestore", the WebDAV Client > report "conflict". How can I keep the information of files which are > stored in "filestore", after I restart the server? Probably the contentstore is in place, but there is something wrong with the descriptors store. How did you configure the descriptors store. Btw. for any new project you should use Slide 2.0beta. There are serious issues with Slide 1.0.16. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
content reset
Hi, all I used the Slide1.0.16 in the first week. I put some files to the Slide Server. the files store in a give folder, name "filestore". When I shutdown the server and restart it, the files were still in the "filestore" folder, but from WebDAV Client, I cannot see the files. And if I reput the files to the "filestore", the WebDAV Client report "conflict". How can I keep the information of files which are stored in "filestore", after I restart the server? Please help me.Thanks Jingrui _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is Slide Project
Hi All, I just wanted to know What is slide project. In what type of applications I can use this Regards Sudhakar = "No one can earn a million dollars honestly."- William Jennings Bryan (1860-1925) "Make everything as simple as possible, but not simpler."- Albert Einstein (1879-1955) "It is dangerous to be sincere unless you are also stupid."- George Bernard Shaw (1856-1950) __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic creation of user nodes in slide
"Ryan Rhodes" <[EMAIL PROTECTED]> writes: > I'm using a version I checked out from the head about a week ago. > > When I set logger-level to 7 I saw some Exceptions related to this, > and I also saw a number of Exceptions when slide loaded that I didn't > see before. Everything else seems to be working... so I'm not sure if > these are normal and/or unrelated. I'm going to put some info about > these new exceptions at the bottom of the email. You can completely ignore all ObjectNotFound and ObjectAlreadyExistExceptions. However the null pointer exception is serious. [Changed order of cited stuff] > Getting current connection for thread Thread[http8080-Processor25,5,main] > 31 Mar 2004 12:11:10 - org.apache.slide.store.impl.rdbms.JDBCStore - > DEBUG - > > No id for current thread - called outside transaction? > 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG > - > > org.apache.slide.common.ServiceAccessException: Service > [EMAIL PROTECTED] access error : > java.lang.NullPointerException > > at > > org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.assureUriId(StandardRDBMSAdapter.java:1216) > > at > > org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeObject(StandardRDBMSAdapter.java:107) > > at > > org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.createObject(StandardRDBMSAdapter.java:89) [...] > at > org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143) > at > > org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162) > > at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346) Could you verify that this means the connection is NULL. There seems to be a bug in the way DirectoryIndexGenerator/J2EE store/SecurityImpl work together. doGet() assumes, that is does not need a transaction since it does not do any write operation. Thats correct unless a user is autocreated, which results in a write operation. You may try to do a PUT request as the first action of the new user. This should autocreate the user inside the transaction. Please tell me if this works. I will try to fix the bug tomorrow, its almost midnight in here. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic creation of user nodes in slide
I'm using a version I checked out from the head about a week ago. When I set logger-level to 7 I saw some Exceptions related to this, and I also saw a number of Exceptions when slide loaded that I didn't see before. Everything else seems to be working... so I'm not sure if these are normal and/or unrelated. I'm going to put some info about these new exceptions at the bottom of the email. Here are the definition and configuration sections of the Domain.xml file: org.apache.slide.store.impl.rdbms.MySqlRDBMSAdapter com.mysql.jdbc.Driver jdbc:mysql://192.168.1.15/piefinger slide sitaro true 10 SERIALIZABLE false /actions/read /actions/write /actions/write /actions/write-acl /actions/write-acl /actions/read-acl /actions/read-current-user-privilege-set /actions/write /actions/unlock /actions/read /actions/read /actions/write-properties /actions/write-properties /actions/write-properties /actions/read /actions/write-content /actions/write-content /actions/write-content /actions/bind /actions/unbind /users /roles /actions /files true true true path 0 Here is the part of the log file where I try to log in with a new user: 31 Mar 2004 12:11:09 - org.apache.slide.common.Domain - DEBUG - Create XHttpServletRequestFacade 31 Mar 2004 12:11:09 - org.apache.slide.common.Domain - DEBUG - Create XHttpServletResponseFacade 31 Mar 2004 12:11:09 - org.apache.slide.webdav.WebdavServlet - DEBUG - ==> GET start: 3/31/04 12:11 PM [http8080-Processor25] 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.object - DEBUG - Cache Hit: '/' 237 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.descriptors - DEBUG - Cache Hit: '/' 51 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.descriptors - DEBUG - Cache Hit: '/' 52 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.object - DEBUG - Cache Hit: '/' 238 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.descriptor - DEBUG - Cache Hit: '/-1.0' 66 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.object - DEBUG - Cache Hit: '/' 239 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.object - DEBUG - Cache Hit: '/' 240 / 25 / 25 31 Mar 2004 12:11:10 - TxLRUObjectCache.jdbc.object - DEBUG - Cache Miss: '/users/admin' 240 / 26 / 25 31 Mar 2004 12:11:10 - org.apache.slide.common.SlideException - DEBUG - org.apache.slide.structure.ObjectNotFoundException: No object found at /users/admin at org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.retrieveObject(StandardRDBMSAdapter.java:283) at org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.retrieveObject(AbstractRDBMSStore.java:436) at org.apache.slide.store.AbstractStore.retrieveObject(AbstractStore.java:498) at org.apache.slide.store.ExtendedStore.retrieveObject(ExtendedStore.java:408) at org.apache.slide.security.SecurityImpl.getPrincipal(SecurityImpl.java:977) at org.apache.slide.security.ACLSecurityImpl.hasPermission(ACLSecurityImpl.java:115) at org.apache.slide.security.SecurityImpl.checkPermission(SecurityImpl.java:461) at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:393) at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:159) at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143) at org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator.java:162) at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:346) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:158) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:142) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.
Re: Automatic creation of user nodes in slide
"Ryan Rhodes" <[EMAIL PROTECTED]> writes: > Thanks for the response Martin. > > I set auto-create-users to true. When I log in with a user that is > already in slide it still works, but when I try to log in with a new > user (admin) I get: > > > HTTP Status 500 > The server encountered an internal error () that prevented it from > fulfilling this request. > > > The only thing I get from the logs is this: > > 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction > http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 "Internal > Server Error", 20 ms, / This looks like a bug. The warning may or may not be related to the problem. Which version of slide are you using? Could you set the logger-level at the top of Domain.xml to 7 and look if you get more information about the problem? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Automatic creation of user nodes in slide
Use the command line client or web folder client to create a collection under /slide/users/ for each new user you add to Tomcat. From what I can tell that automatically creates the user principal property that the Stores are looking for. In my testing that does NOT depend on having the Slide Realm, at least I don't have the SlideRealm configured and I have created a tomcat user assigned a tomcat role = user and created the collection as described above and that user can access without that error. __ Michael Oliver CTO Matrix Intermedia Inc 7391 S. Bullrider Ave. Tucson, AZ 85747 Phone +1 (520) 574-1150 Fax +1 (520) 844-1036 ICQ#: 318986322 Current ICQ status: * More ways to contact me __ -Original Message- From: Ryan Rhodes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 9:29 AM To: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide Thanks for the response Martin. I set auto-create-users to true. When I log in with a user that is already in slide it still works, but when I try to log in with a new user (admin) I get: HTTP Status 500 The server encountered an internal error () that prevented it from fulfilling this request. The only thing I get from the logs is this: 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 "Internal Server Error", 20 ms, / Any idea why this might be failing? Does this require SlideRealm or the JAAS module to work? >From: Martin Holz <[EMAIL PROTECTED]> >Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Automatic creation of user nodes in slide >Date: 31 Mar 2004 17:36:12 +0200 > >"Ryan Rhodes" <[EMAIL PROTECTED]> writes: > > > I read somewhere that slide would automatically create a new user node > > when a new user is authenticated by Tomcat. We are trying to setup > > Tomcat/Slide to authenticate users against an LDAP directory, but we > > do not want to have to run any batch processes to add user nodes. We > > just want the node to be created whenever a new user is authenticated. > > We DO NOT necessarily need ACL to be mapped from the directory. We > > can manage ACL in slide. > > > >Add >true >to your Domain.xml below the >element. > >This works fine as long as you do not need roles. > >Martin > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - 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]
RE: Automatic creation of user nodes in slide
Ok, so what if you need roles? The mkcol /slide/users/newuser does seem to always create the user principal so the user can access, but it doesn't seem to pick up the Tomcat role until we modify the metadata xml for the /slide/roles/ to add that newuser in the member set. Is manually modifying the role metadata xml the only way? Would it be logical and practical to let the child nodes of /slide/roles/root/ be the members of the role root? i.e. /slide/roles/user/newuser would put the newuser in the role of user member set? __ Michael Oliver CTO Matrix Intermedia Inc 7391 S. Bullrider Ave. Tucson, AZ 85747 Phone +1 (520) 574-1150 Fax +1 (520) 844-1036 ICQ#: 318986322 Current ICQ status: * More ways to contact me __ -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Holz Sent: Wednesday, March 31, 2004 8:36 AM To: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide "Ryan Rhodes" <[EMAIL PROTECTED]> writes: > I read somewhere that slide would automatically create a new user node > when a new user is authenticated by Tomcat. We are trying to setup > Tomcat/Slide to authenticate users against an LDAP directory, but we > do not want to have to run any batch processes to add user nodes. We > just want the node to be created whenever a new user is authenticated. > We DO NOT necessarily need ACL to be mapped from the directory. We > can manage ACL in slide. > Add true to your Domain.xml below the element. This works fine as long as you do not need roles. Martin - 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]
Re: Automatic creation of user nodes in slide
Thanks for the response Martin. I set auto-create-users to true. When I log in with a user that is already in slide it still works, but when I try to log in with a new user (admin) I get: HTTP Status 500 The server encountered an internal error () that prevented it from fulfilling this request. The only thing I get from the logs is this: 31 Mar 2004 11:25:18 - WARNING - WARNING: No active transaction http8080-Processor23, 31-Mar-2004 11:25:18, admin, GET, 500 "Internal Server Error", 20 ms, / Any idea why this might be failing? Does this require SlideRealm or the JAAS module to work? From: Martin Holz <[EMAIL PROTECTED]> Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Automatic creation of user nodes in slide Date: 31 Mar 2004 17:36:12 +0200 "Ryan Rhodes" <[EMAIL PROTECTED]> writes: > I read somewhere that slide would automatically create a new user node > when a new user is authenticated by Tomcat. We are trying to setup > Tomcat/Slide to authenticate users against an LDAP directory, but we > do not want to have to run any batch processes to add user nodes. We > just want the node to be created whenever a new user is authenticated. > We DO NOT necessarily need ACL to be mapped from the directory. We > can manage ACL in slide. > Add true to your Domain.xml below the element. This works fine as long as you do not need roles. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I propogate user identity from a webapp to slide using the client API?
I used the Client Library to build a helper class that wrapped all the Client Methods and persisted the connection. Then when I instantiate this helper class and do a connect in my Login action using the username and password and get a good response I store the object in the session. Then in all my actions I check for this Client object in the session, if it isn't there I forward to the Login page with a nextUrl back to the desired action or to home depending on my business logic. __ Michael Oliver CTO Matrix Intermedia Inc 7391 S. Bullrider Ave. Tucson, AZ 85747 Phone +1 (520) 574-1150 Fax +1 (520) 844-1036 ICQ#: 318986322 Current ICQ status: * More ways to contact me __ -Original Message- From: Ryan Rhodes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 8:39 AM To: [EMAIL PROTECTED] Subject: How do I propogate user identity from a webapp to slide using the client API? We are using the slide client API inside of a webapp. If slide requires authentication credentials, then I'm going to need the username/password to access it with the client API. I don't want to expose credentials in the webapp, but I would like to let slide keep managing access control to the documents I'm exposing in the webapp. Does anyone have a decent solution for this? _ Get rid of annoying pop-up ads with the new MSN Toolbar - FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - 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]
RE: How do I propogate user identity from a webapp to slide using the client API?
I am also very interested in this. A couple options that I have been batting around are: 1. Try and capture the user's session id (jsessionid) and pass it either as a cookie or appended to the url (like ;jsessionid=X) when talking with the slide server. 2. Coding my web application to talk directly to the WebdavServlet. This looks like it's going to be painful, but it's probably also the most promising approach. 3. Code my web application directly against the Slide server API. What would be really great is if the Slide client API could be configured to talk to the Slide server via WEBDAV over HTTP or talk directly via a server side API. That way the code changes to external applications would be minimal. Does this seem like something that could be added down the road (or at least something of interest to others on the list)? Regards, James -Original Message- From: Ryan Rhodes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 10:39 AM To: [EMAIL PROTECTED] Subject: How do I propogate user identity from a webapp to slide using the client API? We are using the slide client API inside of a webapp. If slide requires authentication credentials, then I'm going to need the username/password to access it with the client API. I don't want to expose credentials in the webapp, but I would like to let slide keep managing access control to the documents I'm exposing in the webapp. Does anyone have a decent solution for this? _ Get rid of annoying pop-up ads with the new MSN Toolbar - FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - 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]
How do I propogate user identity from a webapp to slide using the client API?
We are using the slide client API inside of a webapp. If slide requires authentication credentials, then I'm going to need the username/password to access it with the client API. I don't want to expose credentials in the webapp, but I would like to let slide keep managing access control to the documents I'm exposing in the webapp. Does anyone have a decent solution for this? _ Get rid of annoying pop-up ads with the new MSN Toolbar FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic creation of user nodes in slide
"Ryan Rhodes" <[EMAIL PROTECTED]> writes: > I read somewhere that slide would automatically create a new user node > when a new user is authenticated by Tomcat. We are trying to setup > Tomcat/Slide to authenticate users against an LDAP directory, but we > do not want to have to run any batch processes to add user nodes. We > just want the node to be created whenever a new user is authenticated. > We DO NOT necessarily need ACL to be mapped from the directory. We > can manage ACL in slide. > Add true to your Domain.xml below the element. This works fine as long as you do not need roles. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Automatic creation of user nodes in slide
I read somewhere that slide would automatically create a new user node when a new user is authenticated by Tomcat. We are trying to setup Tomcat/Slide to authenticate users against an LDAP directory, but we do not want to have to run any batch processes to add user nodes. We just want the node to be created whenever a new user is authenticated. We DO NOT necessarily need ACL to be mapped from the directory. We can manage ACL in slide. Does anyone have any ideas on this? _ MSN Toolbar provides one-click access to Hotmail from any Web page FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which API should I use for a web app?
We are aware of lots of problems like this. So my advice would be to use the webdav-api for any communication as the slide api might change in future releases to improve performance. The main problem is that the slide api does not reflect the webdav/deltav methods. So beside the problem that if you change content via slide api it is not available properly via webdav, it is possible to achieve the best performance (e.g. to build a move in store layer). But rebuilding this would mean more ore less a complete server rebuild. So this will never come before 3.0. Regards, Daniel Andreas Probst wrote: On 30 Mar 2004 at 16:26, [EMAIL PROTECTED] wrote: If you use the slide API for storing data from your app, take into account that it is reallly complicated to store content in a way that you can use the versioning stuff, because all of the versioning is done in the webdav layer. What do you mean ? The slide API can manage NodeRevisionDescriptors and NodeRevisionDescriptor. It is not what you expect to do ? or are you speaking about other features ? For fast content retrieval in the same vm, slide API might be a good choice. I'm using the Slide API from a Jetspeed service and its works fine. We have -/+ 20.000 documents and no problem at all. Maybe, if we have more and more documents, this solution will not be scalable. So, next plan is to access to different "external" repositories via the webdav client. Hi Christophe, there are major performance issues in the Slide kernel and database layer. 1. A collection SubjectNode always knows about all its children. With increasing collections the time to retrieve a collection SubjectNode will increase. Apart from this all children SubjectNodes are instanced to prepare the binding information. Solution would be to load the information about the children only on demand. To do this, the SubjectNode needs a pointer to the right NodeStore, which in turn needs some new methods. I implemented this with sub-classing the SubjectNode, which had been made more complicated than necessary with some private members and methods in ObjectNode :-( Of course some WebDAV methods need adaption to use the custom SubjectNode. 2. When adding a new child to a collection resource, all the old child entries of the collection resource are deleted, just to be saved again afterwards together with the information about the new child. The same is true for removing children. Solution would be to enhance the NodeStore interface with methods such as addChild and removeChild or so. Of course StructureImpl needs to be adapted too. Having done these two enhancements, I can tell you the performance has increased dramatically, especially when talking about many documents (>1000). Nevertheless, the old database schema with "slow" datatypes (CLOB), which I had to use when doing the changes, prevents the usage of Slide with really many documents: On a server with 150,000 documents (70,000 in one collection) a put of a new document still needs a few seconds -- and unfortunately is rising with every new document. Maybe the new database schema is much better in this regard, but the two problems above remain. Regards, Andreas Christophe - 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]