You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Pablo Pita Leira (JIRA)" <ji...@apache.org> on 2006/07/24 12:22:15 UTC

[jira] Created: (DIRMINA-227) Chat server example with Spring configuration

Chat server example with Spring configuration 
----------------------------------------------

                 Key: DIRMINA-227
                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
             Project: Directory MINA
          Issue Type: New Feature
    Affects Versions: 0.9.4
            Reporter: Pablo Pita Leira
            Priority: Trivial


Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Pablo Pita Leira (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12436180 ] 
            
Pablo Pita Leira commented on DIRMINA-227:
------------------------------------------

I used Spring annotations for exposing a couple of methods  via JMX. Spring offers also a 1.4 compatible way of creating those using jakarta Commons Attributes :

http://www.springframework.org/docs/reference/jmx.html

20.3.2. Using source-Level metadata

I could do that change in the source and mention it in the documentation to be compatible with 1.4. 

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12436332 ] 
            
Niklas Therning commented on DIRMINA-227:
-----------------------------------------

I've made an initial check in. The code is in src/main/java/org/apache/mina/example/chat. I've only done some minor modifications, mainly to support Java 1.4. What remains is the Spring JMX stuff. I think the best would be to use MethodNameBasedMBeanInfoAssembler if possible. I'll see if I can get that to work and then I will check in the rest.

Pablo, thank you very much for this contribution!


> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>         Assigned To: Niklas Therning
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-227?page=all ]

Trustin Lee updated DIRMINA-227:
--------------------------------

    Fix Version/s: 1.0

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-227?page=all ]

Niklas Therning reassigned DIRMINA-227:
---------------------------------------

    Assignee: Niklas Therning

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>         Assigned To: Niklas Therning
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12436212 ] 
            
Niklas Therning commented on DIRMINA-227:
-----------------------------------------

Hmmm, I don't know if commons attributes is such a good idea since they need an extra compilation step. How about using MethodNameBasedMBeanInfoAssembler instead? That way the JMX stuff would be specified only in the Spring config file, right? Please correct me if I'm wrong. I haven't used Spring's JMX support myself so I might be totally wrong.

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-227?page=all ]

Niklas Therning resolved DIRMINA-227.
-------------------------------------

    Resolution: Fixed

I've checked in some more code which enables SSL support (in client and server) and basic JMX support using Spring. Pablo, let me know what you think and close this issue if you think the example looks ok. Thanks!

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>         Assigned To: Niklas Therning
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Pablo Pita Leira (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12436356 ] 
            
Pablo Pita Leira commented on DIRMINA-227:
------------------------------------------

Unfortunately I did not have the time to try MethodNameBasedMBeanInfoAssembler but I do think it will work. I keep following the project, I will syncrhonize the sources and certainly, I will try to contribute the part with JMX support compatible with 1.4. 

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>         Assigned To: Niklas Therning
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Pablo Pita Leira (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-227?page=all ]

Pablo Pita Leira closed DIRMINA-227.
------------------------------------


The code looks great. 

So now it should be possible to kick chat users using the JMX interface. I would just comment that in the method so that people try to do it. Or in a readme somewhere ...

I just spotted that the second comment in jmxContext.xml, it should refer to the MBeanExporter. 

Very nice integration, really.  





> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>         Assigned To: Niklas Therning
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Pablo Pita Leira (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-227?page=all ]

Pablo Pita Leira updated DIRMINA-227:
-------------------------------------

    Attachment: ChatServer_source.tar.gz

Sources of the different chat servers and readme.txt with explanations on how to run it.

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12432419 ] 
            
Trustin Lee commented on DIRMINA-227:
-------------------------------------

Thank you Pablo first of all!  We didn't have enough time to merge your code into our trunk, but we will do merge it soon!

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRMINA-227) Chat server example with Spring configuration

Posted by "Niklas Therning (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/DIRMINA-227?page=comments#action_12436173 ] 
            
Niklas Therning commented on DIRMINA-227:
-----------------------------------------

If we can merge this in I think that would resolve DIRMINA-150 as well. I've had a quick look at the example and it depends on Java5. Is that a problem? I think we could remove the Java5 stuff quite easily but then we will not get the Spring JMX features, at least not without some more modifications. WDYT?

> Chat server example with Spring configuration
> ---------------------------------------------
>
>                 Key: DIRMINA-227
>                 URL: http://issues.apache.org/jira/browse/DIRMINA-227
>             Project: Directory MINA
>          Issue Type: New Feature
>    Affects Versions: 0.9.4
>            Reporter: Pablo Pita Leira
>            Priority: Trivial
>             Fix For: 1.0
>
>         Attachments: ChatServer_source.tar.gz
>
>
> Example code of a simple chat server which is configured via Spring. There are several directories, starting from the simplest server code  with no Spring configuration, to the most advanced one, which offers some functionality by using JMX features too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira