Originally posted by Abhijith Prabhakar:
Any specific reason behind this? I am curious as Oreilly book doesn't state any such annotation to be added
By default, if you are deploying the bean in an ear file, then JBoss binds the beans to a jndi-name which is like "earName/BeanImplementationClassName/remote" (for local it is earName/BeanImplementationClassName/local). Ex: myApp/TestBean/remote. If you are deploying the bean in a jar file then the default jndi-name is BeanImplementationClassName/remote (and BeanImplementationClassName/local for local interface). Ex: TestBean/remote.
You can use these default jndi-names to do the lookup or else specify your own jndi-names for the beans. You followed the latter approach by using the @RemoteBinding annotation