1 22 package org.jboss.mq.il.rmi; 23 24 import javax.jms.Destination ; 25 import javax.jms.JMSException ; 26 import javax.jms.Queue ; 27 import javax.jms.TemporaryQueue ; 28 import javax.jms.TemporaryTopic ; 29 import javax.jms.Topic ; 30 31 import org.jboss.mq.AcknowledgementRequest; 32 import org.jboss.mq.ConnectionToken; 33 import org.jboss.mq.DurableSubscriptionID; 34 import org.jboss.mq.SpyDestination; 35 import org.jboss.mq.SpyMessage; 36 import org.jboss.mq.TransactionRequest; 37 import org.jboss.mq.il.Invoker; 38 import org.jboss.mq.il.ServerIL; 39 40 49 public class RMIServerIL extends java.rmi.server.UnicastRemoteObject implements RMIServerILRemote 50 { 51 52 53 private static final long serialVersionUID = -7793119336262492395L; 54 55 private transient Invoker server; 57 58 64 public RMIServerIL(Invoker s) 65 throws java.rmi.RemoteException 66 { 67 server = s; 68 } 69 70 75 public void setConnectionToken(ConnectionToken newConnectionToken) 76 { 77 } 79 80 87 public void setEnabled(ConnectionToken dc, boolean enabled) 88 throws Exception 89 { 90 server.setEnabled(dc, enabled); 91 } 92 93 99 public String getID() 100 throws JMSException 101 { 102 return server.getID(); 103 } 104 105 112 public TemporaryQueue getTemporaryQueue(ConnectionToken dc) 113 throws JMSException 114 { 115 return server.getTemporaryQueue(dc); 116 } 117 118 125 public TemporaryTopic getTemporaryTopic(ConnectionToken dc) 126 throws JMSException 127 { 128 return server.getTemporaryTopic(dc); 129 } 130 131 137 public ServerIL cloneServerIL() 138 { 139 return this; 140 } 141 142 149 public void addMessage(ConnectionToken dc, SpyMessage val) 150 throws JMSException 151 { 152 server.addMessage(dc, val); 153 } 154 155 163 public Topic createTopic(ConnectionToken dc, String dest) 164 throws JMSException 165 { 166 return server.createTopic(dc, dest); 167 } 168 169 177 public Queue createQueue(ConnectionToken dc, String dest) 178 throws JMSException 179 { 180 return server.createQueue(dc, dest); 181 } 182 183 190 public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) 191 throws JMSException 192 { 193 server.deleteTemporaryDestination(dc, dest); 194 } 195 196 202 public void checkID(String ID) 203 throws JMSException 204 { 205 server.checkID(ID); 206 } 207 208 214 public void connectionClosing(ConnectionToken dc) 215 throws JMSException 216 { 217 server.connectionClosing(dc); 218 } 219 220 228 public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) 229 throws Exception , java.rmi.RemoteException 230 { 231 server.acknowledge(dc, item); 232 } 233 234 243 public SpyMessage[] browse(ConnectionToken dc, Destination dest, String selector) 244 throws Exception 245 { 246 return server.browse(dc, dest, selector); 247 } 248 249 258 public SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) 259 throws Exception 260 { 261 return server.receive(dc, subscriberId, wait); 262 } 263 264 271 public void unsubscribe(ConnectionToken dc, int subscriptionId) 272 throws Exception 273 { 274 server.unsubscribe(dc, subscriptionId); 275 } 276 277 283 public void destroySubscription(ConnectionToken dc,DurableSubscriptionID id) 284 throws Exception 285 { 286 server.destroySubscription(dc,id); 287 } 288 289 297 public String checkUser(String userName, String password) 298 throws JMSException 299 { 300 return server.checkUser(userName, password); 301 } 302 303 public String authenticate(String userName, String password) 304 throws JMSException 305 { 306 return server.authenticate(userName, password); 307 } 308 315 public void subscribe(ConnectionToken dc, org.jboss.mq.Subscription s) 316 throws Exception 317 { 318 server.subscribe(dc, s); 319 } 320 321 328 public void transact(org.jboss.mq.ConnectionToken dc, TransactionRequest t) 329 throws JMSException 330 { 331 server.transact(dc, t); 332 } 333 334 341 public void ping(org.jboss.mq.ConnectionToken dc, long clientTime) 342 throws JMSException 343 { 344 server.ping(dc, clientTime); 345 } 346 } 347 348 349 350 351 | Popular Tags |