users@glassfish.java.net

Re: _at_Webservice and JMS _at_Resource

From: <glassfish_at_javadesktop.org>
Date: Tue, 25 Sep 2007 23:09:52 PDT

Hey, thanks for the reply, I've just downloaded Sun App. Server 9.1 and I'm still getting the same problem. Here's my webservice class:

package com.example.proxy;

import java.math.*;
import java.util.*;

import javax.annotation.*;
import javax.ejb.*;
import javax.jms.*;
import javax.jms.Queue;
import javax.jws.*;

@Stateless
@WebService(endpointInterface="com.example.proxy")
public class DispatchServiceImpl implements MessageDispatcher {

  @Resource(mappedName = "jms/ConnectionFactory")
  private ConnectionFactory connectionFactory;

  @Resource(mappedName = "jms/Queue")
  private Queue queue;

  @WebMethod
  public List<MessageCountType> startDispatch(String receiverId,
    if (queue == null && connectionFactory == null) {
      System.out.println("queue and connectionFactory are null");
    }

    return null;
  }
}

Thanks,
Mark
[Message sent by forum member 'markshure' (markshure)]

http://forums.java.net/jive/thread.jspa?messageID=237079