Hi,

I am very new to Sakai OAE. I am trying to write a code to connect to
database. For this I need a Session
(org.sakaiproject.nakamura.api.lite.Session) object to get the
org.sakaiproject.nakamura.api.lite.authorizable.Authorizable object to
interact with the database. From the existing code I came to know that the
following code is the only way to get the Session object.

Resource resource = request.getResource();

Session session = resource.adaptTo(Session.class);

Here I can get the resource object, but I am unable to get the Session
object. Is there any way to get the session object? Or do we need to
declare this session object in any where. I didn’t declare or pass this
Session object. Straight away I used these two statements to get the
Session object.

Thanks & Regards
Bhanu Teja M.
---------- Forwarded message ----------
From: <postmaster@sankhya.local>
Date: Dec 13, 2012 1:10 PM
Subject: Undeliverable: [oae-dev] Problem in getting Session
(org.sakaiproject.nakamura.api.lite.Session) from request.
To: <bhanu1...@gmail.com>

 *Delivery has failed to these recipients or groups:*

postmaster@sankhya.local
The e-mail address you entered couldn't be found. Please check the
recipient's e-mail address and try to resend the message. If the problem
continues, please contact your helpdesk.






*Diagnostic information for administrators:*

Generating server: sankhya.local

postmaster@sankhya.local
#550 5.1.1 RESOLVER.ADR.RecipNotFound; not found ##

Original message headers:

Received: from SILEXH (192.168.128.5) by SILEXH.sankhya.local (192.168.128.5)
 with Microsoft SMTP Server id 14.2.247.3; Thu, 13 Dec 2012 13:10:11 +0530
Return-Path: <oae-dev-boun...@collab.sakaiproject.org>
Delivered-To: sankhyaii@2099345.2302248
Received: (qmail 13723 invoked by uid 78); 13 Dec 2012 07:35:46 -0000
Delivered-To: sankhya.net-hema...@sankhya.net

Received: (qmail 13717 invoked by uid 0); 13 Dec 2012 07:35:46 -0000
Received: from unknown (HELO atl4mhib01.myregisteredsite.com) (209)  by 0 with
 SMTP; 13 Dec 2012 07:35:46 -0000
Received: from collab.sakaiproject.org (ux.sakaiproject.org [74.213.159.72])
        by atl4mhib01.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id
 qBD7Zjsk006650;        Thu, 13 Dec 2012 02:35:45 -0500
Received: from collab.sakaiproject.org (localhost.localdomain [127.0.0.1])      
by
 collab.sakaiproject.org (Postfix) with ESMTP id 166D32C70075;  Wed, 12 Dec
 2012 23:35:45 -0800 (PST)
X-Original-To: oae-dev@collab.sakaiproject.org
Delivered-To: oae-dev@collab.sakaiproject.org
Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com
        [209.85.212.49])        by collab.sakaiproject.org (Postfix) with ESMTP 
id
 A3B6F2C7003B   for <oae-dev@collab.sakaiproject.org>;  Wed, 12 Dec 2012 
23:35:44
 -0800 (PST)
Received: by mail-vb0-f49.google.com with SMTP id r6so1817440vbi.22     for
 <oae-dev@collab.sakaiproject.org>;     Wed, 12 Dec 2012 23:35:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.33.11 with SMTP id n11mr1227156vdi.131.1355384144392; Wed,
        12 Dec 2012 23:35:44 -0800 (PST)
Received: by 10.58.165.8 with HTTP; Wed, 12 Dec 2012 23:35:44 -0800 (PST)
Date: Thu, 13 Dec 2012 13:05:44 +0530
Message-ID: <CAHqSrQL26XwKn50-17vQtLzC5h9KQ2WFtRm3nmVW=q6ormk...@mail.gmail.com>
Subject: [oae-dev] Problem in getting Session
 (org.sakaiproject.nakamura.api.lite.Session) from request.
X-BeenThere: oae-dev@collab.sakaiproject.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Sakai OAE developer mail list <oae-dev.collab.sakaiproject.org>
List-Unsubscribe: <http://collab.sakaiproject.org/mailman/listinfo/oae-dev>,
        <mailto:oae-dev-requ...@collab.sakaiproject.org?subject=unsubscribe>
List-Archive: <http://collab.sakaiproject.org/pipermail/oae-dev>
List-Post: <mailto:oae-dev@collab.sakaiproject.org>
List-Help: <mailto:oae-dev-requ...@collab.sakaiproject.org?subject=help>
List-Subscribe: <http://collab.sakaiproject.org/mailman/listinfo/oae-dev>,
        <mailto:oae-dev-requ...@collab.sakaiproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1385611270=="
Sender: <oae-dev-boun...@collab.sakaiproject.org>
Errors-To: oae-dev-boun...@collab.sakaiproject.org
X-SpamScore: 3
X-MailHub-Apparently-To: bh...@sankhya.net,hema...@sankhya.net
X-Forwarder: Redirected by EFS, http://www.chimeracomputing.com/
To: <oae-dev@collab.sakaiproject.org>
From: Bhanu Teja Motupalli <bhanu1...@gmail.com>


Final-Recipient: rfc822;postmaster@sankhya.local
Action: failed
Status: 5.1.1
Diagnostic-Code: smtp;550 5.1.1 RESOLVER.ADR.RecipNotFound; not found



---------- Forwarded message ----------
From: Bhanu Teja Motupalli <bhanu1...@gmail.com>
To: <oae-dev@collab.sakaiproject.org>
Cc:
Date: Thu, 13 Dec 2012 13:05:44 +0530
Subject: [oae-dev] Problem in getting Session
(org.sakaiproject.nakamura.api.lite.Session) from request.

Hi,

            I am very new to Sakai OAE. I am trying to write a code to
connect to database. For this I need a Session
(org.sakaiproject.nakamura.api.lite.Session) object to get the
org.sakaiproject.nakamura.api.lite.authorizable.Authorizable object to
interact with the database. From the existing code I came to know that the
following code is the only way to get the Session object.



Resource resource = request.getResource();

Session session = resource.adaptTo(Session.class);



Here I can get the resource object, but I am unable to get the Session
object. Is there any way to get the session object? Or do we need to
declare this session object in any where. I didn’t declare or pass this
Session object. Straight away I used these two statements to get the
Session object.



Thanks & Regards

Bhanu Teja M.

_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev
_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to