[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-823) Unable to call ejb remotely
Sureshbabu Thyvalappil (JIRA)
jira-events at jboss.com
Wed Jan 17 06:47:52 EST 2007
[ http://jira.jboss.com/jira/browse/EJBTHREE-823?page=comments#action_12351023 ]
Sureshbabu Thyvalappil commented on EJBTHREE-823:
-------------------------------------------------
Appreciate your email. I'm puzzled why it is not
working for me !! Any tips will be appreciated. I've
couple of questions though..
1) When you tried to reproduce it, did you try to
access the ejb3 running on the same computer? or was
it running on another computer?
2) I've exposed the slsb as a web service using
annotations. Is it possible that it is not working
when slsb is exposed as a web service?
Thanks
Suresh
--- "Carlo de Wolf (JIRA)" <jira-events at jboss.com>
http://jira.jboss.com/jira/browse/EJBTHREE-823?page=all
p.put(Context.PROVIDER_URL,"jnp://remote-host:1099");
System.out.println("report.resubmit.."+report.resubmit(null,0L));
http://jira.jboss.com/jira/secure/Administrators.jspa
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
> Unable to call ejb remotely
> ---------------------------
>
> Key: EJBTHREE-823
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-823
> Project: EJB 3.0
> Issue Type: Bug
> Environment: JBOSS 4.0.5 with EJB 3.0
> Reporter: Sureshbabu Thyvalappil
> Assigned To: Carlo de Wolf
>
> I'm using JBOSS 4.0.5GA with ejb3. I am running into weird behavior when running java client from remote machine. If I run it from the same machine where the jboss server is running, no problem. So here is the behavior I'm noticing.
> FOr the jndi lookup of ejb, it is connecting the remote server and gets a reference to the ejb. But when I call a method on the ejb reference, it is trying to call a method on the local machine( I mean the same machine where the client is running).
> Sounds very weird to me. Any help is appreciated from EJB3 experts.
> I upgraded to EJB3 RC9 patch1, but same behavior.
> Here is the client code ..
> try
> {
> Properties p=new Properties();
> p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
> p.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
> p.put(Context.PROVIDER_URL,"jnp://remote-host:1099");
> InitialContext ctx = new InitialContext(p);
> IReportService report = (IReportService) ctx.lookup(
> "ejb3/xxx/ReportService");
> System.out.println("Got the ejb remote reference = "+report);
> System.out.println("report.resubmit.."+report.resubmit(null,0L));
> ReportJob reportJob = new ReportJob();
> System.out.println("B4 report.submitRequest..");
> report.submitRequest(reportJob);
> System.out.println("After report.submitRequest..");
> }
> catch (Exception e)
> {
> e.printStackTrace();
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list