Are you sure that you and JBoss are looking at the same database? By
default, JBoss will map your bean to whatever datasource is named
DefaultDS (in jboss.jcml).

What database are you using? if it doesn't support transactions, you might
see strange things.

On Wed, 14 Mar 2001, Alexander Methke wrote:

> Gosh...pew...
> 
> After hours of working my ass off I made no step forward.
> 
> I'm using jBoss with embedded tomcat. I can see my entries stacking up in 
>default.script but I never got access to them. I can create new, if I try to create 
>data twice I get CreateException tellin' me that an object with this PK already 
>exists...Why can jBoss find them and not me?
> 
> Maybe my servlet needs glasses?
> 
> Here's my lookup:
> 
> 
> UserRemote uRemote;
> UserPK uKey=new UserPK("4444444");
> UserHome uHome=(UserHome)PortableRemoteObject.narrow(o,UserHome.class);
>                       
> try
> {
>  uRemote=(UserRemote)uHome.findByPrimaryKey (uKey);
>  System.out.println("Found: \n"+
>               uRemote.getVorname()+
>               uRemote.getNachname()+
>               uRemote.getKundennummer());
> }
> 
> but I never reach this point....Exception blabla...
> 
> I hate that...You make some little mistake like mixing up names and it works 'til 
>you need it...
> 
> :-)
> 
> Keep rockin', I' ll keep trying
> 
> What is this site-stuff for...nobody want's to know about yellow rectangles, strange 
>people...stop smokin' kids :-P
> ______________________________________________________________________________
> Die Fachpresse ist sich einig: WEB.DE 20mal Testsieger! Kostenlos E-Mail, 
> Fax, SMS, Verschl�sselung, POP3, WAP....testen Sie uns! http://freemail.web.de
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> 

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to