Re: messageReceived and bussiness logic

2007-11-02 Thread Maarten Bosteels
On 11/2/07, Angel.Figueroa [EMAIL PROTECTED] wrote: Maarten, I understand that the messageReceived will never be called simultaneously for the same session. But it can be called concurrently for different IoSession's. Let put a real example. A Server Application that received SQL

[jira] Resolved: (DIRMINA-302) Unbounded nature of writeRequestQueue can cause OutOfMemoryException

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-302. - Resolution: Fixed Assignee: Trustin Lee The following classes have been checked in: *

Re: messageReceived and bussiness logic

2007-11-02 Thread Maarten Bosteels
Angel, The example uses a DataSource, which essentialy IS a connection pool. Have a look at http://commons.apache.org/dbcp/apidocs/org/apache/commons/dbcp/BasicDataSource.html Suppose you configure mina with a thread-pool that uses maximum 10 threads, and you configure a BasicDataSource to have

Re: messageReceived and bussiness logic

2007-11-02 Thread Angel.Figueroa
Maarten, Suppose you want to use more that one instance. How you assign an instance to a IOSession? Angel Figueroa Maarten Bosteels wrote: On 11/2/07, Angel.Figueroa [EMAIL PROTECTED] wrote: Maarten, If you have a class that make the connection to the database and

Re: messageReceived and bussiness logic

2007-11-02 Thread Maarten Bosteels
On 11/2/07, Angel.Figueroa [EMAIL PROTECTED] wrote: Maarten, If you have a class that make the connection to the database and process the sql query. Is recommended to has a class instance for each IOSession? How you associated the class instance with the ioseccion? No, I would use a

[jira] Resolved: (DIRMINA-249) exceptionCaught() should provide more information

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-249. - Resolution: Fixed Assignee: Trustin Lee I added WriteException that conveys a list of

Re: messageReceived and bussiness logic

2007-11-02 Thread Angel.Figueroa
Maarten, In you example. Every time messageReceived is called for a IoSession, you make a new connection. The cost for the connection will be high, particular for a database connection. But Suppose the example is change to use a Connection Pool. In that way every time a new client is

[jira] Resolved: (DIRMINA-464) Provide better way to throttle read buffer.

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-464. - Resolution: Fixed Assignee: Trustin Lee It already has been resolved a few days ago. A

[jira] Resolved: (DIRMINA-262) Controlling rate of writes in Mina 0.8.2

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-262. - Resolution: Duplicate It seems like DIRMINA-144 can take care of this issue together.

[jira] Closed: (DIRMINA-27) OSGi framework integration

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-27. -- Resolution: Fixed Fix Version/s: 2.0.0-M1 All JARs are now OSGi bundles. I used

[jira] Resolved: (DIRMINA-160) Add support for defining higher level state machines on top of MINA

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-160. - Resolution: Fixed Fix Version/s: 2.0.0-M1 It's already imported into trunk as discussed

[jira] Commented: (DIRMINA-445) SessionLog improvement

2007-11-02 Thread vincent bourdaraud (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539820 ] vincent bourdaraud commented on DIRMINA-445: Please find my remark inline. On Mon, 2007-09-24 at 07:37

[jira] Commented: (DIRMINA-461) Possible TCP stall consideration

2007-11-02 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539883 ] Trustin Lee commented on DIRMINA-461: - Current MINA I/O processor implementation in both 1.x and 2.x reads from