connect manually to subsistem ... [message #577813] |
Tue, 04 November 2008 15:09 |
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();
|
|
|
Powered by
FUDForum. Page generated in 0.02195 seconds