in order to load jdbc driver in the ejb component, 
jdbc must be installed as a module on the server.

put the modules\org\sqlite\main directory in the 
jboss module directory (C:\Users\dmotooka\AppData\jboss-as-7.1.0.Final\modules\org\sqlite\main).

then, add the module reference in the jboss-deployment-structure.xml file as follows.



<?xml version="1.0" encoding="UTF-8"?>  
<jboss-deployment-structure>  
    <deployment>  
         <dependencies>  
              <module name="org.sqlite" />  
        </dependencies>  
    </deployment>  
</jboss-deployment-structure>


---------------

**ejb application security setting

http://www.mastertheboss.com/jboss-as-7/jboss-as-7-remote-ejb-client-tutorial

At first add an user using the add-user.sh script:


What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): b

Enter the details of the new user to add.
Realm (ApplicationRealm) :
Username : ejbuser
Password :
Re-enter Password :
What roles do you want this user to belong to? (Please enter a comma separated l
ist, or leave blank for none) :
About to add user 'ejbuser' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'ejbuser' to file 'C:\jboss-as-7.1.1.Final\standalone\configuration\application-users.properties'
Added user 'ejbuser' to file 'C:\jboss-as-7.1.1.Final\domain\configuration\application-users.properties'
						

