Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » connect manually to subsistem ...
connect manually to subsistem ... [message #29230] Tue, 04 November 2008 15:09 Go to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Hi all,
Not sure what I'm going to write has a bit of meaning or not .
But .

I have created my own subsystem to interact with my database .

From the remote view it works . I still have to fix a few bugs but let's say
it works.

How difficult would it be to initialize manually the subsystem without the
use of the remote view . what I would like is to be able to manually connect
to the subsystem and get the root so I can populate my own view . (I did try
something but it comes out the login dialog and after that few error that
internal structure has not been initialized).

Thanks
Kar


IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
.getSystemTypeById("mydb.files.Files");

Host myHost = (Host)
RSECorePlugin.getDefault().getSystemRegistry().createHost(
systemType, "linuxbox", " linuxbox", "this is a test");

myHost.setUserIdCaseSensitive(true);
myHost.setDefaultEncoding("UTF-8", true);
myhost.setDefaultUserId("Administrator");

FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
.createSubSystemInternal(myHost);

EOMConnectorService connectorService = (EOMConnectorService) subsystemX
.getConnectorService();
Re: connect manually to subsistem ... [message #29268 is a reply to message #29230] Tue, 04 November 2008 16:57 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
what I would like is to be able to create a fileservicesubsystem ... to be
able to used cached object and remote file automatically so that I could
easily handle editor and so on ...
thanks


"Kar" <carmeloscala@hotmail.com> wrote in message
news:gepojv$8cc$1@build.eclipse.org...
> Hi all,
> Not sure what I'm going to write has a bit of meaning or not .
> But .
>
> I have created my own subsystem to interact with my database .
>
> From the remote view it works . I still have to fix a few bugs but let's
> say it works.
>
> How difficult would it be to initialize manually the subsystem without the
> use of the remote view . what I would like is to be able to manually
> connect to the subsystem and get the root so I can populate my own view .
> (I did try something but it comes out the login dialog and after that few
> error that internal structure has not been initialized).
>
> Thanks
> Kar
>
>
> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
> .getSystemTypeById("mydb.files.Files");
>
> Host myHost = (Host)
> RSECorePlugin.getDefault().getSystemRegistry().createHost(
> systemType, "linuxbox", " linuxbox", "this is a test");
>
> myHost.setUserIdCaseSensitive(true);
> myHost.setDefaultEncoding("UTF-8", true);
> myhost.setDefaultUserId("Administrator");
>
> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
> .createSubSystemInternal(myHost);
>
> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
> .getConnectorService();
>
>
>
Re: connect manually to subsistem ... [message #29418 is a reply to message #29268] Wed, 05 November 2008 15:03 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
Registered: July 2009
Senior Member
Hi Kar,

creating and accessing the fileServiceSubSystem should work
fine even without the RSE SystemView, just via API.

Looking at your code, you shouldn't call createSubSystemInternal()
-- it's internal as its name suggests. The subsystems should be
created for you automatically when the systemRegistry creates your
host, and when you connect later on.

Given that your own systemType / subsystem implementation still appears
to be buggy, I'd suggest that you first try communicating with a remote
system via the existing SSH subsystem programmatically (without the RSE
systemView). Once that works, replace SSH with your own.

Look at the RSE Unittests to see how programmatically creating and using
connections is done. I haven't tried it yet, but the RSE Unittests
should work fine even if the RSE SystemView is never shown.

Team project set which includes the unittests:
http://www.eclipse.org/dsdp/tm/development/rse-releng-anonym ous.psf

ViewCVS access:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/?root=DSDP_Project

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Kar wrote:
> what I would like is to be able to create a fileservicesubsystem ... to
> be able to used cached object and remote file automatically so that I
> could easily handle editor and so on ...
> thanks
>
>
> "Kar" <carmeloscala@hotmail.com> wrote in message
> news:gepojv$8cc$1@build.eclipse.org...
>> Hi all,
>> Not sure what I'm going to write has a bit of meaning or not .
>> But .
>>
>> I have created my own subsystem to interact with my database .
>>
>> From the remote view it works . I still have to fix a few bugs but
>> let's say it works.
>>
>> How difficult would it be to initialize manually the subsystem without
>> the use of the remote view . what I would like is to be able to
>> manually connect to the subsystem and get the root so I can populate
>> my own view . (I did try something but it comes out the login dialog
>> and after that few error that internal structure has not been
>> initialized).
>>
>> Thanks
>> Kar
>>
>>
>> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
>> .getSystemTypeById("mydb.files.Files");
>>
>> Host myHost = (Host)
>> RSECorePlugin.getDefault().getSystemRegistry().createHost(
>> systemType, "linuxbox", " linuxbox", "this is a
>> test");
>>
>> myHost.setUserIdCaseSensitive(true);
>> myHost.setDefaultEncoding("UTF-8", true);
>> myhost.setDefaultUserId("Administrator");
>>
>> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
>> .createSubSystemInternal(myHost);
>>
>> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
>> .getConnectorService();
>>
>>
>>
Re: connect manually to subsistem ... [message #29456 is a reply to message #29418] Fri, 07 November 2008 09:07 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Thank a lot Martin

Kar

"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:4911B5A7.2090402@windriver.com...
> Hi Kar,
>
> creating and accessing the fileServiceSubSystem should work
> fine even without the RSE SystemView, just via API.
>
> Looking at your code, you shouldn't call createSubSystemInternal()
> -- it's internal as its name suggests. The subsystems should be
> created for you automatically when the systemRegistry creates your
> host, and when you connect later on.
>
> Given that your own systemType / subsystem implementation still appears to
> be buggy, I'd suggest that you first try communicating with a remote
> system via the existing SSH subsystem programmatically (without the RSE
> systemView). Once that works, replace SSH with your own.
>
> Look at the RSE Unittests to see how programmatically creating and using
> connections is done. I haven't tried it yet, but the RSE Unittests should
> work fine even if the RSE SystemView is never shown.
>
> Team project set which includes the unittests:
> http://www.eclipse.org/dsdp/tm/development/rse-releng-anonym ous.psf
>
> ViewCVS access:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/?root=DSDP_Project
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> what I would like is to be able to create a fileservicesubsystem ... to
>> be able to used cached object and remote file automatically so that I
>> could easily handle editor and so on ...
>> thanks
>>
>>
>> "Kar" <carmeloscala@hotmail.com> wrote in message
>> news:gepojv$8cc$1@build.eclipse.org...
>>> Hi all,
>>> Not sure what I'm going to write has a bit of meaning or not .
>>> But .
>>>
>>> I have created my own subsystem to interact with my database .
>>>
>>> From the remote view it works . I still have to fix a few bugs but let's
>>> say it works.
>>>
>>> How difficult would it be to initialize manually the subsystem without
>>> the use of the remote view . what I would like is to be able to manually
>>> connect to the subsystem and get the root so I can populate my own view
>>> . (I did try something but it comes out the login dialog and after that
>>> few error that internal structure has not been initialized).
>>>
>>> Thanks
>>> Kar
>>>
>>>
>>> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
>>> .getSystemTypeById("mydb.files.Files");
>>>
>>> Host myHost = (Host)
>>> RSECorePlugin.getDefault().getSystemRegistry().createHost(
>>> systemType, "linuxbox", " linuxbox", "this is a
>>> test");
>>>
>>> myHost.setUserIdCaseSensitive(true);
>>> myHost.setDefaultEncoding("UTF-8", true);
>>> myhost.setDefaultUserId("Administrator");
>>>
>>> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
>>> .createSubSystemInternal(myHost);
>>>
>>> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
>>> .getConnectorService();
>>>
>>>
>>>
Re: connect manually to subsistem ... [message #577822 is a reply to message #29230] Tue, 04 November 2008 16:57 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
what I would like is to be able to create a fileservicesubsystem ... to be
able to used cached object and remote file automatically so that I could
easily handle editor and so on ...
thanks


"Kar" <carmeloscala@hotmail.com> wrote in message
news:gepojv$8cc$1@build.eclipse.org...
> Hi all,
> Not sure what I'm going to write has a bit of meaning or not .
> But .
>
> I have created my own subsystem to interact with my database .
>
> From the remote view it works . I still have to fix a few bugs but let's
> say it works.
>
> How difficult would it be to initialize manually the subsystem without the
> use of the remote view . what I would like is to be able to manually
> connect to the subsystem and get the root so I can populate my own view .
> (I did try something but it comes out the login dialog and after that few
> error that internal structure has not been initialized).
>
> Thanks
> Kar
>
>
> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
> .getSystemTypeById("mydb.files.Files");
>
> Host myHost = (Host)
> RSECorePlugin.getDefault().getSystemRegistry().createHost(
> systemType, "linuxbox", " linuxbox", "this is a test");
>
> myHost.setUserIdCaseSensitive(true);
> myHost.setDefaultEncoding("UTF-8", true);
> myhost.setDefaultUserId("Administrator");
>
> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
> .createSubSystemInternal(myHost);
>
> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
> .getConnectorService();
>
>
>
Re: connect manually to subsistem ... [message #577881 is a reply to message #29268] Wed, 05 November 2008 15:03 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 984
Registered: July 2009
Senior Member
Hi Kar,

creating and accessing the fileServiceSubSystem should work
fine even without the RSE SystemView, just via API.

Looking at your code, you shouldn't call createSubSystemInternal()
-- it's internal as its name suggests. The subsystems should be
created for you automatically when the systemRegistry creates your
host, and when you connect later on.

Given that your own systemType / subsystem implementation still appears
to be buggy, I'd suggest that you first try communicating with a remote
system via the existing SSH subsystem programmatically (without the RSE
systemView). Once that works, replace SSH with your own.

Look at the RSE Unittests to see how programmatically creating and using
connections is done. I haven't tried it yet, but the RSE Unittests
should work fine even if the RSE SystemView is never shown.

Team project set which includes the unittests:
http://www.eclipse.org/dsdp/tm/development/rse-releng-anonym ous.psf

ViewCVS access:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/?root=DSDP_Project

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm




Kar wrote:
> what I would like is to be able to create a fileservicesubsystem ... to
> be able to used cached object and remote file automatically so that I
> could easily handle editor and so on ...
> thanks
>
>
> "Kar" <carmeloscala@hotmail.com> wrote in message
> news:gepojv$8cc$1@build.eclipse.org...
>> Hi all,
>> Not sure what I'm going to write has a bit of meaning or not .
>> But .
>>
>> I have created my own subsystem to interact with my database .
>>
>> From the remote view it works . I still have to fix a few bugs but
>> let's say it works.
>>
>> How difficult would it be to initialize manually the subsystem without
>> the use of the remote view . what I would like is to be able to
>> manually connect to the subsystem and get the root so I can populate
>> my own view . (I did try something but it comes out the login dialog
>> and after that few error that internal structure has not been
>> initialized).
>>
>> Thanks
>> Kar
>>
>>
>> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
>> .getSystemTypeById("mydb.files.Files");
>>
>> Host myHost = (Host)
>> RSECorePlugin.getDefault().getSystemRegistry().createHost(
>> systemType, "linuxbox", " linuxbox", "this is a
>> test");
>>
>> myHost.setUserIdCaseSensitive(true);
>> myHost.setDefaultEncoding("UTF-8", true);
>> myhost.setDefaultUserId("Administrator");
>>
>> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
>> .createSubSystemInternal(myHost);
>>
>> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
>> .getConnectorService();
>>
>>
>>
Re: connect manually to subsistem ... [message #577904 is a reply to message #29418] Fri, 07 November 2008 09:07 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Thank a lot Martin

Kar

"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:4911B5A7.2090402@windriver.com...
> Hi Kar,
>
> creating and accessing the fileServiceSubSystem should work
> fine even without the RSE SystemView, just via API.
>
> Looking at your code, you shouldn't call createSubSystemInternal()
> -- it's internal as its name suggests. The subsystems should be
> created for you automatically when the systemRegistry creates your
> host, and when you connect later on.
>
> Given that your own systemType / subsystem implementation still appears to
> be buggy, I'd suggest that you first try communicating with a remote
> system via the existing SSH subsystem programmatically (without the RSE
> systemView). Once that works, replace SSH with your own.
>
> Look at the RSE Unittests to see how programmatically creating and using
> connections is done. I haven't tried it yet, but the RSE Unittests should
> work fine even if the RSE SystemView is never shown.
>
> Team project set which includes the unittests:
> http://www.eclipse.org/dsdp/tm/development/rse-releng-anonym ous.psf
>
> ViewCVS access:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ tests/org.eclipse.rse.tests/?root=DSDP_Project
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> what I would like is to be able to create a fileservicesubsystem ... to
>> be able to used cached object and remote file automatically so that I
>> could easily handle editor and so on ...
>> thanks
>>
>>
>> "Kar" <carmeloscala@hotmail.com> wrote in message
>> news:gepojv$8cc$1@build.eclipse.org...
>>> Hi all,
>>> Not sure what I'm going to write has a bit of meaning or not .
>>> But .
>>>
>>> I have created my own subsystem to interact with my database .
>>>
>>> From the remote view it works . I still have to fix a few bugs but let's
>>> say it works.
>>>
>>> How difficult would it be to initialize manually the subsystem without
>>> the use of the remote view . what I would like is to be able to manually
>>> connect to the subsystem and get the root so I can populate my own view
>>> . (I did try something but it comes out the login dialog and after that
>>> few error that internal structure has not been initialized).
>>>
>>> Thanks
>>> Kar
>>>
>>>
>>> IRSESystemType systemType = RSECorePlugin.getDefault().getCoreRegistry()
>>> .getSystemTypeById("mydb.files.Files");
>>>
>>> Host myHost = (Host)
>>> RSECorePlugin.getDefault().getSystemRegistry().createHost(
>>> systemType, "linuxbox", " linuxbox", "this is a
>>> test");
>>>
>>> myHost.setUserIdCaseSensitive(true);
>>> myHost.setDefaultEncoding("UTF-8", true);
>>> myhost.setDefaultUserId("Administrator");
>>>
>>> FileServiceSubSystem subsystemX = (FileServiceSubSystem) configuration
>>> .createSubSystemInternal(myHost);
>>>
>>> EOMConnectorService connectorService = (EOMConnectorService) subsystemX
>>> .getConnectorService();
>>>
>>>
>>>
Previous Topic:Dstore won't authenticate, SSH does
Next Topic://dev.eclipse.org/svnroot/dsdp/org.eclipse.tm.tcf
Goto Forum:
  


Current Time: Tue Oct 21 21:42:46 GMT 2014

Powered by FUDForum. Page generated in 0.02682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software