Hi everybody,
i'm quite new in red5 and java development, and i'm stuck already :)
i'm trying to connect red5 to a mysql database throung a JNDI resource.
after a couple of days spent on google, i've succesfully build a java
application on tomcat that achieve my goal.
Basically i've a "context.xml" file in the myapp/META-INF folder where is
declared the datasource, and then i connect to it with:
Context init = new InitialContext();
Context ctx = (Context) init.lookup("java:comp/env");
dataSource = (DataSource) ctx.lookup("jdbc/TestDB");
Connection con = dataSource.getConnection();
now i've to do something similar in red5. i've followed the tutorial at
http://www.red5tutorials.net/index.php/Tutorials:MySQL_and_Red5
but i keep on getting an exeption when connecting to the datasource
(ie. JNDIException: Name java:comp is not bound in this Context)
there's out there someone who could give me some advice on how to resolve
this problem?
thanks ^_^
plus, i also need to deploy my red5 application in tomcat with a war file,
if it's possibile :s
ps: i've red5 0.6 final, tomcat 6.10, mysql 5.1.11 and i've installed
mysql-connector-java-5.0.5
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org