[jboss-jira] [JBoss JIRA] (AS7-6410) Session beans are not bound to JNDI if there is a remote interface for a stateless bean

jaikiran pai (JIRA) jira-events at lists.jboss.org
Fri Feb 8 08:48:51 EST 2013


    [ https://issues.jboss.org/browse/AS7-6410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753011#comment-12753011 ] 

jaikiran pai commented on AS7-6410:
-----------------------------------

I just tested this against 7.1.1.Final with the deployment you attached (I uncommented the @Remote which you had commented) and it deployed fine and printed the JNDI bindings:

{quote}
19:16:02,056 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "bugrepro.ear"
19:16:02,100 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "bugrepro.jar"
19:16:02,214 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named BugReproductionBean in deployment unit subdeployment "bugrepro.jar" of deployment "bugrepro.ear" are as follows:

	java:global/bugrepro/bugrepro/BugReproductionBean!BugReproductionRemote
	java:app/bugrepro/BugReproductionBean!BugReproductionRemote
	java:module/BugReproductionBean!BugReproductionRemote
	java:jboss/exported/bugrepro/bugrepro/BugReproductionBean!BugReproductionRemote
	java:global/bugrepro/bugrepro/BugReproductionBean
	java:app/bugrepro/BugReproductionBean
	java:module/BugReproductionBean

19:16:02,298 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
19:16:02,302 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 17389ms - Started 226 of 307 services (80 services are passive or on-demand)
19:16:02,434 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "bugrepro.ear"
{quote}

The bean and interfaces look like:

{code}
import javax.ejb.Stateless;

@Stateless
public class BugReproductionBean implements BugReproductionRemote {
    @Override
    public void method() {
        // Empty
    }
}

{code}

{code}
import javax.ejb.Remote;

@Remote
public interface BugReproductionRemote {
    public void method() throws java.rmi.RemoteException;
}

{code}

Are you using a clean AS 7.1.1?


                
> Session beans are not bound to JNDI if there is a remote interface for a stateless bean
> ---------------------------------------------------------------------------------------
>
>                 Key: AS7-6410
>                 URL: https://issues.jboss.org/browse/AS7-6410
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB, Naming, Remoting
>    Affects Versions: 7.1.1.Final
>         Environment: Ubuntu 12.10
>            Reporter: Jari Juslin
>            Assignee: jaikiran pai
>         Attachments: bugrepro.zip
>
>
> I have a session bean inside a jar, which in turn is inside an ear. If the session bean's interface is market with @Remote, JBoss 7.1.1 does not bind any beans in the package to JNDI. Change the @Remote to @Local or comment it out and binding takes place.
> The binding was checked both programmatically and from JBoss Management Console.
> No errors messages are printed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list