A last try:
nobody with any clue on this one?
well, if not I'll have to redesign... :-)

-Jon


> Hi!
> I'm using jboss 3.0.3 and BMP with mysql.
> I've stuck with a weird problem, at least from my view.
> I have a stateless sessionbean method(in PersonaliaSessionBean) creating an OIA 
>object (OrderInvoiceAccount). The method, 
> on line 5,
> creates an OIA entity bean, which is done successfully.
> On line 6 the invoice/personalia data is synched with the OIA instance through a 
>call to synchOIA (its just a helper method to
> update address information).
> 
> The problem is that it calls the synchOIA method but the container apparently never 
>store the data to the database.
> I've tested to directly call oia.setInvoiceName('test') from within the createOIA 
>method and then print 
> oia.getInvoiceName() to the
> console, and the information is there - in the bean. But when returning to the 
>client its gone.
> Calling oia.setInvoiceName('test') from the client side is performed without 
>problems and is stored in the database.
> 
> I've traced the server method calls and they tell me this:
> 14:00:02,271 INFO  [STDOUT] PersonaliaSessionBean.createOIA()
> 14:00:02,271 INFO  [STDOUT] OIA.create()
> 14:00:02,271 INFO  [STDOUT] OIA.create(OIAData)
> 14:00:02,281 INFO  [STDOUT] OIA.postCreate()
> 14:00:02,291 INFO  [STDOUT] PersonaliaSessionBean.synchOIA(ejb/OIA:[.2.],,)
> 14:00:02,291 INFO  [STDOUT] OIA.store(.0.)
> 14:00:02,371 INFO  [STDOUT] OIA.activate
> 14:00:02,371 INFO  [STDOUT] OIA.load()[.2.]
> 
> I dont see any unnormal with this. Except for OIA storing the 0 pk - i dont see why
> 
> According to what the spec says about calling beans from a session i cant find 
>anything saying this shouldn't be possible.
> 
> Any idea of what I can be overlooking?
> 
> -Jon
> 
>   /**
>    * @ejb:interface-method view-type="remote"
>    * Helper method that creates OIA based on existing personalia data.<br>
>    * A kind of inefficient, should use locals
>    */
> 1:  public OIA createOIA(PersonaliaData invoice, PersonaliaData shipTo)
> 2:    throws java.rmi.RemoteException {
> 3:    OIA oia = null;
> 4:    try {
> 5:      oia = OIAUtil.getHome().create();
> 6:      synchOIA(oia, invoice, shipTo);
>      } catch (Exception e) {
>        e.printStackTrace();
>      }
>      return oia;
>    }
> 
> 
>   /**
>    * @ejb:interface-method view-type="remote"
>    * Helper method that synchs OIA with personalia bean data. Only synch
>    * name and address data.<br>
>    */
>   public void synchOIA(OIA oia, PersonaliaData invoice, PersonaliaData shipTo)
>     throws java.rmi.RemoteException {
>     System.out.println("PersonaliaSessionBean.synchOIA("+oia+",,)");
>     oia.setInvoiceName(
>       (!invoice.getGeneralName().equals(""))
>         ? invoice.getGeneralName()
>         : invoice.getFirstName() + " " + invoice.getLastName());
>     oia.setInvoiceAddress1(invoice.getAddress1());
>     oia.setInvoiceAddress2(invoice.getAddress2());
>     oia.setInvoiceAddress3(invoice.getAddress3());
>     oia.setInvoiceZip(invoice.getPostalCode());
>     oia.setInvoicePAddr(invoice.getCity());
>     oia.setShipToName(
>       (!shipTo.getGeneralName().equals(""))
>         ? shipTo.getGeneralName()
>         : shipTo.getFirstName() + " " + shipTo.getLastName());
>     oia.setShipToAddress1(shipTo.getAddress1());
>     oia.setShipToAddress2(shipTo.getAddress2());
>     oia.setShipToAddress3(shipTo.getAddress3());
>     oia.setShipToZip(shipTo.getPostalCode());
>     oia.setShipToPAddr(shipTo.getCity());
>  }
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to