No, it is 3.2.2. I Post you some more details, which are not 100%
compatible to my first posting, since I changed and tried a lot....

The phenomen is:
1.) When I deploy the beans and run the client, the bean Akteur returns 
     allways the Brief-bean, which the client wants first (see bold
     paramerters in client-code).

2.) When I change the first bold marked parameter in the client-Code, the
     Atkeur-bean still returns the same as it did under 1.).

3.) Untill I undeployed and then redeployed the beans, the Atkeur-bean will
    allwas return the Brief-bean, that fits the new first parameter, changed
    under    2.)

Here are some logs (for 1.) and 3.) ):--------------------

12:32:22,752 INFO  [STDOUT] TryRemote  -----> : ejbSelectAngebot(admin, Linde, 1);
12:32:23,918 DEBUG [Akteur#ejbSelectAngebot] Executing SQL: SELECT DISTINCT 
t0_o.nameAkteurPK, t0_o.nameAktienGesellschaftPK, t0_o.skrontoNrPK FROM Brief t0_o 
WHERE (t0_o.nameAkteurPK = ? AND t0_o.nameAktienGesellschaftPK = ? AND 
t0_o.skrontoNrPK = ?)

12:33:24,623 INFO  [STDOUT] TryRemote  -----> : ejbSelectAngebot(admin, MAN, 1);
12:33:25,783 DEBUG [Akteur#ejbSelectAngebot] Executing SQL: SELECT DISTINCT 
t0_o.nameAkteurPK, t0_o.nameAktienGesellschaftPK, t0_o.skrontoNrPK FROM Brief t0_o 
WHERE (t0_o.nameAkteurPK = ? AND t0_o.nameAktienGesellschaftPK = ? AND 
t0_o.skrontoNrPK = ?)

The Results:-----------------------
Akteur=admin, AG=Linde, SkrontoNr=1, Menge=3, Preis=3
Akteur=admin, AG=Linde, SkrontoNr=1, Menge=3, Preis=3


The Coding:-----------------------
AkteurBean:

  |     public String getAngebotRemote(String nameAG, int skrontoNr) {
  |             String nameAkteur = getNamePK();
  |             BriefLocal brief;
  |             Set s;
  |             try {
  |                     
  |                     System.out.println("TryRemote  -----> : 
ejbSelectAngebot("+getNamePK()+", "+nameAG+", "+skrontoNr+");");
  |                     s = ejbSelectAngebot(getNamePK(), nameAG, skrontoNr);
  |                     brief = (BriefLocal) s.iterator().next();
  |                     String x =      "Akteur="+brief.getNameAkteurPK() +
  |                     ", AG="+brief.getNameAktienGesellschaftPK()+
  |                     ", SkrontoNr="+brief.getSkrontoNrPK()+
  |                     ", Menge="+brief.getAngebotsMenge()+
  |                     ", Preis="+brief.getPreisMin();
  |                     return x;
  | 
  |             } catch (Exception e) {
  |                     System.out.println("Fehler -----> : ejbSelectAngebot("+ nameAG 
+");");
  |                     e.printStackTrace();
  |                     return null;
  |             }
  |     }
  | 
  |     /**
  |      * @ejb.select query = "select object(o) from Brief o where o.nameAkteurPK=?1 
and o.nameAktienGesellschaftPK=?2 and o.skrontoNrPK=?3"
  |      */
  |     public abstract Set ejbSelectAngebot(String nameAkteur, String nameAG, int 
skrontoNr) throws FinderException;   
  | 
Client-Code


  |     public static void main(String[] args) throws Exception {
  |             AkteurHome akteurHome;
  |                     Akteur akteur;
  |                     Brief brief;
  |                             Context initial = new InitialContext();
  |                             Object objref = initial.lookup("ejb/bp/AkteurRemote");
  |                             akteurHome = (AkteurHome) 
PortableRemoteObject.narrow(objref, AkteurHome.class);
  |                             akteur = akteurHome.findByPrimaryKey("admin");
  |                             String x = akteur.getAngebotRemote("Linde", 1);
  |                             System.out.println(x);
  |              x = akteur.getAngebotRemote("MAN", 1);
  |             System.out.println(x);
  |             
  |     }
  | 

Regards,

Frank

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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to