Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Null returned when using EJBhome.create()

3 posts in General Discussion (old) Last posting was on 2000-03-15 21:12:47.0Z
Darko Guberina Posted on 2000-03-15 16:48:41.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 15 Mar 2000 17:48:41 +0100
From: Darko Guberina <dagu@connova.se>
Reply-To: dagu@connova.se
Organization: ConNova Systems AB
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Null returned when using EJBhome.create()
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 19
NNTP-Posting-Host: 195.67.36.41
Message-ID: <347_38CFBEE9.40B126B1@connova.se>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26356
Article PK: 157023

Hi,

Im using this to get a hadle to my business code in an EJB:

props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
props.put("com.sybase.CORBA.NameServiceURL", getProtocol() + ":" +
"//" + getMachineName() + ":" + getPort());

ORB orb = ORB.init((String[]) null, props);

Manager manager =
ManagerHelper.narrow(orb.string_to_object(getProtocol() + ":" + "//" +
getMachineName() + ":" + getPort()));
session = manager.createSession(UserName, PassWord);


Factory fact = FactoryHelper.narrow(session.lookup("InvoiceSess"));
InvoiceSessHome Home = InvoiceSessHomeHelper.narrow(fact.create());
invoice_interface = Home.create();

My Home.create(); Method returns NULL. Why??

TIA,
Darko


Dave Wolf [Sybase] Posted on 2000-03-15 17:01:42.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Null returned when using EJBhome.create()
Date: Wed, 15 Mar 2000 12:01:42 -0500
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.72
Message-ID: <347_TfLn1Cqj$GA.285@forums.sybase.com>
References: <347_38CFBEE9.40B126B1@connova.se>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26355
Article PK: 157024

Are any exceptions thrown? Whats in Jag's log?

Dave Wolf
Internet Applications Division

"Darko Guberina" <dagu@connova.se> wrote in message
news:38CFBEE9.40B126B1@connova.se...
> Hi,
>
> Im using this to get a hadle to my business code in an EJB:
>
> props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> props.put("com.sybase.CORBA.NameServiceURL", getProtocol() + ":" +
> "//" + getMachineName() + ":" + getPort());
>
> ORB orb = ORB.init((String[]) null, props);
>
> Manager manager =
> ManagerHelper.narrow(orb.string_to_object(getProtocol() + ":" + "//" +
> getMachineName() + ":" + getPort()));
> session = manager.createSession(UserName, PassWord);
>
>
> Factory fact = FactoryHelper.narrow(session.lookup("InvoiceSess"));
> InvoiceSessHome Home = InvoiceSessHomeHelper.narrow(fact.create());
> invoice_interface = Home.create();
>
> My Home.create(); Method returns NULL. Why??
>
> TIA,
> Darko
>
>


Darko Guberina Posted on 2000-03-15 21:12:47.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Darko Guberina" <dagu@connova.se>
From: "Darko Guberina" <dagu@connova.se>
Subject: SV: Null returned when using EJBhome.create()
Date: Wed, 15 Mar 2000 22:12:47 +0100
Lines: 41
Organization: ConNova Systems AB
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: d212-151-180-98.swipnet.se 212.151.180.98
Message-ID: <347_xXR$FRsj$GA.151@forums.sybase.com>
References: <347_38CFBEE9.40B126B1@connova.se> <347_TfLn1Cqj$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26341
Article PK: 157012

No, no exception and nothing in the log....

Dave Wolf [Sybase] <dwolf@sybase.com> skrev i
diskussionsgruppsmeddelandet:TfLn1Cqj$GA.285@forums.sybase.com...

> Are any exceptions thrown? Whats in Jag's log?
>
> Dave Wolf
> Internet Applications Division
>
> "Darko Guberina" <dagu@connova.se> wrote in message
> news:38CFBEE9.40B126B1@connova.se...
> > Hi,
> >
> > Im using this to get a hadle to my business code in an EJB:
> >
> > props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.NameServiceURL", getProtocol() + ":" +
> > "//" + getMachineName() + ":" + getPort());
> >
> > ORB orb = ORB.init((String[]) null, props);
> >
> > Manager manager =
> > ManagerHelper.narrow(orb.string_to_object(getProtocol() + ":" + "//" +
> > getMachineName() + ":" + getPort()));
> > session = manager.createSession(UserName, PassWord);
> >
> >
> > Factory fact = FactoryHelper.narrow(session.lookup("InvoiceSess"));
> > InvoiceSessHome Home = InvoiceSessHomeHelper.narrow(fact.create());
> > invoice_interface = Home.create();
> >
> > My Home.create(); Method returns NULL. Why??
> >
> > TIA,
> > Darko
> >
> >
>
>