1 /*
2 * @(#)ConnectionFactoryImpl.java
3 *
4 * JFoxMQ the open source JMS MOM.
5 *
6 * Corpyright 2002-2003 Huihoo Power, Inc. All Rights Reserved. This software
7 * is licensed under LGPL license.
8 *
9 * For more information, please visit: http://www.huihoo.org
10 */
11
12 package org.huihoo.jfox.ms.jms.base;
13
14 import javax.jms.ConnectionFactory;
15 import javax.naming.Reference;
16 import javax.naming.StringRefAddr;
17
18 /***
19 * <p>
20 * Implementation of javax.jms.ConnectionFactory
21 * </p>
22 *
23 * @author <a href="mailto:founder_chen@yahoo.com.cn">Peter.Cheng</a>
24 * @version Revision: 1.1 Date: 2002-12-08 19:22:15
25 */
26
27 public abstract class ConnectionFactoryImpl implements ConnectionFactory {
28
29 private String serverURL;
30
31 public ConnectionFactoryImpl() {
32 }
33
34 public ConnectionFactoryImpl(String url) {
35 this.serverURL = url;
36 }
37
38 /***
39 * GetReference method - to implement javax.naming.Refrenceable
40 *
41 * @return The Reference value
42 * @exception javax.naming.NamingException
43 * Description of Exception
44 */
45 public Reference getReference() throws javax.naming.NamingException {
46 return new Reference(
47 this.getClass().getName(),
48 new StringRefAddr("CFUrl", serverURL),
49 ConnectionFactoryObjectFactory.class.getName(),
50 null);
51 }
52
53 }
This page was automatically generated by Maven