Not exactly sure what you're looking for. Are you trying to make a
Java-to-database connection & ad-hoc query ?
If so:
1. DOWNLOAD THE JDBC UTILITY JARFILE FOR YOUR DB
2. in your red5 code: LOAD THE DB DRIVER CLASS:
e.g.
try {
Class.forName("org.postgresql.Driver");
} catch (ClassNotFoundException ex){System.out.print(" driver missing");};
3. assuming no connection pooling:
- GET/CREATE YOUR DB CONNECTION OBJECT
- CREATE YOUR DB STATEMENT OBJECT
- CREATE YOUR QUERY STRING
4. SEND YOUR QUERY STRING INTO YOUR STATEMENT OBJECT
5. CAPTURE THE returned RESULTSET OBJECT (assuming a Select Query)
then STEP THROUGH THE RESULTSET extracting the pieces of data you requested
- or -
simply EXECUTE THE INSERT/UPDATE QUERY (assuming Insert/Update)
Hope this helps. The actual coding details and SQL query examples can be found
in numerous Java tutorials/books.
onata Smith <[EMAIL PROTECTED]> wrote: Can any one on this list kindly paste an
examples or even a pointer on how to achive a simple query against db and red5.
scondly I would like to be learn feature comparisons of Red5 capablities to FDS?
regards
Onata
-- _______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
---------------------------------
Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org