+ " no SmartEndPoint component has been defined in the Easybeans configuration.");
return;
}
// Gets the port number of the smart endpoint
EZBSmartComponent smartComponent = smartComponents.get(0);
int portNumber = smartComponent.getPortNumber();
// Defines the PROVIDER_URL for the smart factory
String smartProviderURL = "smart://localhost:" + portNumber;
SmartContextFactory.setDefaultProviderUrl(smartProviderURL);
SmartContextFactory.setUseClassLoader(true);