-
1. Re: Hanging while calling create()
dsundstrom Sep 9, 2002 4:28 PM (in response to isekh)If you go get a cup of coffee/ pint of beer (10-25 minutes), does it time out? If so, what it the message? Are you using JBoss 3.0.2? If not, upgrade.
If you can't make it go away, post a reproduceable test case in a bug report at sourceforge. -
2. Re: Hanging while calling create()
panda007 Oct 8, 2002 9:28 AM (in response to isekh)Im having the same problem. no exceptions are thrown. has anyone figured it out?
-
3. Re: Hanging while calling create()
aloubyansky Oct 8, 2002 11:33 AM (in response to isekh)what should I do to reproduce it?
-
4. Re: Hanging while calling create()
panda007 Oct 8, 2002 12:02 PM (in response to isekh)heres what im doing.
public static Context getHTTPClientInitialContext()
throws javax.naming.NamingException {
Properties p = new Properties();
p.put(javax.naming.Context.PROVIDER_URL, "http://www.somesite.com:8080/invoker/JNDIFactory");
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
return new javax.naming.InitialContext(p);
}
try {
System.out.println("3");
Context ctx = EJBHelper.getHTTPClientInitialContext();
Object obj = ctx.lookup("ejb/RemoteHome");
System.out.println("4");
RemoteHome sHome =
(RemoteHome)PortableRemoteObject.narrow(obj, RemoteHome.class);
System.out.println("5");
RemoteRemote remoteconv = sHome.create();<--freezes here
System.out.println("6");
} catch (catch exceptions) .........
The server is running behind a firewall. The firewall opens/forwards port 8080. Everything is logged up to "6" where it just drops/hangs. Nothing is thrown. no messages. nothing is logged in server.log. stack trace is empty. -
5. Re: Hanging while calling create()
aloubyansky Oct 8, 2002 12:35 PM (in response to isekh)Probably, the problem is with firewall.
If you specified 8080 in provider url it doesn't mean ejb calls will use this port. They will use port 4444 by default, AFAIK.
Consider using http-invoker instead of jrmp. -
6. Re: Hanging while calling create()
panda007 Oct 8, 2002 3:37 PM (in response to isekh)Could you point me in the direction of http-invoker information and how to use it. Thanks.
-
7. Re: Hanging while calling create()
panda007 Oct 8, 2002 3:48 PM (in response to isekh)I thought i was using http-invoker. How do i implement http-invoker? can you point in the direction of some docs or examples. I had no idea i was using jrmp. thanks.
-
8. Re: Hanging while calling create()
panda007 Oct 8, 2002 3:50 PM (in response to isekh)i thought i was using http-invoker in the example i provided. can you point me in the direction of some good docs or examples on http-invoker. i had no idea i was using jrmp. thanks.
-
9. Re: Hanging while calling create()
panda007 Oct 8, 2002 3:51 PM (in response to isekh)i thought i was using http-invoker in the example i provided. can you point me in the direction of some good docs or examples on http-invoker. i had no idea i was using jrmp. thanks.
-
10. Re: Hanging while calling create()
panda007 Oct 8, 2002 3:53 PM (in response to isekh)i thought i was using http-invoker in the example in provided. can you show me where i can get some docs on implemente http-invoker and some examples. i had no idea i was using frmp. thanks.