<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing the SAS SessionService from a Java Connection in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95179#M257674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, this I had looked into the javadocs a bit. The information your provided in your second post is what I was looking for although I am still having trouble accomplishing my task. Essentially I have as Custom SAS Portlet with a Flash Application in it which are going to access data through Java/Blazeds services. What I would like to do is pass some SAS variable (SessionID is what I was looking for) to the Flash app which could then forward this to the Java Services and they could verify that this is a legitimate SAS Session before returning data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 17:43:12 GMT</pubDate>
    <dc:creator>bream_bn</dc:creator>
    <dc:date>2012-08-22T17:43:12Z</dc:date>
    <item>
      <title>Accessing the SAS SessionService from a Java Connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95176#M257671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any experience connection to the SAS Workspace Server from Java and then grabbing the SessionService Object? I have followed this tutorial, &lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact.htm" title="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact.htm"&gt;http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact.htm&lt;/A&gt; , and have been able to make a connection. I know would like to grab and use the SessionService which I know is available by this article, &lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#found_session.htm" title="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#found_session.htm"&gt;http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#found_session.htm&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 20:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95176#M257671</guid>
      <dc:creator>bream_bn</dc:creator>
      <dc:date>2012-08-15T20:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the SAS SessionService from a Java Connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95177#M257672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't seen them already you might want to have a look at the Javadocs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="active_link" href="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/package-summary.html#OVERVIEW" title="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/package-summary.html#OVERVIEW"&gt;http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/package-summary.html#OVERVIEW&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/PlatformServices.html" title="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/PlatformServices.html"&gt;http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/deployment/PlatformServices.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/connection/platform/package-summary.html#usage" title="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/connection/platform/package-summary.html#usage"&gt;http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/connection/platform/package-summary.html#usage&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/session/package-summary.html#overview" title="http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/session/package-summary.html#overview"&gt;http://support.sas.com/rnd/javadoc/93/Foundation/com/sas/services/session/package-summary.html#overview&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you also be able to provide a little more background, or business examples, on what you are trying to do with regard to "&lt;EM&gt;connection to the SAS Workspace Server from Java and then grabbing the SessionService Object?&lt;/EM&gt;".&amp;nbsp; It's possible, and quite easy, to get a simple SAS Workspace Server connection (see &lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact_direct.htm" title="Connecting with Directly Supplied Server Attributes"&gt;Connecting with Directly Supplied Server Attributes&lt;/A&gt; and &lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact_omr.htm" title="Connecting with Server Attributes Read from a SAS Metadata Server"&gt;Connecting with Server Attributes Read from a SAS Metadata Server&lt;/A&gt;) without using Foundation Services (you should even be able to connect to a workspace server via those mechanisms without foundation services running). I'm assuming from your question that you're using one of those techniques? If so, and you want/need to be using Foundation Services you might want to think about approaching this problem from the other direction and getting a workspace server connection from the Foundation Services infrastructure instead as (heavily summarized) in the &lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/62762/HTML/default/viewer.htm#connfact_infsvc.htm" title="Example of Connecting with Server Attributes from the Information Service"&gt;Example of Connecting with Server Attributes from the Information Service&lt;/A&gt;. Whether you want/need that additional layer of Foundation Services complexity will depend on the problem you are trying to solve which is why a bit more background on the underlying business requirement might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 01:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95177#M257672</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2012-08-20T01:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the SAS SessionService from a Java Connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95178#M257673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, this is shortest self-contained code (exception handling removed for simplicity) that I've personally been able to use to get access to remote SAS Foundation Services from a standalone Java app:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;PlatformServicesConfiguration platformServicesConfig = new PlatformServicesConfiguration(null, new MetadataSourceInterface[] {
&amp;nbsp;&amp;nbsp;&amp;nbsp; PlatformServicesConfiguration.createMetadataSource( "sas-oma://sasmeta:8561;reposname=Foundation;", "sasadm@saspw", "secretpassword")
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
CorePlatformServices.setServicesConfiguration(platformServicesConfig);
CorePlatformServices.startServices();
SessionServiceInterface sessionService = CorePlatformServices.getSessionService();
UserServiceInterface userService = CorePlatformServices.getUserService();
AuthenticationServiceInterface authService = CorePlatformServices.getAuthenticationService();
InformationServiceInterface infoService = CorePlatformServices.getInformationService();&amp;nbsp;&amp;nbsp;&amp;nbsp; 
CorePlatformServices.terminateServices();
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other SAS &amp;amp; Java programmers might be able to give you alternative methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 04:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95178#M257673</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2012-08-20T04:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the SAS SessionService from a Java Connection</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95179#M257674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, this I had looked into the javadocs a bit. The information your provided in your second post is what I was looking for although I am still having trouble accomplishing my task. Essentially I have as Custom SAS Portlet with a Flash Application in it which are going to access data through Java/Blazeds services. What I would like to do is pass some SAS variable (SessionID is what I was looking for) to the Flash app which could then forward this to the Java Services and they could verify that this is a legitimate SAS Session before returning data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 17:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Accessing-the-SAS-SessionService-from-a-Java-Connection/m-p/95179#M257674</guid>
      <dc:creator>bream_bn</dc:creator>
      <dc:date>2012-08-22T17:43:12Z</dc:date>
    </item>
  </channel>
</rss>

