How would I use the sun-ejb-jar.xml to assign a factory and message queue to a publisher Session bean?
[b]I've tried but am getting this errors:[/b]
This bean [FabToHubSenderSBean] has no resource reference by the name of [xxx]
"DPL8007: Invalid Deployment Descriptors element jndi-name value jms/FabSan01Factory"
This ejb [FabToHubSenderSBean] has no message destination reference by the name of [yyy]
"DPL8007: Invalid Deployment Descriptors element jndi-name value jms/FabSan01ToHubQueue"
...
NAM0008 : Invalid Destination: yyy for java:comp/env/com.ilmn.dam.fab.jms.FabToHubSenderSBean/queue
EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException: yyy not found]]
[b]In my bean:[/b]
@Stateless
@Local({FabToHubSenderLocal.class})
@Remote({FabToHubSenderRemote.class})
public class FabToHubSenderSBean implements FabToHubSenderLocal, FabToHubSenderRemote
{
@Resource(mappedName = "zzz")
private ConnectionFactory connectionFactory;
@Resource(mappedName = "yyy")
private Queue queue;
[b]In my sun-ejb-jar.xml:[/b]
<ejb>
<ejb-name>FabToHubSenderSBean</ejb-name>
<resource-ref>
<res-ref-name>xxx</res-ref-name>
<jndi-name>jms/FabSan01Factory</jndi-name>
</resource-ref>
<message-destination-ref>
<message-destination-ref-name>yyy</message-destination-ref-name>
<jndi-name>jms/FabSan01ToHubQueue</jndi-name>
</message-destination-ref>
</ejb>
[Message sent by forum member 'frenchdrip' (frenchdrip)]
http://forums.java.net/jive/thread.jspa?messageID=244196