se.linkon.stina.domain.provider
Class LknStinaProviderMedium
java.lang.Object
org.stina.framework.corex.provider.TiAbstractProviderMedium
se.linkon.stina.domain.provider.LknStinaProviderMedium
- All Implemented Interfaces:
- SjStinaProviderMediumInterface, SjStinaInformationProviderConstants
public class LknStinaProviderMedium
- extends TiAbstractProviderMedium
- implements SjStinaInformationProviderConstants, SjStinaProviderMediumInterface
Implementation for Stina startup and factory finding.
- Version:
- $Revision: 9 $, $Date: 08-02-25 13:18 $
- Author:
- Per Lindberger
Fields inherited from interface se.sj.stina.domain.provider.SjStinaInformationProviderConstants |
AMBIGUOUS_DATA_EXCEPTION, BAD_OPERATION, BAD_TRANSFER_DATA_EXCEPTION, CACHE_FACTORIES, CANNOT_PERFORM_ROLE_SELECTION, CENTRAL_PETRA_VECTOR, COMMUNICATION_FAILURE, CONTEXT_FACTORY, CREATE_EXCEPTION, DATA_CONVERSION, DEFAULT_STRING_ENCODING, DICTIONARY, ENTRY_RULE_EXCEPTION, ERROR_TEXT_INFO_ADDITIONAL, ERROR_TEXT_INFO_CODE, ERROR_TEXT_INFO_DEFAULT, ERROR_TEXT_INFO_FULL, EXIT_RULE_EXCEPTION, FATAL_EXCEPTION, FATAL_EXCEPTION_CLASS_NAME, HOST_NAME, INDATA_NOT_ACCORDING_TO_SPEC, INDATA_NOT_ACCORDING_TO_SPEC_MSG, INFORMATION_EXCEPTION, INFORMATION_EXCEPTION_CLASS_NAME, NAMING_EXCEPTION, NO_CONTEXT, NO_RESPONSE, NO_SUCH_OBJECT_EXCEPTION, OUTDATA_NOT_ACCORDING_TO_SPEC, OUTDATA_NOT_ACCORDING_TO_SPEC_MSG, PERMISSION_DENIED, PERMUTE_HOST_NAMES, PETRA2_CATEGORY_TO_SML_ORDER_ITEM_PERSON_CLASSIFICATION_LIST, PETRA2_COMFORT_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_LIST, PETRA2_COMPARTMENT_CODE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_CHARACTERISTIC_LIST, PETRA2_COMPARTMENT_SIZE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_NO_OF_SEATS_LIST, PETRA2_ERROR_CODE_TO_SML_ERROR_CODE_LIST, PETRA2_INTEGRATOR_VECTOR, PETRA2_PLACEMENT_CHARACTERISTICS_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_CHARACTERISTIC_LIST, PETRA2_PLACEMENT_ORIENTATION_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_POSITION_LIST, PETRA2_PLACEMENT_TYPE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_TYPE_LIST, PETRA2_PRICE_GROUP_TO_SML_ORDER_ACTIVITY_CLASSIFICATION_LIST, PETRA2_PRICE_LEVEL_TO_SML_ORDER_ACTIVITY_CLASSIFICATION_LIST, PETRA2_PRODUCT_CODE_TO_SML_ORDER_ACTIVITY_CATEGORY_LIST, PETRA2_SALES_UNIT_ID_TO_SML_ORDER_ORGANISATION_ID_ID_VALUE_LIST, PETRA2_TRAVEL_METHOD_CODE_TO_SML_ORDER_ACTIVITY_FUNCTION_LIST, PLAINTEXT_PART, REMOTE_EXCEPTION, SALESCONTROL, SEVERE_EXCEPTION, SEVERE_EXCEPTION_CLASS_NAME, SML_ORDER_ACTIVITY_CATEGORY_TO_PETRA2_PRODUCT_CODE_LIST, SML_ORDER_ACTIVITY_CLASSIFICATION_TO_PETRA2_PRICE_GROUP_LIST, SML_ORDER_ACTIVITY_FUNCTION_TO_PETRA2_TRAVEL_METHOD_CODE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_CHARACTERISTIC_TO_PETRA2_COMPARTMENT_CODE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_NO_OF_SEATS_TO_PETRA2_COMPARTMENT_SIZE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_CHARACTERISTIC_TO_PETRA2_PLACEMENT_CHARACTERISTICS_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_POSITION_TO_PETRA2_PLACEMENT_ORIENTATION_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_TYPE_TO_PETRA2_PLACEMENT_TYPE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_TO_PETRA2_COMFORT_LIST, SML_ORDER_ITEM_PERSON_CLASSIFICATION_TO_PETRA2_CATEGORY_LIST, SML_ORDER_ORGANISATION_ID_ID_VALUE_TO_PETRA2_SALES_UNIT_ID_LIST, STINA_SERVER_VECTOR, TIMEOUT, TIMEOUT_EXCEPTION, TIMEOUT_EXCEPTION_CLASS_NAME, TRANSACTION_ROLLEDBACK, UNINITIALIZED_LANGUAGE_CODE, UNINITIALIZED_SESSION_ID, UNINITIALIZED_USER_NAME, UNKNOWN_ERROR, UNKNOWN_SALES_CHANNEL_TYPE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_context
protected javax.naming.Context _context
_contextFactory
protected java.lang.String _contextFactory
_hostNames
protected java.lang.String _hostNames
_cacheFactories
protected boolean _cacheFactories
_permuteHostNames
protected boolean _permuteHostNames
_connectionTimeout
protected java.lang.String _connectionTimeout
_readTimeout
protected java.lang.String _readTimeout
_hostName
protected java.lang.String _hostName
_administrationHome
protected se.sj.stina.ejb.administration.AdministrationHome _administrationHome
_adminServicesHome
protected se.sj.stina.ejb.adminservices.AdminServicesHome _adminServicesHome
_cashRegisterHome
protected se.sj.stina.ejb.cashregister.CashRegisterHome _cashRegisterHome
_clientServicesHome
protected se.sj.stina.ejb.clientservices.ClientServicesHome _clientServicesHome
_codePlaintextHome
protected se.sj.stina.ejb.codeplaintext.CodePlaintextHome _codePlaintextHome
_customerHome
protected se.sj.stina.ejb.customer.CustomerHome _customerHome
_customerCatalogueHome
protected se.sj.stina.ejb.customer.CustomerCatalogueHome _customerCatalogueHome
_hotelHome
protected se.sj.stina.ejb.hotel.HotelHome _hotelHome
_identificationHome
protected se.sj.stina.ejb.identification.IdentificationHome _identificationHome
_installationHome
protected se.sj.stina.ejb.installation.InstallationHome _installationHome
_itineraryInformationHome
protected se.sj.stina.ejb.itinerary.ItineraryInformationHome _itineraryInformationHome
_locationCatalogueHome
protected se.sj.stina.ejb.location.LocationCatalogueHome _locationCatalogueHome
_orderHome
protected se.sj.stina.ejb.order.OrderHome _orderHome
_orderCatalogueHome
protected se.sj.stina.ejb.order.OrderCatalogueHome _orderCatalogueHome
_paymentServicesHome
protected se.sj.stina.ejb.paymentservices.PaymentServicesHome _paymentServicesHome
_profileCatalogueHome
protected se.sj.stina.ejb.profilecatalogue.ProfileCatalogueHome _profileCatalogueHome
_ruleDescHome
protected se.sj.stina.ejb.ruledesc.RuleDescHome _ruleDescHome
_salesUnitHome
protected se.sj.stina.ejb.salesunit.SalesUnitHome _salesUnitHome
_serviceCatalogueHome
protected se.sj.stina.ejb.servicecatalogue.ServiceCatalogueHome _serviceCatalogueHome
LknStinaProviderMedium
public LknStinaProviderMedium(java.util.Properties properties)
wantsServerPinger
public boolean wantsServerPinger()
- Specified by:
wantsServerPinger
in interface SjStinaProviderMediumInterface
cacheFactories
protected boolean cacheFactories()
permuteHostNames
protected boolean permuteHostNames()
clearCachedReferences
public void clearCachedReferences()
- Specified by:
clearCachedReferences
in interface SjStinaProviderMediumInterface
initialiseMedium
public java.lang.Object initialiseMedium()
- Specified by:
initialiseMedium
in interface SjStinaProviderMediumInterface
- Specified by:
initialiseMedium
in class TiAbstractProviderMedium
bindToMediumRootObject
public java.lang.Object bindToMediumRootObject()
- Specified by:
bindToMediumRootObject
in interface SjStinaProviderMediumInterface
- Specified by:
bindToMediumRootObject
in class TiAbstractProviderMedium
getInitialContext
protected javax.naming.Context getInitialContext()
getInitialContext
protected javax.naming.Context getInitialContext(java.lang.String providerUrl)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getProviderUrls
protected java.lang.String[] getProviderUrls(java.lang.String hostNames)
isInitialised
public boolean isInitialised()
- Specified by:
isInitialised
in interface SjStinaProviderMediumInterface
getHostName
public java.lang.String getHostName()
- Specified by:
getHostName
in interface SjStinaProviderMediumInterface
disposeMedium
public void disposeMedium()
- Specified by:
disposeMedium
in interface SjStinaProviderMediumInterface
- Specified by:
disposeMedium
in class TiAbstractProviderMedium
getAdministrationFactory
protected se.sj.stina.ejb.administration.AdministrationHome getAdministrationFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getAdministration
public se.sj.stina.ejb.administration.Administration getAdministration()
throws TiFatalException,
TiSevereException
- Specified by:
getAdministration
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getAdminServicesFactory
protected se.sj.stina.ejb.adminservices.AdminServicesHome getAdminServicesFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getAdminServices
public se.sj.stina.ejb.adminservices.AdminServices getAdminServices()
throws TiFatalException,
TiSevereException
- Specified by:
getAdminServices
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getCashRegisterFactory
protected se.sj.stina.ejb.cashregister.CashRegisterHome getCashRegisterFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getCashRegister
public se.sj.stina.ejb.cashregister.CashRegister getCashRegister()
throws TiFatalException,
TiSevereException
- Specified by:
getCashRegister
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getClientServicesFactory
protected se.sj.stina.ejb.clientservices.ClientServicesHome getClientServicesFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getClientServices
public se.sj.stina.ejb.clientservices.ClientServices getClientServices()
throws TiFatalException,
TiSevereException
- Specified by:
getClientServices
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getCodePlaintextFactory
protected se.sj.stina.ejb.codeplaintext.CodePlaintextHome getCodePlaintextFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getCodePlaintext
public se.sj.stina.ejb.codeplaintext.CodePlaintext getCodePlaintext()
throws TiFatalException,
TiSevereException
- Specified by:
getCodePlaintext
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getCustomerFactory
protected se.sj.stina.ejb.customer.CustomerHome getCustomerFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getCustomer
public se.sj.stina.ejb.customer.Customer getCustomer(byte[] query,
byte[] clientInfo)
throws TiAmbiguousDataException,
TiBadTransferDataException,
TiInformationException,
TiSevereException,
TiFatalException
- Specified by:
getCustomer
in interface SjStinaProviderMediumInterface
- Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
getCustomerCatalogueFactory
protected se.sj.stina.ejb.customer.CustomerCatalogueHome getCustomerCatalogueFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getCustomerCatalogue
public se.sj.stina.ejb.customer.CustomerCatalogue getCustomerCatalogue()
throws TiFatalException,
TiSevereException
- Specified by:
getCustomerCatalogue
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getHotelFactory
protected se.sj.stina.ejb.hotel.HotelHome getHotelFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getHotel
public se.sj.stina.ejb.hotel.Hotel getHotel()
throws TiFatalException,
TiSevereException
- Specified by:
getHotel
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getIdentificationFactory
protected se.sj.stina.ejb.identification.IdentificationHome getIdentificationFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getIdentification
public se.sj.stina.ejb.identification.Identification getIdentification()
throws TiFatalException,
TiSevereException
- Specified by:
getIdentification
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getInstallationFactory
protected se.sj.stina.ejb.installation.InstallationHome getInstallationFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getInstallation
public se.sj.stina.ejb.installation.Installation getInstallation()
throws TiFatalException,
TiSevereException
- Specified by:
getInstallation
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getItineraryInformationFactory
protected se.sj.stina.ejb.itinerary.ItineraryInformationHome getItineraryInformationFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getItineraryInformation
public se.sj.stina.ejb.itinerary.ItineraryInformation getItineraryInformation()
throws TiFatalException,
TiSevereException
- Specified by:
getItineraryInformation
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getLocationCatalogueFactory
protected se.sj.stina.ejb.location.LocationCatalogueHome getLocationCatalogueFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getLocationCatalogue
public se.sj.stina.ejb.location.LocationCatalogue getLocationCatalogue()
throws TiFatalException,
TiSevereException
- Specified by:
getLocationCatalogue
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getOrderFactory
protected se.sj.stina.ejb.order.OrderHome getOrderFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getOrder
public se.sj.stina.ejb.order.Order getOrder(byte[] clientInfo)
throws TiAmbiguousDataException,
TiBadTransferDataException,
TiInformationException,
TiSevereException,
TiFatalException
- Specified by:
getOrder
in interface SjStinaProviderMediumInterface
- Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
getOrder
public se.sj.stina.ejb.order.Order getOrder(byte[] query,
byte[] clientInfo)
throws TiAmbiguousDataException,
TiBadTransferDataException,
TiInformationException,
TiSevereException,
TiFatalException
- Specified by:
getOrder
in interface SjStinaProviderMediumInterface
- Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
getOrderCatalogueFactory
protected se.sj.stina.ejb.order.OrderCatalogueHome getOrderCatalogueFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getOrderCatalogue
public se.sj.stina.ejb.order.OrderCatalogue getOrderCatalogue()
throws TiFatalException,
TiSevereException
- Specified by:
getOrderCatalogue
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getPaymentServicesFactory
protected se.sj.stina.ejb.paymentservices.PaymentServicesHome getPaymentServicesFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getPaymentServices
public se.sj.stina.ejb.paymentservices.PaymentServices getPaymentServices()
throws TiFatalException,
TiSevereException
- Specified by:
getPaymentServices
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getProfileCatalogueFactory
protected se.sj.stina.ejb.profilecatalogue.ProfileCatalogueHome getProfileCatalogueFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getProfileCatalogue
public se.sj.stina.ejb.profilecatalogue.ProfileCatalogue getProfileCatalogue()
throws TiFatalException,
TiSevereException
- Specified by:
getProfileCatalogue
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getRuleDescriptionFactory
protected se.sj.stina.ejb.ruledesc.RuleDescHome getRuleDescriptionFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getRuleDescription
public se.sj.stina.ejb.ruledesc.RuleDesc getRuleDescription()
throws TiFatalException,
TiSevereException
- Specified by:
getRuleDescription
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getSalesUnitFactory
protected se.sj.stina.ejb.salesunit.SalesUnitHome getSalesUnitFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getSalesUnit
public se.sj.stina.ejb.salesunit.SalesUnit getSalesUnit()
throws TiFatalException,
TiSevereException
- Specified by:
getSalesUnit
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
getServiceCatalogueFactory
protected se.sj.stina.ejb.servicecatalogue.ServiceCatalogueHome getServiceCatalogueFactory()
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
getServiceCatalogue
public se.sj.stina.ejb.servicecatalogue.ServiceCatalogue getServiceCatalogue()
throws TiFatalException,
TiSevereException
- Specified by:
getServiceCatalogue
in interface SjStinaProviderMediumInterface
- Throws:
TiFatalException
TiSevereException
logInternal
protected void logInternal(TiInformationProviderException ipe,
java.lang.String objectName,
int logLevel)
handleStatefulCreationException
protected void handleStatefulCreationException(java.lang.Throwable t,
java.lang.String objectName)
throws TiAmbiguousDataException,
TiBadTransferDataException,
TiInformationException,
TiSevereException,
TiFatalException
- Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException
handleCreationException
protected void handleCreationException(java.lang.Throwable t,
java.lang.String objectName)
throws TiFatalException,
TiSevereException
- Throws:
TiFatalException
TiSevereException
dumpEnv
protected void dumpEnv(java.util.Properties icp,
int logLevel)
Copyright © 2012. All Rights Reserved.