摘要:
A method, apparatus, system, and signal-bearing medium that, in an embodiment, send a broadcast message to a cluster of servers receive a point-to-point message from a coordinating server of the cluster, where the coordinating server joined the cluster before all other servers in the cluster. The point-to-point message includes routing data regarding all of the servers in the cluster. In an embodiment, the broadcast message includes a record that includes an identification of a new server, resource data regarding the new server, and a time that the new server joins the cluster, and the servers in the cluster add the record to the routing data and send a request to the new server via the record. In another embodiment, the broadcast message includes records for all servers in a second cluster, and the new server sends the routing data to the servers in the second cluster. If a server leaves the cluster, its record is removed. In this way, a cluster can respond to servers dynamically joining and leaving the cluster while reducing network traffic.
摘要:
A method, apparatus, system, and signal-bearing medium that, in an embodiment, receive a change request from a first client at a first time, where the change request includes a key that identifies a field in a data object. A determination is made that the first client changed the field identified by the key at a second time that is before the first time and that a second client changed the field identified at a third time that is after the second time and before the first time, and the key is sent to the second client. The client receives the key, and in various embodiments invalidates the key in a cache or removes the key from the cache. In an embodiment, the data value of the change request is also sent to the second client, which updates the cache with the data value. In this way, stale data in a cache at a client is either updated or removed.
摘要:
One computer system in a cluster includes a dynamic routing mechanism that receives all incoming messages for the cluster. When a message is received, the dynamic routing mechanism checks its dynamic routing table, and routes a message to the appropriate partition that corresponds to the address of the message. If a resource has been moved to a different partition, the dynamic routing mechanism may route the message to the old partition instead of the new one. In this case, the old partition receives the message, determines whether the message is intended for it, and if not, the partition forwards the message to the appropriate target partition. The partition then notifies the dynamic routing mechanism of the change in location of the resource, which causes the dynamic routing mechanism to update its dynamic routing table to reflect the change in location for the resource.
摘要:
A container managed persistent (CMP) enterprise java bean (EJB) framework includes support for accessing multiple data sources within one deployment. A CMP EJB includes a number of different attributes that can be a variety of values. A session EJB that acts as a front-end to the CMP EJP includes a resource reference for each of the different data sources that the entity CMP EJB may utilize. The application server environment includes a map that defines mapping information between the attributes of the CMP EJB and the resource references of the session EJB. Using the mapping information during runtime, the application server connects to the appropriate data source.
摘要:
An apparatus, program product and method utilize sets of attributes respectively associated with managed resources and policies to match managed resources with individual policies. Multiple managed resources are permitted to be matched with a specific policy, such that the policy applies to all matching managed resources. Furthermore, by providing multiple attributes upon which to match, policies are capable of being defined with varying degrees of specificity, enabling administrators to utilize more generic policies for certain types of managed resources, with more specific policies used to override certain managed resources whenever needed.
摘要:
An apparatus, program product and method enable program code that manages a managed resource, e.g., a high availability manager, to receive status information associated with an externally-managed resource such that the program code can properly apply an activation policy to the managed resource in a manner that is consistent with any requirements placed upon that resource by the externally-managed resource. Where, for example, a managed resource is required to be collocated on the same node or computer as an externally-managed resource, the status information may include location information that identifies where the externally-managed resource is currently active, such that the program code can activate the managed resource on the same node as the externally-managed resource.
摘要:
An application server includes a connection pool that specifies a number of allowable connections, and includes a backend failure detection mechanism and a backend failure recovery mechanism. When the backend failure detection mechanism detects that the backend fails, applications waiting on the hung connections may be notified of the backend failure. The backend failure detection mechanism will then detect when the backend recovers and becomes available once again. Once the backend is available again, the backend failure recovery mechanism increases the number of connections in the connection pool to compensate for the hung connections. As each hung connection is timed out using a network timeout mechanism, the number of allowable connections is reduced. Eventually all of the hung connections will time out, with the result being that the connection pool will contain the same specified number of allowable connections it originally had before the backend failed.
摘要:
In a method and system for monitoring events occurring at respective servers of a configuration of nodes, a first server located at a first node receives information from a messaging system pertaining to events at servers located at other nodes. The messaging system usefully comprises a highly available (HA) bulletin board or the like. When the first server receives a start event notification pertaining to a second server located at a second node, a direct communication path is established between the first and second servers. The first server identifies events in the second server that affect or are of interest to services of the first server. The first server then registers with the second server, to receive notification through the direct communication path when respective identified events occur.
摘要:
A method, apparatus, system, and signal-bearing medium that in an embodiment enforce ordering of messages sent from a queue to clients. If a total order indicator is on for a queue associated with a get message request, the next message is sent from the queue to the client if the queue does not have an associated in-doubt transaction. An in-doubt transaction may be a transaction for which the client has not received a commit request. In another embodiment, an authorized client is selected and messages are only sent from the queue to the authorized client.
摘要:
Methods, apparatuses, and products are disclosed for session replication that include enqueueing sessions on a replication queue and flushing enqueued sessions, from the replication queue to a replication peer, in dependence upon flushing criteria, for storage on a replication medium. The replication medium may be non-volatile storage in a database or remote random access memory. Flushing may be carried out periodically or in dependence upon replication queue depth. Flushing may include aggregating sessions from the replication queue for transmission to the replication peer.