Hi everybody

Something is wrong in my JBOSS server.

I've developed a program that uses a mySQL database as follows:

public class C1Bean implements SessionBean {
   .........
  public int activate(){
    try {
      Class.forName("com.mysql.jdbc.Driver").newInstance();
    }
    catch (Exception ex) {
      return ( -1);
    }
    return (0);
  }
..........


The imported library is : mysql-connector-java-3.1.7.bin.jar

The program is deployed ok, but when the method is invoked, always returns -1.

If the program is used locally, that is, calling this method locally (no 
Jboss), the program runs ok.

Does JBOSS run Ok if a database connector is needed?. Do I need to add 
something else to the JBOSS configuration?

Regards
Pepe

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874174#3874174

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874174


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to