Re: [JBoss-user] Client code example

2001-06-27 Thread Allen fogleson

ohh duh, heh. i hate having to populate hashtables :)

- Original Message - 
From: danch <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 7:52 PM
Subject: Re: [JBoss-user] Client code example


> Note that the JNDI URL that Allen is using in his code example will work 
> from a servlet or JSP, but not from a stand-alone client. This is 
> because the Environment Naming Context (ENC) is not available to a 
> standalone client.
> 
> -danch
> 
> Devraj Mukherjee wrote:
> 
> > Hi Allen,
> > 
> > Just a quick question to you, what is the JNDI name that you have 
> > specified in your XML descriptors which you are looking up by the name 
> > java:comp/env/ejb/simpleSession
> > 
> > That will help me associate the names for my beans as well.
> > 
> > Thanks heaps.
> > Devraj
> > 
> > At 19:04 27/06/01 -0400, you wrote:
> > 
> >> try {
> >> InitialContext ctx = new Initialcontext();
> >> Object o = ctx.lookup("java:comp/env/ejb/simpleSession");
> >> simpleSessionHome home =
> >> (simpleSessionHome)PortableRemoteObject.narrow(o, 
> >> simpleSessionHome.class);
> >> simpleSession bean = home.create();
> >> .
> >> .
> >> .
> >> }
> >> catch(
> >> 
> >> Al
> >> 
> >> - Original Message -
> >> From: Devraj Mukherjee <[EMAIL PROTECTED]>
> >> To: <[EMAIL PROTECTED]>
> >> Cc: JBoss List Serve <[EMAIL PROTECTED]>
> >> Sent: Wednesday, June 27, 2001 6:48 PM
> >> Subject: [JBoss-user] Client code example
> >> 
> >> 
> >>  > Is someone able to send me a chunk of their client code which 
> >> creates a
> >>  > object of their Session bean after doing a lookup.
> >>  >
> >>  > Devraj
> >>  >
> >>  >
> >>  > ___
> >>  > JBoss-user mailing list
> >>  > [EMAIL PROTECTED]
> >>  > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >> 
> >> 
> >> ___
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED]
> >> http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Client code example

2001-06-27 Thread danch

Note that the JNDI URL that Allen is using in his code example will work 
from a servlet or JSP, but not from a stand-alone client. This is 
because the Environment Naming Context (ENC) is not available to a 
standalone client.

-danch

Devraj Mukherjee wrote:

> Hi Allen,
> 
> Just a quick question to you, what is the JNDI name that you have 
> specified in your XML descriptors which you are looking up by the name 
> java:comp/env/ejb/simpleSession
> 
> That will help me associate the names for my beans as well.
> 
> Thanks heaps.
> Devraj
> 
> At 19:04 27/06/01 -0400, you wrote:
> 
>> try {
>> InitialContext ctx = new Initialcontext();
>> Object o = ctx.lookup("java:comp/env/ejb/simpleSession");
>> simpleSessionHome home =
>> (simpleSessionHome)PortableRemoteObject.narrow(o, 
>> simpleSessionHome.class);
>> simpleSession bean = home.create();
>> .
>> .
>> .
>> }
>> catch(
>> 
>> Al
>> 
>> - Original Message -
>> From: Devraj Mukherjee <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Cc: JBoss List Serve <[EMAIL PROTECTED]>
>> Sent: Wednesday, June 27, 2001 6:48 PM
>> Subject: [JBoss-user] Client code example
>> 
>> 
>>  > Is someone able to send me a chunk of their client code which 
>> creates a
>>  > object of their Session bean after doing a lookup.
>>  >
>>  > Devraj
>>  >
>>  >
>>  > ___
>>  > JBoss-user mailing list
>>  > [EMAIL PROTECTED]
>>  > http://lists.sourceforge.net/lists/listinfo/jboss-user
>> 
>> 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Client code example

2001-06-27 Thread Devraj Mukherjee

Hi Allen,

Just a quick question to you, what is the JNDI name that you have specified 
in your XML descriptors which you are looking up by the name 
java:comp/env/ejb/simpleSession

That will help me associate the names for my beans as well.

Thanks heaps.
Devraj

At 19:04 27/06/01 -0400, you wrote:
>try {
> InitialContext ctx = new Initialcontext();
> Object o = ctx.lookup("java:comp/env/ejb/simpleSession");
> simpleSessionHome home =
>(simpleSessionHome)PortableRemoteObject.narrow(o, simpleSessionHome.class);
> simpleSession bean = home.create();
> .
> .
> .
>}
>catch(
>
>Al
>
>- Original Message -
>From: Devraj Mukherjee <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: JBoss List Serve <[EMAIL PROTECTED]>
>Sent: Wednesday, June 27, 2001 6:48 PM
>Subject: [JBoss-user] Client code example
>
>
> > Is someone able to send me a chunk of their client code which creates a
> > object of their Session bean after doing a lookup.
> >
> > Devraj
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Client code example

2001-06-27 Thread Allen fogleson

try {
InitialContext ctx = new Initialcontext();
Object o = ctx.lookup("java:comp/env/ejb/simpleSession");
simpleSessionHome home =
(simpleSessionHome)PortableRemoteObject.narrow(o, simpleSessionHome.class);
simpleSession bean = home.create();
.
.
.
}
catch(

Al

- Original Message -
From: Devraj Mukherjee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: JBoss List Serve <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 6:48 PM
Subject: [JBoss-user] Client code example


> Is someone able to send me a chunk of their client code which creates a
> object of their Session bean after doing a lookup.
>
> Devraj
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Client code example

2001-06-27 Thread Devraj Mukherjee

Is someone able to send me a chunk of their client code which creates a 
object of their Session bean after doing a lookup.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user