Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 41750 invoked from network); 22 Feb 2007 20:12:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2007 20:12:50 -0000 Received: (qmail 86945 invoked by uid 500); 22 Feb 2007 20:12:50 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 86855 invoked by uid 500); 22 Feb 2007 20:12:50 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 86808 invoked by uid 99); 22 Feb 2007 20:12:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 12:12:50 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of daniel.ramagem@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2007 12:12:38 -0800 Received: by ug-out-1314.google.com with SMTP id p31so207981ugc for ; Thu, 22 Feb 2007 12:12:17 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=SlGwlrWaEx870hJPiB6k3aUSn5MwliRjIm0Pjs5AjGs+LoRUzLIsn5cpNdsZ3kdWB7CkMrGc0e5JukY80P9wcmkK3r7A0T+jJiL5co3SwT+QHhm7aNIrP+HeLmHuMaCAoLYGL9+PzUQmSzCdnVb8lKv/I7CyXZADt/aFJCBl2hA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=OCm+fhoJikvYzQH+G4pUTSIqn/IcupzkHQceLbtW4k6lluzk6n9FRviNWMwTKvoFX9GW8akbk0sd39BAy0nz1Pw03ZKR8IJMGY6f637ptXp0lFokpWaptP9o/BXle1zHaeUaoKSHqdhjvER8AKNmpat2gcZ8iK3JEoTCOpSiNWQ= Received: by 10.78.180.18 with SMTP id c18mr93036huf.1172175136546; Thu, 22 Feb 2007 12:12:16 -0800 (PST) Received: by 10.78.202.13 with HTTP; Thu, 22 Feb 2007 12:12:16 -0800 (PST) Message-ID: <584f6cce0702221212x30534d1v7e6fa0ba2532f5e8@mail.gmail.com> Date: Thu, 22 Feb 2007 15:12:16 -0500 From: "Daniel Bloomfield Ramagem" To: users@jackrabbit.apache.org Subject: Jackrabbit Resource Adapter + Working with Multiple Workspaces MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30295_4693903.1172175136517" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30295_4693903.1172175136517 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm using the Jackrabbit 1.2.1 JCA adapter and trying to have a Servlet create and use two separate workspaces. I get a " java.lang.IllegalStateException: Inactive logical session handle called" error when running the code below: Context ctx = new InitialContext(); Repository repository = (Repository) ctx.lookup("java:comp/env/jackrabbit"); Credentials credentials = new SimpleCredentials("username", "password".toCharArray()); Session session = repository.login(credentials); Workspace workspace = session.getWorkspace(); JackrabbitWorkspace jws = (JackrabbitWorkspace) workspace; jws.createWorkspace("ws1"); jws.createWorkspace("ws2"); Session s1 = repository.login(credentials, "ws1"); Session s2 = repository.login(credentials, "ws2"); System.out.println("s1.getWorkspace().getName() = " + s1.getWorkspace ().getName()); System.out.println("s2.getWorkspace().getName() = " + s2.getWorkspace ().getName()); Any thoughts? Daniel. ------=_Part_30295_4693903.1172175136517--