Programming Guide |
Instantiating an object
int sm_obj_create(char *object);
object
- The service component to instantiate.
COM, EJB, Java
sm_obj_create
instantiates a service component regardless of whether it is deployed using COM, EJB or Java technologies. Before invoking this function, you must set thecurrent_component_system
application property in order to select the type of components to create:PV_SERVER_COM
for COM components,PV_SERVER_EJB
for Enterprise JavaBeans deployed in a JEE Application Server, such as IBM's WebSphere Application Server, orPV_SERVER_JAVA
for Java Objects.The argument to
sm_obj_create
may contain a comma separated list of parameters that is specific to the component system being used. Whensm_obj_create
is called from JPL, these embedded parameters should be passed as separate parameters tosm_obj_create
.