-
July 1st, 2010, 04:09 PM
#2
A Remote Adapter can be launched in two ways:
- through the supplied DotNetServer_N2.exe, as shown in DOCS-SDKs\sdk_adapter_dotnet\examples\Remote_StockListD emo_Adapters\Deployment\Deployment_DotNet_Server;
- by writing a custom launcher, as shown in DOCS-SDKs\sdk_adapter_dotnet\examples\Remote_StockListD emo_Adapters\Deployment\Deployment_DotNet_Server(c ustom); examples, of custom launcher code are shown both in DOCS-SDKs\sdk_adapter_dotnet\examples\Remote_StockListD emo_Adapters\src_standalone_launcher and in the online tutorial.
The latter method allows you to add any kind of customization.
In your case, the onStart callback would replace the main method of the example code.
The call to the Start method on the DataProviderServer instance (actually triggered by the main method) in turn triggers the Init call on the IDataProvider instance.
About launching Remote Adapters by the Server itself, this can be achieved by customizing the supplied Proxy Adapters.
By wrapping the com.lightstreamer.adapters.remote.data.NetworkedDa taProvider (or RobustNetworkedDataProvider) class, you could hook the init method and launch the Remote Adapter there,
with any configuration parameters specified within the <data_provider> element in adapters.xml available.
By the way, note that the com.lightstreamer.adapters.remote.data.PipedDataPr ovider actually runs the Remote Adapter on the local machine, but this technique is not advised for production use.
Similar Threads
-
By intelsmart in forum Adapter SDKs
Replies: 1
Last Post: April 11th, 2012, 09:03 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 4
Last Post: February 3rd, 2011, 10:33 AM
-
By msgiribabu in forum Adapter SDKs
Replies: 1
Last Post: January 21st, 2011, 01:38 PM
-
By Irwin in forum Adapter SDKs
Replies: 11
Last Post: April 30th, 2010, 08:42 AM
-
By amarin in forum Adapter SDKs
Replies: 4
Last Post: August 21st, 2008, 09:23 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:05 PM.
Bookmarks