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.

Problem with EJB client

2 posts in EJB Client Last posting was on 2004-08-25 20:19:26.0Z
Barbócz Attila Posted on 2004-06-01 15:47:29.0Z
From: "Barbócz Attila" <barboczatti@msn.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Problem with EJB client
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: trinity.dorsum.hu
Message-ID: <40bca53c@forums-2-dub>
X-Original-Trace: 1 Jun 2004 08:48:12 -0700, trinity.dorsum.hu
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Jun 2004 08:45:42 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Jun 2004 08:47:29 -0700
X-Trace: forums-1-dub 1086104849 10.22.108.75 (1 Jun 2004 08:47:29 -0700)
X-Original-Trace: 1 Jun 2004 08:47:29 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:289
Article PK: 424470

Hi

I have successfully deployed my EJB(2.0) jar file into the EAServer 5.0,
generated and compiled stubs & skeletons then created proxy objects on the
PowerBuilder (9.0.1) side.

From my PB application I'm able to connect to the EAServer using connection
object but
when I create the instance of the declared proxy objects using
creainstance() method
it returns the error 50

When I see the Jaguar.log of EAServer it shows the following error

180532-Exception 'CosNaming::NamingContext::NotFound' in Session::lookup for
component 'MyEjbs/JavaSample'
SystemException: OBJECT_NOT_EXIST (Session/lookup - @10.1.1.56)

However I can see this package (MyEjbs/JavaSample) under the "Installed
Packages" in the EAServer Manager and as I mentioned the deployment was
successful.

What could be the reason for the above error?

During my investigation I met many different method of calling Ejb from PB
client (using Connection object,JaguarORB object, EJBConnection object).
Which one is the most effective and what is the difference between them?

I've tried to run the Sybase's EJB client example
(http://www.sybase.com/detail?id=1024977) but it did not help.
I'm getting the following exception : "Failed to lookup the EJB:
pb9.HelloHome" when I'm trying looking up the EJB but there is no any error
message in the Jaguar.log in this case.

Attila


Gokhan Demir Posted on 2004-08-25 20:19:26.0Z
From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with EJB client
References: <40bca53c@forums-2-dub>
In-Reply-To: <40bca53c@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Original-NNTP-Posting-Host: adsluser-1165.adsl.ttnet.net.tr
Message-ID: <412cf5bc@forums-2-dub>
X-Original-Trace: 25 Aug 2004 13:25:32 -0700, adsluser-1165.adsl.ttnet.net.tr
Lines: 58
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 25 Aug 2004 13:09:20 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 25 Aug 2004 13:19:26 -0700
X-Trace: forums-1-dub 1093465166 10.22.108.75 (25 Aug 2004 13:19:26 -0700)
X-Original-Trace: 25 Aug 2004 13:19:26 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:339
Article PK: 424514

Hi,

Answers inline.

Barbócz Attila wrote:

> Hi
>
> I have successfully deployed my EJB(2.0) jar file into the EAServer 5.0,
> generated and compiled stubs & skeletons then created proxy objects on the
> PowerBuilder (9.0.1) side.
>
> From my PB application I'm able to connect to the EAServer using connection
> object but
> when I create the instance of the declared proxy objects using
> creainstance() method
> it returns the error 50
>
> When I see the Jaguar.log of EAServer it shows the following error
>
> 180532-Exception 'CosNaming::NamingContext::NotFound' in Session::lookup for
> component 'MyEjbs/JavaSample'
> SystemException: OBJECT_NOT_EXIST (Session/lookup - @10.1.1.56)
>
> However I can see this package (MyEjbs/JavaSample) under the "Installed
> Packages" in the EAServer Manager and as I mentioned the deployment was
> successful.
>
> What could be the reason for the above error?

Most probably, JNDI name of your component is different.

>
> During my investigation I met many different method of calling Ejb from PB
> client (using Connection object,JaguarORB object, EJBConnection object).
> Which one is the most effective and what is the difference between them?
I don't know which one is the most efficient but, if you are looking for
portability (different EJB servers connectivity from Powerbuilder), you
must use EJBConnection.

>
> I've tried to run the Sybase's EJB client example
> (http://www.sybase.com/detail?id=1024977) but it did not help.
> I'm getting the following exception : "Failed to lookup the EJB:
> pb9.HelloHome" when I'm trying looking up the EJB but there is no any error
> message in the Jaguar.log in this case.

You don't see an error message in the Jaguar log, because the client
can't find pb9.HelloHome class in your classpath. You should generate
client stubs after deploying your application to EAServer and you should
create the java_vm in Powerbuilder with that stub jar in the classpath.

>
> Attila
>
>

Regards,
Gokhan