Bug 976654 - [GSS](6.4.z) Slow startup of standalone ejb-clients if not all defined server-connections are available
Summary: [GSS](6.4.z) Slow startup of standalone ejb-clients if not all defined server...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: EAP 6.4.5
Assignee: Enrique Gonzalez Martinez
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks: 1235745 1261014
TreeView+ depends on / blocked
 
Reported: 2013-06-21 06:28 UTC by wfink
Modified: 2019-04-02 14:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EJBCLIENT-82 0 Major Resolved Allow lazy connection creation for auto created connections in a EJBClientContext 2019-10-22 13:57:37 UTC

Description wfink 2013-06-21 06:28:51 UTC
If a standalone client defines a couple of connections, nevertheless whether the approach use the jboss-ejb-client.properties, the JBoss EJBClientContext API or the scoped-context, all connections are established before the client business code continue.
This might take unnecessary long in some environments.
Reduce the connection timeout might not be an option, in that case it happen sporadical that the connection is not established due to latency.

There are two major use-cases:

- need to establish named connections
  i.e. defined remote.connections=one,two,three,four
       to start the business at minimum one and three are needed
- need to have at least one established connection

The initialization should be improved
- by having properties to allow such lazy named or unnamed initialisation
- by initialising all connections in parallel to reduce the wait time in total

Comment 2 JBoss JIRA Server 2013-08-14 11:24:39 UTC
jaikiran pai <jpai> made a comment on jira EJBCLIENT-82

A pull request containing an implementation for this has been issued. The pull request adds the feature where a user can configure a particular (or all) connection configurations to be marked as lazy (or eager).

By default, connections listed in the configuration will be created eagerly like before. However, users can use the following property style to mark a particular connection to be lazy:

{code}
     # This marks the connection named "connection-name" to be connected lazily
     remote.connection.<connection-name>.connect.eager=false
{code}

Furthermore, all connections listed can be defaulted to lazy by using:

{code}
     # All listed connection configurations will by default be lazily connected due to this property
    remote.connections.connect.eager=false
{code}

The *.connect.eager property accepts a value of either true or false.

Comment 4 Dimitris Andreadis 2013-10-24 18:28:54 UTC
Assigning jpai EJB issues to david.lloyd. Please re-assign to Cheng or others as needed.

Comment 5 Enrique Gonzalez Martinez 2015-09-08 08:42:29 UTC
backport to 1.0.x branch

https://github.com/jbossas/jboss-ejb-client/pull/125

Comment 6 Enrique Gonzalez Martinez 2015-09-08 12:31:59 UTC
PR merged in 1.0.x

https://github.com/jbossas/jboss-ejb-client/commit/75a882b32b8d9c3705c0e29ba5d32cfd25e4a00b

Comment 9 Jan Martiska 2015-11-02 13:28:38 UTC
Verified with EAP 6.4.5.CR1.

Comment 10 Petr Penicka 2017-01-17 11:46:47 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.

Comment 11 Petr Penicka 2017-01-17 11:46:51 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.