00001 package com.scalagent.joram.osgi.client.service;
00002
00003 import java.io.Reader;
00004 import java.util.List;
00005 import java.util.Hashtable;
00006
00007 import javax.naming.Context;
00008
00009 import org.objectweb.joram.client.jms.ConnectionFactory;
00010 import org.objectweb.joram.client.jms.Queue;
00011 import org.objectweb.joram.client.jms.Topic;
00012
00016 public interface JoramClient {
00020 public void connect(String host, int port,
00021 String name, String password,
00022 int cnxTimer) throws Exception;
00023
00027 public void disconnect();
00028
00032 public ConnectionFactory getTcpConnectionFactory(String hostname, int port) throws Exception;
00033
00037 public Context getInitialContext() throws Exception;
00038
00042 public Context getInitialContext(Hashtable prop) throws Exception;
00043
00047 public boolean executeAdminXML(Reader reader) throws Exception;
00048
00054 public void createUser(String name, String password) throws Exception;
00055
00064 public Queue createQueue(String name) throws Exception;
00065
00072 public Topic createTopic(String name) throws Exception;
00073
00077 public List getDestinations() throws Exception;
00078
00082 public List getUsers() throws Exception;
00083 }