hi all
i am getting an error when i called a remote method of java class using flex blazeds the error is as---
Fault Received[FaultEvent fault=[RPC Fault faultString="[MessagingError message='Destination 'loginService' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'loginService'"] messageId="19CAC60C-F8A8-E6D5-7C4E-7DEE518934ED" type="fault" bubbles=false cancelable=true eventPhase=2]
Below i am pasting my source files as----
public class SecureLoginBD extends BaseDelegate {
public SecureLoginBD() throws Exception {
super();
}
public boolean checkLogin(String userName,String password ) throws ALMSServiceProviderException {
boolean result = false;
System.out.println("Inside The BD @@@@@@@@@@@@@@");
ALMSServiceProvider testLocator = getServiceLocator();
UserRemote userRemote = (UserRemote)testLocator.getProxyRemote("UserRemoteImplementation/remo te",UserRemote.class);
result = userRemote.isAuthenticationPassed(userName, password);
return result;
}}
Remote -congig file is as--
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="loginService">
<properties>
<source>org.techsystems.alms.ejb.businessdeligate.common.SecureLoginBD </source>
</properties>
</destination>
</service>