Kbase 20096: SonicMQ Adapter Administered Objects in JNDI
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/02/2011 |
|
SUMMARY:
This solution explains how to resolve the error "A public
jmsfrom4gl.AdminObjectFinder class was not found". Java Message
Service (JMS) administered objects are created dynamically and might appear in the server.log of your Progress SonicMQ Adapter.
EXPLANATION:
When you start the SonicMQ Adapter either from the Progress Explorer Tool or via the command line utility ADAPTMAN, the above-mentioned error might appear. The reason for this is that the class AdminObjectFinder is mandatory.
SOLUTION:
The following code is the skeleton of the
jmsfrom4gl.AdminObjectFinder.class that a 4GL/JMS user implements and installs on the SonicMQ Adapter host. For additional information review the SonicMQ documentation.
package jmsfrom4gl;
import javax.jms.TopicConnectionFactory;
import javax.jms.QueueConnectionFactory;
import javax.jms.Topic;
import javax.jms.Queue;
public class AdminObjectFinder
{
public TopicConnectionFactory getTopicConnectionFactory(String name)
throws Exception
{
TopicConnectionFactory factory = null;
// Write code to populate factory
return factory;
}
public QueueConnectionFactory getQueueConnectionFactory(String name)
throws Exception
{
QueueConnectionFactory factory = null;
// Write code to populate factory
return factory;
}
public Topic getTopic(String name) throws Exception
{
Topic topic = null;
// Write code to populate topic
return topic;
}
public Queue getQueue(String name) throws Exception
{
Queue queue = null;
// Write code to populate queue
return queue;
}
}
Reference to Written Documentation:
Progress Version 9.1B Product Update Bulletin, Section 6.4