Benefits of using EAServer components with PowerDynamo  Using MASP verses ActiveX and Java

Chapter 5: Using PowerDynamo with EAServer

Calling EAServer components from Dynamo scripts

You can call EAServer components from within a Dynamo script by using:

The SQL tag, COMPONENT tag, and the connection.CreateQuery and connection.CreateComponent methods allow Dynamo to call EAServer components as though they were MASP. Each MASP invocation creates an instance of the component, invokes the method and then destroys the component instance. You can also use the COMPONENT tag to access ActiveX and Java objects—however, just as with MASP, each invocation creates an instance of the component, invokes the method, and then destroys the component instance. The Dynamo CreateObject method allows you to create an instance of an ActiveX object and access its methods and properties from within a script. The ActiveX object exists until it goes out of scope or until the ActiveX variable is assigned a new value. The Dynamo java.CreateComponent method allows you to create an instance of a Java object and access its methods and properties from within a script. The Java object exists until it goes out of scope.





Copyright © 2003. Sybase Inc. All rights reserved. Using MASP verses ActiveX and Java

View this book as PDF