Hi all , i am using RedHat6.1 , jdk1.3 , postgresql7.0.1 and jBoss2.1 .

 The weird error are :

   I have deploy my ejb which included 3 entity and 1 session bean. 
   The session bean is facade to the entity bean.

   When i run jboss container and called a method from session for
example SearchByLikeProjectTitle() in my pc , it will display records in
the database.
   All the method is execute ok in my PC .

   However when i try to execute the method in different PC , it did not
display correct records.
   All the method is not execute correctly.If i call ejbcreate , it did
not display my any error , but the records is not display in the table.
And when i tried to use findByPrimaryKey() to find records which exists
in the database  , it display ObjectNotFoundException error eventhough
the records exists in the table.
  
   Anybody have any idea why i tried to run jboss in different PC , it
give me different results ?

   Thanks.

   public ArrayList searchByLikeProjectTitle(String projectitle) throws
RemoteException,FinderException{

   ArrayList result = new ArrayList();
   System.out.println("projectinfohome" + projectinfohome);
   Collection collection =
projectinfohome.findByLikeProjectName(projectitle);

   System.out.println("size" + collection.size());
   Iterator iterator = collection.iterator();
   while(iterator.hasNext()){
     ProjectInfo projectinfo =
(ProjectInfo)javax.rmi.PortableRemoteObject.narrow(
                                iterator.next(),ProjectInfo.class);
     ProjectInfoJB projectinfojb = projectinfo.getProjectInfoJB();
     result.add(projectinfojb);
    }
   return result;
 }

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to