2008-08-15

Running RealmBase from command line

To create a MD5 digest for a encrypted password in tomcat run the script digest.bat -a MD5 s3cret from the {catalina.bin}

2008-08-13

Using JDBCRealm in tomcat

Add the following to conf/server.xml :
- <!-- uncomment if digests should be used (i.e. encrypted passwords)
digest="MD5"
-->
<Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/schemaName" connectionName="dbUser" connectionPassword="dbPasswd" userTable="user" userNameCol="alias" userCredCol="password" userRoleTable="user_roles" roleNameCol="role_name" />

Remember to put the JDBC-drivers jar in ${cataline.home}/lib.

2008-08-12

Blazeds in tomcat

When using blazeds with tomcat. Do the following to make authentication/authorization work:
Copy the files flex-tomcat-common.jar and flex-tomcat-server.jar to the directory ${catalina.home}/lib/blazeds.
Edit the file and add the following to the property common.loader ${catalina.home}/lib/blazeds/*.jar
Edit the META-INF/contex.xml file (or if running from inside netbeans c:\Documents and Settings\you\.netbeans\6.1\apache-tomcat-6.0.16_base\conf\Catalina\localhost\ROOT.xml ) and add the following:
<Context path="">
<!-- Enable the TomcatValve for custom login support from this webapp.
-->
<Valve className="flex.messaging.security.TomcatValve" />
</Context>

2008-08-03

Halvtom eller halvfull?


Det är frågan.