Resource Object Factory Proxy for Connection Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The process of generating connection factories in server systems is time-consuming due to the need for numerous operations involving serialization and deserialization, which slows down the establishment of connections between applications and external resources.
Innovation Solution
A resource object factory acts as a proxy to manage the lifecycle of connection factories, utilizing reference objects instead of serializable objects to streamline the connection generation process, eliminating the need for serialization and deserialization, and enabling efficient connection establishment between server applications and external resources.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If connection factories are generated using traditional serialization methods, then connection requirements can be met, but the connection establishment process becomes time-consuming and slow
Solution Approach 1:
The patent pre-generates connection factory instances and stores them in a cache before they are needed. When a connection is required, the system retrieves pre-generated connection factories from the cache rather than generating them at runtime through serialization and deserialization processes. This preliminary action eliminates time-consuming operations during actual connection establishment.
Solution Approach 2:
The patent creates multiple copies of connection factory instances and stores them in a cache for reuse. Instead of serializing and deserializing connection factories repeatedly, the system copies existing instances from the cache to fulfill connection requests, significantly reducing the time required for connection generation while maintaining reliability.
2Adaptability or versatility
If multiple connection factories are created to support all property combinations, then all connection requirements can be satisfied, but the system complexity and resource consumption increase
Solution Approach 1:
The patent creates a universal connection factory instance that can serve multiple connection requirements with different properties. Instead of creating separate connection factories for each property combination, a single universal instance is generated and cached, making it adaptable to various connection scenarios without increasing system complexity.
Solution Approach 2:
The patent copies a single universal connection factory instance from the cache to fulfill different connection requests. This copying approach allows one master connection factory to serve multiple purposes across different property combinations, maintaining high adaptability while avoiding the complexity of managing numerous specialized connection factories.
3Ease of operation
If serialization and deserialization operations are performed for each connection factory, then connection factories can be bound and retrieved, but the process becomes inefficient and slow
Solution Approach 1:
The patent performs the binding operation preliminarily when creating the universal connection factory instance, storing it in the cache in its bound state. This eliminates the need to perform serialization and deserialization operations during runtime when connections are actually needed, significantly improving efficiency while maintaining ease of operation.
Solution Approach 2:
The patent copies the pre-bound connection factory instance from the cache rather than performing binding operations through serialization and deserialization each time. This copying mechanism maintains the ease of binding operations while dramatically improving productivity by eliminating repetitive serialization/deserialization cycles.
Data Source
AI summary
A system and method for a program object to support generation of connections. An embodiment of a method comprises establishing a first program object, the program object being designated as an object factory for generation of a connection factory, the first program object acting as a proxy for all connection factory requests; receiving a request for a connection factory from a program application at the first program object; generating a request for the connection factory by the first program object; obtaining an instance of the connection factory; generating a connection using the connection factory; and deploying the connection between the computer application and an external resource using the generated connection.


