Tim,
 
I ran into issues with JNDI URLs in the JNDI name.  The remote server threw 
security exceptions (Invalid Subject) when I called the remote EJB because it 
was propagating the authenticated subject from my portal application.  My 
intention was to have the EJB call run as weblogic.
 
I was able to get remote EJB calls from an EJB Control to work using a T3 URL 
as follows:
 
@ControlExtension
@EJBHome(jndiName = 
"t3://remotehost:7001/ejb.ApplicationBusinessServiceRemoteHome")

Be sure to configure domain trust between the domains to avoid coding the 
weblocig username/pw in the control.
 
HTH,
Scott
 
________________________________

From: Timothy J Brown [mailto:[EMAIL PROTECTED]
Sent: Sat 1/6/2007 1:55 PM
To: 'Beehive Users'
Cc: [EMAIL PROTECTED]
Subject: RE: EJB Remote Lookup



Hey Chad,

I changed the syntax to:

@ControlExtension
@EJBHome(jndiName="com com.server.MyServiceBeanRemoteHome")
@JNDIContextEnv(
        contextFactory="weblogic.jndi.WLInitialContextFactory",
        providerURL="t3://localhost:7001",
        principal="weblogic",
        credentials="weblogic")


Seems to work perfect this way.  Not sure why or what the other syntax is
for.  Basically, I was getting a malformed URL exception.

No idea.

Tim
-----Original Message-----
From: Chad Schoettger [mailto:[EMAIL PROTECTED]
Sent: Friday, January 05, 2007 10:18 PM
To: Beehive Users
Subject: Re: EJB Remote Lookup

Hi Tim,

What error do you receive for the case that fails? Is it a JNDI name
not found exception?

 - Chad

On 1/5/07, Timothy J Brown <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
>
> I am trying to consume a remote ejb that is running on WLS 9.2 using the
> SessionEJBControl control.  According to the docs, the syntax using
> jndi://.. Should work as the following code snippet shows.
>
>
>
> @ControlExtension
>
> //@EJBHome(jndiName = "com.server.MyServiceBeanRemoteHome") //
<<<<--------
> This works
>
>
@EJBHome(jndiName="jndi://weblogic:[EMAIL PROTECTED]:7001/com.server.MyServ
> iceBeanRemoteHome") // <<<<---- This fails
>
> public interface MyServiceBeanControl extends ...
>
>
>
>
>
> However, this fails.  Obviously, I am missing something.  What is the
> correct syntax for a remote session bean?
>
>
>
> Thanks,
>
>
>
> Tim
>
>
>




_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to