Learn more about the HK2 API, or browse the javadoc. Read the introduction and get started with HK2. The following list gives an overview of some of the things that can be customized or extended with HK2: HK2 also has powerful features that can be used to perform tasks such as looking up services or customizing you injections, as well as several extensibility features allowing the users to connect with other container technologies It is the foundation for the GlassFish V3 and V4 application servers as well as other products. HK2 provides an API for control over its operation and has the ability to automatically load services into the container. JSR-330 defines services and injection points that can be dynamically discovered at runtime and which allow for Inversion of Control (IoC) and dependency injection (DI). Name of the system property 2 is an implementation of JSR-330 in a JavaSE environment. system_properties_absent ( name, server = None ) ¶Įnsures that the system property doesn't exists name Return non-transactional connections transaction_isolationĭefaults to the JDBC driver default isolation_guaranteedĪll connections use the same isolation level. Maximum time a caller can wait before timeout, in seconds, defaults to 60 non_transactional This tutorial shows how to create a simple application client and access an Enterprise JavaBean (EJB) deployed to GlassFish server 3. Maximum number of connections that can be created in the pool, defaults to 32 resize_quantity Minimum and initial number of connections in the pool, defaults to 8 max_size Postgresql and mssql, defaults to mysql sql_url SQL Server type, currently supports mysql, Resource type, can be datasource, xa_datasource,Ĭonnection_pool_datasource or driver, defaults to datasource vendor Is the datasource enabled? defaults to true restype jdbc_datasource_present ( name, description = '', enabled = True, restype = 'datasource', vendor = 'mysql', sql_url = '', sql_user = '', sql_password = '', min_size = 8, max_size = 32, resize_quantity = 2, idle_timeout = 300, wait_timeout = 60, non_transactional = False, transaction_isolation = '', isolation_guaranteed = True, server = None ) ¶Įnsures that the JDBC Datasource exists name jdbc_datasource_absent ( name, both = True, server = None ) ¶Įnsures the JDBC Datasource doesn't exists nameĭelete both the pool and the resource, defaults to true. The JMS Destination resource type, either queue or topic, defaults is queue descriptionĭefaults to True. destination_present ( name, physical, restype = 'queue', description = '', enabled = True, server = None ) ¶Įnsures that the JMS Destination Resource (queue or topic) is present name destination_absent ( name, server = None ) ¶Įnsures that the JMS Destination doesn't exists name Level of transaction support, can be either XATransaction, LocalTransaction or NoTransaction connection_validationĬonnection validation is required, defaults to false. Maximum time a caller can wait before timeout, in seconds, defaults to 60 reconnect_on_failureĬlose all connections and reconnect on failure (or reconnect only when used), defaults to false transaction_support Maximum time a connection can remain idle in the pool, in seconds, defaults to 300 wait_timeout Number of connections to be removed when idle_timeout expires, defaults to 2 idle_timeout Maximum number of connections that can be created in the pool, defaults to 250 resize_quantity Minimum and initial number of connections in the pool, defaults to 1 max_size Is the connection factory enabled? defaults to true min_size Queue_connection_factory` or ``topic_connection_factory,ĭefaults to connection_factory descriptionĭescription of the connection factory enabled Type of the connection factory, can be either connection_factory, connection_factory_present ( name, restype = 'connection_factory', description = '', enabled = True, min_size = 1, max_size = 250, resize_quantity = 2, idle_timeout = 300, wait_timeout = 60, reconnect_on_failure = False, transaction_support = '', connection_validation = False, server = None ) ¶Įnsures that the Connection Factory is present name nameĭelete both the pool and the resource, defaults to true. connection_factory_absent ( name, both = True, server = None ) ¶Įnsures the transaction factory is absent. server : - ssl : true - url : localhost - port : 4848 - user : admin - password : changeit.
0 Comments
Leave a Reply. |