[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Application Server Integration Tests

adrian@jboss.org do-not-reply at jboss.com
Mon Oct 2 11:16:32 EDT 2006


I suggested to Ovidiu over a year ago that we should write
an admin layer based on JMS which would have greatly
simplified this task.

And would have also provided a unified management layer
for both JBossMQ and JBoss Messaging.

psuedo code:

  | Queue managementQueue = jndi.lookup("jmsadmin/AdminQueue");
  | QueueRequestor r = new QueueRequestor(managementQueue);
  | Message m = session.createMapMessage();
  | m.setString("operation", "createQueue");
  | m.setString("queueName", "testQueue");
  | m.setInteger("queueDepth", 1000);
  | Message response = r.request(m);
  | 
  | Message m = session.createMapMessage();
  | m.setString("operation", "addUser");
  | m.setString("user", "ovidiu");
  | m.setString("password", "ovidiu");
  | m.setString("roles", "guest,subscriber,admin");
  | Message response = r.request(m);
  | 
  | etc.
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975526#3975526

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975526



More information about the jboss-dev-forums mailing list