1 Reply Latest reply on Sep 21, 2006 10:01 AM by Sohil Shah

    How can I fetch the data from Portal databse in the HelloWor

    wang wei Newbie

      Hi all,

      I have down the example of the jsf, and deploy successful in my server.
      Now I want the data display in the JSF is from database, so I try two ways:

      1.directly use another hibernate configure file connect to the database.This methos failed.

      2.I want to use the exciting session of portal to get the data. so what I am doing is like:
      UserModule module = (UserModule)new InitialContext().lookup ("java:portal/UserModule");
      User user = module.findUserByUserName("user");
      but is also failed.
      Maybe the second method can get successful. But I do not know how to do it. Is anyone can help me, Thank very much!