Version 2

    Chinese versionJBoss AS 7.2.0 - 例子 - 通过SSL通道调用EJB or JBoss AS 7.2.0 - 例子 - 通过SSL通道调用EJB

     

     

     

    Summary

     

    This article introduces how to configure security-domain and JAAS, how to configure SSL and how to call EJB over SSL channel, with a simple but smart example.

     

    To run the example successfully, please follow bellow steps strictly. Especially, please use the directories mentioned in this article. After you master this example, you can modify them according to your preference.

     

     

    1. Environment Setting

    1.1 Eclipse IDE

     

    1.2 JBoss AS 7.2.0

     

    1.3 ybxiang-jboss7-example

    1.3.1 workspace

    Please download http://javaarm.com/file/jboss/ApplicationServer/JBossAS7.2.0_EJB3-over-SSL/ybxiang-jboss7-example_workspace.zip, unzip it to D:\develop\projects. Please make sure that you can see D:\develop\projects\ybxiang-jboss7-example_workspace\.metadata\.log.

     

    1.3.2 sourcecode

    Please download http://javaarm.com/file/jboss/ApplicationServer/JBossAS7.2.0_EJB3-over-SSL/ybxiang-jboss7-example_2013-12-18_001.zip, unzip it to D:\develop\projects. Please make sure that you can see D:\develop\projects\ybxiang-jboss7-example\IDE-start.bat.

     

     

    1.4 MySql schema 'ybxiangjboss7'

    1.4.1 create schema

    In MySql Server, create a schema named “ybxiangjboss7”, for example:

           

     

     

    1.4.2 Populate initial data

    Please run D:\develop\projects\ybxiang-jboss7-example\nms_db.restore.bat, to populate the data in ybxiangjboss7.sql into the schema named 'ybxiangjboss7'.

     

     

    2. Run Example

     

    2.1 Start IDE

    Please double click D:\develop\projects\ybxiang-jboss7-example\IDE-start.bat to start the IDE

     

    2.2 Start JBoss AS 7.2.0

    In the IDE, you can start  JBoss AS 7.2.0 in debug mode:

     

     

    2.3 Run the EJB client application

         

     

     

    2.4 Result

     

    2.4.1 JBoss AS 7.2.0 log

     

     

    2.4.2 EJB client application log

     

     

    3.NOTE