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.

EJB Simple Example, Can't lookup JNDI name

8 posts in General Discussion (old) Last posting was on 2000-03-02 13:26:58.0Z
Yuhong Liu Posted on 2000-02-29 17:14:12.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Yuhong Liu" <yliu@si-ecc.com>
From: "Yuhong Liu" <yliu@si-ecc.com>
Subject: EJB Simple Example, Can't lookup JNDI name
Date: Tue, 29 Feb 2000 12:14:12 -0500
Lines: 40
Organization: SI-ECC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 207.18.189.46
Message-ID: <347_GDCojitg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27492
Article PK: 158883

Hi,

I am using beta 3.5 Jaguar.

I create a very simple EJB, deployed it into Jaguar. The EJB create and
deploy went well. Then I wrote a client to call this EJB. When I try to
lookup the jndiname "mypackage/Bean2", I got:

[Root exception is
org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException

at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
at javax.naming.InitialContext.lookup(InitialContext.java:288)
at EJBClient.main(EJBClient.java:36)

I set up the properties as following:
Properties p = new Properties();
p.put ("jndiname","mypackage/Bean2");
p.put ("url","localhost:9000");
p.put ("java.naming.provider.url","iiop://localhost:9000");
p.put ("java.naming.security.credentials","");
p.put ("java.naming.security.principal","jagadmin");
p.put
("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");

and lookup names:

Context ctx = new InitialContext(p);
home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");

Anybody can help? Thanks in advance!

--Yuhong


Yuhong Liu
SI-Enterprise Consulting Corporation
yliu@si-ecc.com


Dave Wolf [Sybase] Posted on 2000-03-01 05:34:22.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Date: Wed, 1 Mar 2000 00:34:22 -0500
Lines: 51
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: PPPa8-ResaleDialinx80013-4R7207.saturn.bbn.com 4.54.159.69
Message-ID: <347_anAMVB0g$GA.251@forums.sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27456
Article PK: 154540

Change this to

home = (mypackage.Bean2Home) ctx.lookup("Bean2");

Dave Wolf
Internet Applications Division

"Yuhong Liu" <yliu@si-ecc.com> wrote in message
news:GDCojitg$GA.202@forums.sybase.com...
> Hi,
>
> I am using beta 3.5 Jaguar.
>
> I create a very simple EJB, deployed it into Jaguar. The EJB create and
> deploy went well. Then I wrote a client to call this EJB. When I try to
> lookup the jndiname "mypackage/Bean2", I got:
>
> [Root exception is
> org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
>
> at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> at javax.naming.InitialContext.lookup(InitialContext.java:288)
> at EJBClient.main(EJBClient.java:36)
>
> I set up the properties as following:
> Properties p = new Properties();
> p.put ("jndiname","mypackage/Bean2");
> p.put ("url","localhost:9000");
> p.put ("java.naming.provider.url","iiop://localhost:9000");
> p.put ("java.naming.security.credentials","");
> p.put ("java.naming.security.principal","jagadmin");
> p.put
> ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
>
> and lookup names:
>
> Context ctx = new InitialContext(p);
> home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
>
> Anybody can help? Thanks in advance!
>
> --Yuhong
>
>
> Yuhong Liu
> SI-Enterprise Consulting Corporation
> yliu@si-ecc.com
>
>


Jim O'Neil [Sybase] Posted on 2000-02-29 18:19:53.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 13:19:53 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 35
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38BC0DC9.24B17307@sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27482
Article PK: 154545


Yuhong Liu wrote:

> Hi,
>
> I am using beta 3.5 Jaguar.
>
> I create a very simple EJB, deployed it into Jaguar. The EJB create and
> deploy went well. Then I wrote a client to call this EJB. When I try to
> lookup the jndiname "mypackage/Bean2", I got:
>
> [Root exception is
> org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
>
> at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> at javax.naming.InitialContext.lookup(InitialContext.java:288)
> at EJBClient.main(EJBClient.java:36)
>
> I set up the properties as following:
> Properties p = new Properties();
> p.put ("jndiname","mypackage/Bean2");
> p.put ("url","localhost:9000");
> p.put ("java.naming.provider.url","iiop://localhost:9000");
> p.put ("java.naming.security.credentials","");
> p.put ("java.naming.security.principal","jagadmin");
> p.put
> ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
>
> and lookup names:
>
> Context ctx = new InitialContext(p);
> home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
>
> Anybody can help? Thanks in advance!
>
> --Yuhong
>
> Yuhong Liu
> SI-Enterprise Consulting Corporation
> yliu@si-ecc.com

drop the 'mypackage' - EJBs have a flat namespace.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


<=one way=> Posted on 2000-02-29 18:56:32.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <oneway_111@yahoo.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Date: Tue, 29 Feb 2000 13:56:32 -0500
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer34.oppenheimerfunds.com 208.203.94.34
Message-ID: <347_l8R7Qfug$GA.251@forums.sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com> <347_38BC0DC9.24B17307@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27477
Article PK: 158870

What is the reason for EJBs to have flat namespace? What if there is a need
to have 2 EJBs with the same name in different packages?

Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
news:38BC0DC9.24B17307@sybase.com...
> Yuhong Liu wrote:
>
> > Hi,
> >
> > I am using beta 3.5 Jaguar.
> >
> > I create a very simple EJB, deployed it into Jaguar. The EJB create and
> > deploy went well. Then I wrote a client to call this EJB. When I try to
> > lookup the jndiname "mypackage/Bean2", I got:
> >
> > [Root exception is
> > org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
> >
> > at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> > at javax.naming.InitialContext.lookup(InitialContext.java:288)
> > at EJBClient.main(EJBClient.java:36)
> >
> > I set up the properties as following:
> > Properties p = new Properties();
> > p.put ("jndiname","mypackage/Bean2");
> > p.put ("url","localhost:9000");
> > p.put ("java.naming.provider.url","iiop://localhost:9000");
> > p.put ("java.naming.security.credentials","");
> > p.put ("java.naming.security.principal","jagadmin");
> > p.put
> > ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
> >
> > and lookup names:
> >
> > Context ctx = new InitialContext(p);
> > home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
> >
> > Anybody can help? Thanks in advance!
> >
> > --Yuhong
> >
> > Yuhong Liu
> > SI-Enterprise Consulting Corporation
> > yliu@si-ecc.com
>
> drop the 'mypackage' - EJBs have a flat namespace.
> --
> Jim O'Neil
> Senior Technical Support Engineer
> Sybase, Inc
>
>


Dave Wolf [Sybase] Posted on 2000-03-01 05:40:40.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Date: Wed, 1 Mar 2000 00:40:40 -0500
Lines: 68
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: PPPa8-ResaleDialinx80013-4R7207.saturn.bbn.com 4.54.159.69
Message-ID: <347_vqFK2E0g$GA.202@forums.sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com> <347_38BC0DC9.24B17307@sybase.com> <347_l8R7Qfug$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27451
Article PK: 158849

This is simply how JNDI lookups for EJB's work in the spec. A package is a
Jaguar concept. EJB doesnt have this.

Dave Wolf
Internet Applications Division

"<=one way=>" <oneway_111@yahoo.com> wrote in message
news:l8R7Qfug$GA.251@forums.sybase.com...
> What is the reason for EJBs to have flat namespace? What if there is a
need
> to have 2 EJBs with the same name in different packages?
>
> Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
> news:38BC0DC9.24B17307@sybase.com...
> > Yuhong Liu wrote:
> >
> > > Hi,
> > >
> > > I am using beta 3.5 Jaguar.
> > >
> > > I create a very simple EJB, deployed it into Jaguar. The EJB create
and
> > > deploy went well. Then I wrote a client to call this EJB. When I try
to
> > > lookup the jndiname "mypackage/Bean2", I got:
> > >
> > > [Root exception is
> > > org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
> > >
> > > at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> > > at javax.naming.InitialContext.lookup(InitialContext.java:288)
> > > at EJBClient.main(EJBClient.java:36)
> > >
> > > I set up the properties as following:
> > > Properties p = new Properties();
> > > p.put ("jndiname","mypackage/Bean2");
> > > p.put ("url","localhost:9000");
> > > p.put ("java.naming.provider.url","iiop://localhost:9000");
> > > p.put ("java.naming.security.credentials","");
> > > p.put ("java.naming.security.principal","jagadmin");
> > > p.put
> > >
("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
> > >
> > > and lookup names:
> > >
> > > Context ctx = new InitialContext(p);
> > > home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
> > >
> > > Anybody can help? Thanks in advance!
> > >
> > > --Yuhong
> > >
> > > Yuhong Liu
> > > SI-Enterprise Consulting Corporation
> > > yliu@si-ecc.com
> >
> > drop the 'mypackage' - EJBs have a flat namespace.
> > --
> > Jim O'Neil
> > Senior Technical Support Engineer
> > Sybase, Inc
> >
> >
>
>


Evan Ireland Posted on 2000-03-01 20:19:55.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 02 Mar 2000 09:19:55 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 69
NNTP-Posting-Host: vpn-eme-087.sybase.com 130.214.8.87
Message-ID: <347_38BD7B6B.28918B4@sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com> <347_38BC0DC9.24B17307@sybase.com> <347_l8R7Qfug$GA.251@forums.sybase.com> <347_vqFK2E0g$GA.202@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27400
Article PK: 158803


"Dave Wolf [Sybase]" wrote:
>
> This is simply how JNDI lookups for EJB's work in the spec. A package is a
> Jaguar concept. EJB doesnt have this.

Yes, but nothing stops an EJB from having a '/' in the Bean Home Name,
and this can be used for hierarchy. I would like to know which component of
the deployment architecture decides to create a Bean Home Name with no '/'
in it.

> Dave Wolf
> Internet Applications Division
>
> "<=one way=>" <oneway_111@yahoo.com> wrote in message
> news:l8R7Qfug$GA.251@forums.sybase.com...
> > What is the reason for EJBs to have flat namespace? What if there is a
> need
> > to have 2 EJBs with the same name in different packages?
> >
> > Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
> > news:38BC0DC9.24B17307@sybase.com...
> > > Yuhong Liu wrote:
> > >
> > > > Hi,
> > > >
> > > > I am using beta 3.5 Jaguar.
> > > >
> > > > I create a very simple EJB, deployed it into Jaguar. The EJB create
> and
> > > > deploy went well. Then I wrote a client to call this EJB. When I try
> to
> > > > lookup the jndiname "mypackage/Bean2", I got:
> > > >
> > > > [Root exception is
> > > > org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
> > > >
> > > > at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> > > > at javax.naming.InitialContext.lookup(InitialContext.java:288)
> > > > at EJBClient.main(EJBClient.java:36)
> > > >
> > > > I set up the properties as following:
> > > > Properties p = new Properties();
> > > > p.put ("jndiname","mypackage/Bean2");
> > > > p.put ("url","localhost:9000");
> > > > p.put ("java.naming.provider.url","iiop://localhost:9000");
> > > > p.put ("java.naming.security.credentials","");
> > > > p.put ("java.naming.security.principal","jagadmin");
> > > > p.put
> > > >
> ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
> > > >
> > > > and lookup names:
> > > >
> > > > Context ctx = new InitialContext(p);
> > > > home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
> > > >
> > > > Anybody can help? Thanks in advance!
> > > >
> > > > --Yuhong
> > > >
> > > > Yuhong Liu
> > > > SI-Enterprise Consulting Corporation
> > > > yliu@si-ecc.com
> > >
> > > drop the 'mypackage' - EJBs have a flat namespace.
> > > --
> > > Jim O'Neil
> > > Senior Technical Support Engineer
> > > Sybase, Inc
> > >
> > >
> >
> >

--
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856


Dave Wolf [Sybase] Posted on 2000-03-02 13:26:58.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Date: Thu, 2 Mar 2000 08:26:58 -0500
Lines: 99
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: PPPa10-ResaleAnnapolis1-1R7308.saturn.bbn.com 4.48.176.71
Message-ID: <347_sNZpEuEh$GA.295@forums.sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com> <347_38BC0DC9.24B17307@sybase.com> <347_l8R7Qfug$GA.251@forums.sybase.com> <347_vqFK2E0g$GA.202@forums.sybase.com> <347_38BD7B6B.28918B4@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27344
Article PK: 158754

Maybe we need to talk about this Evan. All of our tools, so PJ and JagMan
are only setting the name attribute to the remote interfaces name.

Dave Wolf
Internet Applications Division

"Evan Ireland" <eireland@sybase.com> wrote in message
news:38BD7B6B.28918B4@sybase.com...
> "Dave Wolf [Sybase]" wrote:
> >
> > This is simply how JNDI lookups for EJB's work in the spec. A package
is a
> > Jaguar concept. EJB doesnt have this.
>
> Yes, but nothing stops an EJB from having a '/' in the Bean Home Name,
> and this can be used for hierarchy. I would like to know which component
of
> the deployment architecture decides to create a Bean Home Name with no '/'
> in it.
>
> > Dave Wolf
> > Internet Applications Division
> >
> > "<=one way=>" <oneway_111@yahoo.com> wrote in message
> > news:l8R7Qfug$GA.251@forums.sybase.com...
> > > What is the reason for EJBs to have flat namespace? What if there is a
> > need
> > > to have 2 EJBs with the same name in different packages?
> > >
> > > Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
> > > news:38BC0DC9.24B17307@sybase.com...
> > > > Yuhong Liu wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am using beta 3.5 Jaguar.
> > > > >
> > > > > I create a very simple EJB, deployed it into Jaguar. The EJB
create
> > and
> > > > > deploy went well. Then I wrote a client to call this EJB. When I
try
> > to
> > > > > lookup the jndiname "mypackage/Bean2", I got:
> > > > >
> > > > > [Root exception is
> > > > > org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
> > > > >
> > > > > at
com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> > > > > at
javax.naming.InitialContext.lookup(InitialContext.java:288)
> > > > > at EJBClient.main(EJBClient.java:36)
> > > > >
> > > > > I set up the properties as following:
> > > > > Properties p = new Properties();
> > > > > p.put ("jndiname","mypackage/Bean2");
> > > > > p.put ("url","localhost:9000");
> > > > > p.put ("java.naming.provider.url","iiop://localhost:9000");
> > > > > p.put ("java.naming.security.credentials","");
> > > > > p.put ("java.naming.security.principal","jagadmin");
> > > > > p.put
> > > > >
> > ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
> > > > >
> > > > > and lookup names:
> > > > >
> > > > > Context ctx = new InitialContext(p);
> > > > > home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
> > > > >
> > > > > Anybody can help? Thanks in advance!
> > > > >
> > > > > --Yuhong
> > > > >
> > > > > Yuhong Liu
> > > > > SI-Enterprise Consulting Corporation
> > > > > yliu@si-ecc.com
> > > >
> > > > drop the 'mypackage' - EJBs have a flat namespace.
> > > > --
> > > > Jim O'Neil
> > > > Senior Technical Support Engineer
> > > > Sybase, Inc
> > > >
> > > >
> > >
> > >
>
> --
>

____________________________________________________________________________
____
>
> Evan Ireland Sybase EA Server Engineering
eireland@sybase.com
> Wellington - New Zealand +64 4
934-5856


Evan Ireland Posted on 2000-02-29 20:12:58.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 01 Mar 2000 09:12:58 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "<=one way=>" <oneway_111@yahoo.com>
Subject: Re: EJB Simple Example, Can't lookup JNDI name
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 58
NNTP-Posting-Host: vpn-eme-047.sybase.com 130.214.8.47
Message-ID: <347_38BC284A.EB3A6BDD@sybase.com>
References: <347_GDCojitg$GA.202@forums.sybase.com> <347_38BC0DC9.24B17307@sybase.com> <347_l8R7Qfug$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27474
Article PK: 158867


"<=one way=>" wrote:
>
> What is the reason for EJBs to have flat namespace? What if there is a need
> to have 2 EJBs with the same name in different packages?

You can set the Bean Home Name in Jaguar Manager to anything you
want, including a name with slashes.

Still I would like to know how you deployed your component so that
it ended up without a decent Bean Home Name.

> Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
> news:38BC0DC9.24B17307@sybase.com...
> > Yuhong Liu wrote:
> >
> > > Hi,
> > >
> > > I am using beta 3.5 Jaguar.
> > >
> > > I create a very simple EJB, deployed it into Jaguar. The EJB create and
> > > deploy went well. Then I wrote a client to call this EJB. When I try to
> > > lookup the jndiname "mypackage/Bean2", I got:
> > >
> > > [Root exception is
> > > org.omg.CORBA.OBJECT_NOT_EXIST: ]javax.naming.NamingException
> > >
> > > at com.sybase.ejb.NamingContext.lookup(NamingContext.java:379)
> > > at javax.naming.InitialContext.lookup(InitialContext.java:288)
> > > at EJBClient.main(EJBClient.java:36)
> > >
> > > I set up the properties as following:
> > > Properties p = new Properties();
> > > p.put ("jndiname","mypackage/Bean2");
> > > p.put ("url","localhost:9000");
> > > p.put ("java.naming.provider.url","iiop://localhost:9000");
> > > p.put ("java.naming.security.credentials","");
> > > p.put ("java.naming.security.principal","jagadmin");
> > > p.put
> > > ("java.naming.factory.initial","com.sybase.ejb.InitialContextFactory");
> > >
> > > and lookup names:
> > >
> > > Context ctx = new InitialContext(p);
> > > home = (mypackage.Bean2Home) ctx.lookup("mypackage/Bean2");
> > >
> > > Anybody can help? Thanks in advance!
> > >
> > > --Yuhong
> > >
> > > Yuhong Liu
> > > SI-Enterprise Consulting Corporation
> > > yliu@si-ecc.com
> >
> > drop the 'mypackage' - EJBs have a flat namespace.
> > --
> > Jim O'Neil
> > Senior Technical Support Engineer
> > Sybase, Inc
> >
> >

--
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856