You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by wi...@apache.org on 2005/06/24 19:12:28 UTC

svn commit: r201653 - /incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java

Author: wire
Date: Fri Jun 24 10:12:27 2005
New Revision: 201653

URL: http://svn.apache.org/viewcvs?rev=201653&view=rev
Log:
Now uses common configuration UI from other apps.

Modified:
    incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java

Modified: incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java?rev=201653&r1=201652&r2=201653&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java (original)
+++ incubator/muse/trunk/src/ieeedemo/client/src/org/apache/interop/smgr/BlackBerryApp.java Fri Jun 24 10:12:27 2005
@@ -35,6 +35,7 @@
 
 import javax.swing.JSplitPane;
 import javax.xml.namespace.QName;
+import org.apache.interop.common.LocationJPanel;
 /**
 * This code was generated using CloudGarden's Jigloo
 * SWT/Swing GUI Builder, which is free for non-commercial
@@ -50,14 +51,14 @@
 * *************************************
 */
 public class BlackBerryApp extends javax.swing.JFrame implements ConnectionListener,MessageListener {
-	private SubsciberInfoJPanel subsciberInfoJPanel;
+	private LocationJPanel subsciberInfoJPanel;
 	private JSplitPane jSplitPaneParts;
 	private BackberryJPanel backberryJPanel;
 	private NotificationListener m_listener;
     private ResourceStub m_resource;
     private StringBuffer m_buffer=new StringBuffer();
 	private MessageWorker m_messageWorker;
-
+	private QName NOTIFICATION_TOPIC= new QName("http://rim.pda","CodeModuleSize");
 
 	/**
 	* Auto-generated main method to display this JFrame
@@ -82,16 +83,13 @@
 				jSplitPaneParts = new JSplitPane();
 				this.getContentPane().add(jSplitPaneParts, BorderLayout.CENTER);
 				jSplitPaneParts.setOrientation(JSplitPane.VERTICAL_SPLIT);
-				jSplitPaneParts.setDividerLocation(110);
+				jSplitPaneParts.setDividerLocation(60);
 				jSplitPaneParts.setPreferredSize(new java.awt.Dimension(392, 319));
 				{
-					subsciberInfoJPanel = new SubsciberInfoJPanel();
+					subsciberInfoJPanel = new LocationJPanel("SMgr");
 					jSplitPaneParts.add(subsciberInfoJPanel, JSplitPane.LEFT);
 					FlowLayout subsciberInfoJPanelLayout = new FlowLayout();
-					subsciberInfoJPanel.setResourceUrl("http://192.168.2.171:4400/ettk/wsdm/services/ADMSubscribePort");
-					subsciberInfoJPanel.setNotificationLister("http://192.168.2.120:8003/bogasendpoint");
 					subsciberInfoJPanelLayout.setAlignment(FlowLayout.LEFT);
-					subsciberInfoJPanel.setLayout(subsciberInfoJPanelLayout);
 				}
 				{
 					backberryJPanel = new BackberryJPanel();
@@ -110,8 +108,10 @@
         try {
         	startListener();
         	// Subscribe
-			m_resource = new ResourceStub( getEpr(subsciberInfoJPanel.getResourceUrl(),null) );
-			EndpointReference response = m_resource.subscribe(subsciberInfoJPanel.getNotificationLister(),new QName(subsciberInfoJPanel.getTopicNamespace(),subsciberInfoJPanel.getTopicName()));
+        	//blackberry-epr.xml
+			//m_resource = new ResourceStub( getEpr(subsciberInfoJPanel.getResourceUrl(),null) );
+			m_resource = new ResourceStub( subsciberInfoJPanel.getEpr("blackberry-epr.xml") );			
+			EndpointReference response = m_resource.subscribe(subsciberInfoJPanel.getListenerEndpointURL(),NOTIFICATION_TOPIC);
 			
 			
 		} catch (XmlException e) {
@@ -152,7 +152,7 @@
 	
 	public void startListener() throws IOException{
 		m_messageWorker=new MessageWorker(this,m_buffer);
-		m_listener=new NotificationListener(8000,600000,m_buffer);
+		m_listener=new NotificationListener(subsciberInfoJPanel.getListenerPort(),600000,m_buffer);
 		m_listener.setCloseSocketAfterNotification(false);
 		m_messageWorker.start();
 		m_listener.start();



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org