1 package com.scalagent.joram.osgi.client.service; 2 3 import java.io.Reader ; 4 import java.util.List ; 5 import java.util.Hashtable ; 6 7 import javax.naming.Context ; 8 9 import org.objectweb.joram.client.jms.ConnectionFactory; 10 import org.objectweb.joram.client.jms.Queue; 11 import org.objectweb.joram.client.jms.Topic; 12 13 16 public interface JoramClient { 17 20 public void connect(String host, int port, 21 String name, String password, 22 int cnxTimer) throws Exception ; 23 24 27 public void disconnect(); 28 29 32 public ConnectionFactory getTcpConnectionFactory(String hostname, int port) throws Exception ; 33 34 37 public Context getInitialContext() throws Exception ; 38 39 42 public Context getInitialContext(Hashtable prop) throws Exception ; 43 44 47 public boolean executeAdminXML(Reader reader) throws Exception ; 48 49 54 public void createUser(String name, String password) throws Exception ; 55 56 64 public Queue createQueue(String name) throws Exception ; 65 66 72 public Topic createTopic(String name) throws Exception ; 73 74 77 public List getDestinations() throws Exception ; 78 79 82 public List getUsers() throws Exception ; 83 } 84 | Popular Tags |