Regrats about NetOI (OpenInsight 32-bit Specific)
At 10 SEP 2009 04:53:05AM Teo Bee Nion wrote:
Hi, i'm new to this NetOI.
As i heard from other place, it can work for communicate OI by using vb.net. so i follow all the step in NetOI guideline to go…. however i still do not understand how it work, like…. how vb.net can access OI? Server.OIConnect had to pass in what parameters? and what is those engineURL and engine port no, and where to set it.
can anyone give me some idea on how it work?
At 10 SEP 2009 06:48AM Martyn D Phillips wrote:
Have you tried working through the NetOI Quick Start Guide? I have just uploaded a posting to my blog (http://www.revsoftuk.blogspot.com) with reference to Bryans .NET discussion and this links to the discussion on our web site and the two .NET Quick Start Guides. You can link through to the NetOI QSG from there and also from our tutorials page - http://www.revsoft.co.uk/devtutorials.htm
M.
At 10 SEP 2009 10:05AM Bob Carten wrote:
The NetOI object communicates with OpenInsight using a TCPIP connection to the OengineServer. The OengineServer is a service which you run on a server at a specific TCPIP port.
The OEngineServer is described in the OpenInsight help under the section OENGINE. You configure it by editing the the file named eserver.cfg in you openinsight subdirectory. When you configure it you set the port that the oengineserver will listen on.
Thus, in
Public Sub OIConnect ( _
EngineURL As String, _EnginePort As String, _ApplicationName As String, _UserName As String, _Password As String, _OILocation As String _)
engineUrl is the ip address or name of the computer running the socketserver
enginePort is the port that the server is listening on
At 10 SEP 2009 10:05PM Teo Bee Nion wrote:
maybe is my ability for understanding to the quick guide. because i really no idea how to make our engine server start running, or rather than… how to start an engine server?
At 10 SEP 2009 10:14PM Teo Bee Nion wrote:
about engineUrl,
i really do not understand it, in quick guide, it put in "localhost", do we need to change it?? like to our network card ip address?
At 10 SEP 2009 10:34PM Teo Bee Nion wrote:
myconnect.ApplicationName=SYSPROG"
myconnect.UserName=SYSPROG"
myconnect.Password=SYSPROG"
myconnect.EnginePort=8088"
myconnect.EngineURL=localhost"
myconnect.OIConnect()
above is my vb code,
i start enter a sentence of code to start our open insight in cmd
oinsight /sn=:8088
with this, my application have no respond, but if i change the sn to other name, then it will prompt a message
"Index was outside the bounds of the array." at my openfile.
is my method do wrong or the way i start my open engine cause this error?
At 11 SEP 2009 01:57PM Bryan Shumsky wrote:
You don't need to start your open engine; that is what the EngineServer will do.
The EngineServer is a separate program that "listens" for requests at a certain tcp/ip port, and then starts up and manages its own OEngines to handle whatever requests come through. It's a java program, and you can either run it from your Windows services, or from a DOS command prompt to see what it's doing. You _must_ have a current version of the Java runtime on your PC to run it.
Note that I have been saying "your PC". A big advantage of the EngineServer is that you can run it on another PC (maybe a central server), and you or other users can connect to that one copy. That's why you have to specify the "EngineURL" - it says where you are running the EngineServer.
The EnginePort parameter tells your program which tcp/ip port the EngineServer is "listening" on - by default, it's port 8088.
To start testing, if you want to use it on your PC, you can open up a DOS command prompt, move to your OI directory, and type in:
java -jar oesocketserver.jar
This will start the EngineServer (we also call it sometimes the Socket Server, or the OpenEngine Socket Server - that's where it gets its name). If you don't change anything in the configuration file that the EngineServer uses (this is the file called eserver.cfg), then after you type in the command above, the EngineServer will be running on your PC, "listening" for requests on tcp/ip port 8088.
If you had OI installed on another PC, and you wanted to run the EngineServer there, then you would do the same thing I described above on _that_ PC, and then the EngineURL for your VB program would be the IP address or host name of _that_ PC. Your VB program would then be able to talk to the EngineServer on _that_ PC (if no firewalls, etc. stop it).
When you want to stop the Engine Server that's running the DOS box, just press Ctl+C and it'll exit.
Hopefully this helps clear up some of the confusion.
Regards,
- Bryan Shumsky
Revelation Software
At 13 SEP 2009 10:26PM Teo Bee Nion wrote:
thank a lot for your explanation, now i have much more clear vision on this NetOI, however, java that required is java runtime only or full develop kit??? this is rather confusing part for me, because, in my consideration, i think that if customer or client require to install full develop kit, i think is a waste for them if they do not really use it at all.
At 14 SEP 2009 10:21AM Bryan Shumsky wrote:
Glad the explanation helps. Only the java runtime is required, not the full development kit.
- Bryan Shumsky
Revelation Software
At 15 SEP 2009 04:19AM Teo Bee Nion wrote:
thanks a lot, it really work, but i just have a last question, if my datatable is in different location, and it only attach the table when our application start, so…. will we able to connect to those datatable that is not in our datavol?
At 25 SEP 2009 02:11PM Jared Bratu wrote:
Yes.
It sounds like you are new to OpenInsight. You might want to consider taking an introductory training course to OpenInsight.