java ee - EJB lookup - Failed to create remoting connection -


I have a problem with my EJB lookup, all the work in the servlet is fine, but I have to connect with AJB to the remote client .

The deployment console log:

  java: global / easymenu-webappEAR / EasyMenu / CounterBean sk.jbase.projects.easymenu.CounterBeanRemote Java app / EasyMenu / CounterBean! Sk.jbase.projects.easymenu.CounterBeanRemote java: Module / CounterBin! Sk.jbase.projects.easymenu.CounterBeanRemote java: jboss / exported / easymenu-webappEAR / EasyMenu / CounterBin! Sk.jbase.projects.easymenu.CounterBeanRemote java: global / easymenu-webappEAR / EasyMenu / CounterBean Java app / EasyMenu / CounterBean java: module / CounterBean   

I ejbmodule the webapp (I do not Know how it separates)

Getting the Reference:

  Public static initial syntax throws the getInitialContext (string URL) NamingException {Properties property = new properties (); Properties.setProperty (Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming"); Properties.setProperty (Context. PROVIDER_URL, url); Properties.setProperty (reference INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory"); Properties.setProperty (Context.SECURITY_PRINCIPAL, "pch"); Properties.setProperty (Ref. SECURITY_CREDENTIALS, "peterch"); Return the new initial contexts (properties); }   

Lookup:

  Kountrbenarimot CRR = (Kountrbenramote) Srvisoletr .getInitialContext ( "Remote: // Sthaniyhost: 8080") .lookup ( "java: App / EasyMenu / CounterBin! "+ CounterBenRimote.clash.getNeam ()); System.out.println ("Result:" + cbr.getMessage ());   

Exceptions March 20, 2013 10:27:04 PM org.xnio.xnio & lt; Clinit & gt; Info: XNIO version 3.0.3.GA March 20, 2013 10:27:04 PM org.xnio.nio.NioXnio & lt; Clinit & gt; Info: XNIO NIO implementation version 3.0.3.GA March 20, 2013 10:27:04 PM org.jboss.remoting3.EndpointImpl & lt; Clinit & gt; Info: JBoss Remote Edition 3.2.3.GA javax.naming.NamingException: Failed to create remote connection [Route exception is java.lang.RuntimeException: Operation status failed with wait] at org.jboss.naming.remote.client.ClientUtil . namingException (ClientUtil.java:36) on javax.naming on org.jboss.naming.remote.client.InitialContextFactory.getInitialContext (InitialContextFactory.java:121) javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:684) . InitialContext.getDefaultInitCtx (InitialContext.java:307) javax.naming.InitialContext.init (InitialContext.javaaxy42) is on javax.naming.InitialContext & lt;. Init & gt; (InitialContext.java:216) on .easymenu.client.EasyMenuClient.getInitialContext sk.jbase.projects.easymenu.client.EasyMenuClient.main on sk.jbase.projects (EasyMenuClient.java:58) (EasyMenuClient.java:38) because: java.lang.RuntimeException: operation status failed with waiting at org.jboss.naming.remote.protocol.IoFutureHelper.get (IoFutureHelper.java:89) (Namkrnkremokclaitknmingstorkaskgetremotnamingstor on org.jboss NamingStoreCache.java:56) on org.jboss.naming.remote.client.InitialContextFactory on org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore (InitialContextFactory.java:166). Org.jboss.naming.remote.client.InitialContextFactory.getInitialContext (InitialContextFactory.java:104) on GetOrCreateNamingStore (InitialContextFactory.java:139) ... 6 more

< Div class = "post-text" itemprop = "text">

Which JBoss version do you use? JBoss 7.1 is the default remote port 4447 and you have the java should use the URL: jboss / exported / If you have one you URL, use "org.jboss.ejb.client.naming" "Ijb:" prefix and properties which are usually in the file requires jboss-ejb-client.properties.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -