Call EJB behind firewall

Discussion in 'Java' started by sk, Dec 9, 2006.

  1. sk

    sk Guest

    I am trying to call ejb from behind firewall,
    but without access. I already success remotly connect the AS in LAN.

    InitialContext initial = new InitialContext();
    System.out.println("initial="+ initial);

    Object o = initial.lookup("corbaname:iiop:publicip:4444#ejb/SFHelloBean");
    System.out.println(" o="+ o);
    SFHelloRemoteHome home = ( SFHelloRemoteHome )PortableRemoteObject.narrow(
    o, SFHelloRemoteHome.class);
    SFHelloRemote helloworld = home.create();
    System.out.println( helloworld.SayHello());

    Do I have configure any settings in order to go through firewall for EJB ?

    SK
    sk, Dec 9, 2006
    #1
    1. Advertising

  2. sk

    EricF Guest

    In article <YHneh.48017$hn.28793@edtnps82>, "sk" <> wrote:
    >I am trying to call ejb from behind firewall,
    >but without access. I already success remotly connect the AS in LAN.
    >
    >InitialContext initial = new InitialContext();
    >System.out.println("initial="+ initial);
    >
    > Object o = initial.lookup("corbaname:iiop:publicip:4444#ejb/SFHelloBean");
    > System.out.println(" o="+ o);
    >SFHelloRemoteHome home = ( SFHelloRemoteHome )PortableRemoteObject.narrow(
    >o, SFHelloRemoteHome.class);
    >SFHelloRemote helloworld = home.create();
    >System.out.println( helloworld.SayHello());
    >
    >Do I have configure any settings in order to go through firewall for EJB ?
    >
    >SK


    The firewall needs to be configured to allow calls to the port EJB is using -
    looks like port 4444.

    Eric
    EricF, Dec 9, 2006
    #2
    1. Advertising

  3. sk

    sk Guest

    > The firewall needs to be configured to allow calls to the port EJB is
    > using -
    > looks like port 4444.
    >
    > Eric


    I did open the port on the firewall.

    SK
    sk, Dec 9, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    1
    Views:
    686
    John C. Bollinger
    Jul 15, 2003
  2. Robert Dodier
    Replies:
    6
    Views:
    2,342
    Matthias Kraft
    Sep 14, 2004
  3. Raymond Schanks
    Replies:
    0
    Views:
    645
    Raymond Schanks
    Aug 3, 2010
  4. Kumarforg

    Web Service invocation from behind proxy behind firewall

    Kumarforg, Aug 3, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    182
    Kumarforg
    Aug 3, 2004
  5. ESPNSTI
    Replies:
    0
    Views:
    125
    ESPNSTI
    May 9, 2007
Loading...

Share This Page