I have a problem while trying to call my ejb3 existing in JBoss 7 module from my war file. Please have a look on following details-
Here is Local interface-
package com.uniteller.switchcore.cs.iface;
import javax.ejb.Local;
import javax.ejb.Remote;
@Local
public interface CSTimer {
     public boolean init(  );
}
EJB:
package com.uniteller.switchcore.cs.impl;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
    @Stateless
    @LocalBean
    public class CSTimerBean implements CSTimer {
        public CSTimerBean() {
            // TODO Auto-generated constructor stub
        }
        @Override
        public boolean init() {
    //Some log statements
    }
}
both interface and bean are in side the jboss as 7 module (JBOSS_HOME/modules/com.xxx.switch.main) within Switch.jar.
Now my problem is, I am trying to call it from a war (SwitchMain.war) but getting following exception-
12:50:41,593 ERROR [stderr] (MSC service thread 1-4) javax.naming.NameNotFoundException: ejb:/UFSwitch/CSTimerBean!com.uniteller.switchcore.cs.iface.CSTimer -- service jboss.naming.
Please help me to solve this issue.
Thanks in advance.