You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2009/05/23 04:11:04 UTC

svn commit: r777767 - in /webservices/juddi/branches/v3_trunk/juddi-console: ./ juddi-portal/ subscription-listener/ subscription-listener/src/ subscription-listener/src/main/ subscription-listener/src/main/java/ subscription-listener/src/main/java/org...

Author: tcunning
Date: Sat May 23 02:11:03 2009
New Revision: 777767

URL: http://svn.apache.org/viewvc?rev=777767&view=rev
Log:
JUDDI-196
Commit subscription listener.

Added:
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/pom.xml
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/NotifyServlet.java
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/persistence.xml
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/beans.xml
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/log4j.properties
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/web.xml
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/index.jsp
    webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/juddi.css
Modified:
    webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/build.xml
    webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/pom.xml
    webservices/juddi/branches/v3_trunk/juddi-console/pom.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDIBrowser.gwt.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISearch.gwt.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISubscriptionNotification.gwt.xml
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyResponse.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyService.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/NotifyServiceImpl.java

Modified: webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/build.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/build.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/build.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/build.xml Sat May 23 02:11:03 2009
@@ -12,6 +12,7 @@
 		<copy file="${basedir}/pluto.xml" todir="${conf.dir}/Catalina/localhost"/>
 		<unzip dest="${webapps.dir}/pluto" src="${dependency.pluto-portal.war}"/>
 		<unzip dest="${webapps.dir}/uddi-portlets" src="${dependency.uddi-portlets.war}"/>
+		<unzip dest="${webapps.dir}/subscription-listener" src="${dependency.subscription-listener.war}"/>
 		<!--
 		<copy file="${basedir}/pluto-portal-driver-config.xml" todir="${webapps.dir}/pluto/WEB-INF"/>
 		-->

Modified: webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/pom.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/juddi-portal/pom.xml Sat May 23 02:11:03 2009
@@ -41,7 +41,13 @@
 	    <artifactId>uddi-portlets</artifactId>
 	    <version>3.0.0-SNAPSHOT</version>
 	    <type>war</type>
-     </dependency>
+    </dependency>
+    <dependency>
+    	    <groupId>org.apache.juddi</groupId>
+    	    <artifactId>subscription-listener</artifactId>
+    	    <version>3.0.0-SNAPSHOT</version>
+    	    <type>war</type>
+    </dependency>
     <dependency>
 	    <groupId>org.apache.pluto</groupId>
 	    <artifactId>pluto-portal</artifactId>
@@ -146,6 +152,7 @@
 		       <property name="dependency.pluto-portal.war"  value="${maven.dependency.org.apache.pluto.pluto-portal.war.path}"/>
 		       <property name="dependency.portlet-api.jar"  value="${maven.dependency.javax.portlet.portlet-api.jar.path}"/>
 		       <property name="dependency.uddi-portlets.war"  value="${maven.dependency.org.apache.juddi.uddi-portlets.war.path}"/>
+		       <property name="dependency.subscription-listener.war" value="${maven.dependency.org.apache.juddi.subscription-listener.war.path}"/>
 		       <property name="dependency.juddi-tomcat.zip" value="${maven.dependency.org.apache.juddi.juddi-tomcat.zip.path}"/>
 		       <ant antfile="${basedir}/build.xml">
                   <target name="package-tomcat"/>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/pom.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/pom.xml Sat May 23 02:11:03 2009
@@ -52,6 +52,7 @@
   </distributionManagement>
   <modules>
     <module>uddi-portlets</module>
+    <module>subscription-listener</module>
     <module>juddi-portal</module>
   </modules>
    <build>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/pom.xml?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/pom.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/pom.xml Sat May 23 02:11:03 2009
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright 2001-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.juddi</groupId>
+    <artifactId>juddi-console</artifactId>
+    <version>3.0.0.SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.juddi</groupId>
+  <artifactId>subscription-listener</artifactId>
+  <version>3.0.0-SNAPSHOT</version>
+  <name>jUDDI Subscription Listener</name>
+  <packaging>war</packaging>
+  <repositories>
+    <!-- for jaxb-impl -->
+    <repository>
+      <id>java.net</id>
+      <url>http://download.java.net/maven/1/</url>
+      <layout>legacy</layout>
+    </repository>
+  </repositories>
+  <properties>
+    <cxf.version>2.1.3</cxf.version>
+  </properties>
+  <dependencies>
+    <dependency>
+      <artifactId>juddi-core</artifactId>
+      <groupId>org.apache.juddi</groupId>
+      <version>3.0.0.SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.5</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.cxf</groupId>
+      <artifactId>cxf-rt-frontend-jaxws</artifactId>
+      <version>${cxf.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.cxf</groupId>
+      <artifactId>cxf-rt-transports-http</artifactId>
+      <version>${cxf.version}</version>
+      <exclusions>
+	   <exclusion>
+	     <groupId>cglib</groupId>
+	     <artifactId>cglib</artifactId>
+	   </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>cglib</groupId>
+      <artifactId>cglib-nodep</artifactId>
+      <version>2.1_3</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <finalName>juddi</finalName>
+    <plugins>	
+      <plugin>
+	    <groupId>org.apache.maven.plugins</groupId>
+	    <artifactId>maven-antrun-plugin</artifactId>
+		<version>1.3</version>
+		<executions>
+		 <execution>
+		 </execution>
+		</executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/NotifyServlet.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/NotifyServlet.java?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/NotifyServlet.java (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/java/org/apache/juddi/NotifyServlet.java Sat May 23 02:11:03 2009
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2001-2009 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi;
+
+import java.io.*;
+import java.util.Vector;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.apache.commons.configuration.ConfigurationException;
+import org.apache.juddi.config.AppConfig;
+import org.apache.log4j.Logger;
+import org.apache.juddi.util.NotificationList;
+
+
+/**
+ * This servlet is used to initialize the jUDDI webapp on
+ * startup and cleanup the jUDDI webapp on shutdown.
+ * 
+ * @author <a href="mailto:tcunning@apache.org">Tom Cunningham</a>
+ */
+public class NotifyServlet extends HttpServlet
+{
+	private static final long serialVersionUID = 1L;
+	private Logger log = Logger.getLogger(this.getClass());
+
+	public void doGet(HttpServletRequest request,
+			HttpServletResponse response) throws
+		ServletException, IOException {
+		StringBuffer sb = new StringBuffer();
+
+		Vector nl = NotificationList.getInstance().getNotifications();
+		if (nl.size() != 0) {
+			for (int i = 0; i<nl.size(); i++) {
+				sb.append(nl.get(i));
+			}	
+		}
+		nl.clear();
+		PrintWriter out = response.getWriter();
+		out.println(sb.toString());
+	}
+}

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/persistence.xml?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/persistence.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/resources/META-INF/persistence.xml Sat May 23 02:11:03 2009
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
+             version="1.0">
+  <persistence-unit name="juddiDatabase" transaction-type="RESOURCE_LOCAL">
+    <provider>org.hibernate.ejb.HibernatePersistence</provider>
+    <jta-data-source>java:comp/env/jdbc/JuddiDS</jta-data-source>
+        <!-- entity classes -->
+    <class>org.apache.juddi.model.Address</class>
+    <class>org.apache.juddi.model.AddressLine</class>
+    <class>org.apache.juddi.model.AuthToken</class>
+    <class>org.apache.juddi.model.BindingCategoryBag</class>
+    <class>org.apache.juddi.model.BindingDescr</class>
+    <class>org.apache.juddi.model.BindingTemplate</class>
+    <class>org.apache.juddi.model.BusinessCategoryBag</class>
+    <class>org.apache.juddi.model.BusinessDescr</class>
+    <class>org.apache.juddi.model.BusinessEntity</class>
+    <class>org.apache.juddi.model.BusinessIdentifier</class>
+    <class>org.apache.juddi.model.BusinessName</class>
+    <class>org.apache.juddi.model.BusinessService</class>
+    <class>org.apache.juddi.model.CategoryBag</class>
+    <class>org.apache.juddi.model.Contact</class>
+    <class>org.apache.juddi.model.ContactDescr</class>
+    <class>org.apache.juddi.model.DiscoveryUrl</class>
+    <class>org.apache.juddi.model.Email</class>
+    <class>org.apache.juddi.model.InstanceDetailsDescr</class>
+    <class>org.apache.juddi.model.InstanceDetailsDocDescr</class>
+    <class>org.apache.juddi.model.KeyedReference</class>
+    <class>org.apache.juddi.model.KeyedReferenceGroup</class>
+    <class>org.apache.juddi.model.OverviewDoc</class>
+    <class>org.apache.juddi.model.OverviewDocDescr</class>
+    <class>org.apache.juddi.model.PersonName</class>
+    <class>org.apache.juddi.model.Phone</class>
+    <class>org.apache.juddi.model.Publisher</class>
+    <class>org.apache.juddi.model.PublisherAssertion</class>
+    <class>org.apache.juddi.model.PublisherAssertionId</class>
+    <class>org.apache.juddi.model.ServiceCategoryBag</class>
+    <class>org.apache.juddi.model.ServiceDescr</class>
+    <class>org.apache.juddi.model.ServiceName</class>
+    <class>org.apache.juddi.model.Subscription</class>
+    <class>org.apache.juddi.model.SubscriptionChunkToken</class>
+    <class>org.apache.juddi.model.SubscriptionMatch</class>
+    <class>org.apache.juddi.model.Tmodel</class>
+    <class>org.apache.juddi.model.TmodelCategoryBag</class>
+    <class>org.apache.juddi.model.TmodelDescr</class>
+    <class>org.apache.juddi.model.TmodelIdentifier</class>
+    <class>org.apache.juddi.model.TmodelInstanceInfo</class>
+    <class>org.apache.juddi.model.TmodelInstanceInfoDescr</class>
+    <class>org.apache.juddi.model.TransferToken</class>
+    <class>org.apache.juddi.model.TransferTokenKey</class>
+    <class>org.apache.juddi.model.UddiEntity</class>
+    <class>org.apache.juddi.model.UddiEntityPublisher</class>
+
+    <properties>
+      <property name="hibernate.archive.autodetection" value="class"/>
+      <property name="hibernate.hbm2ddl.auto" value="update"/>
+      <property name="hibernate.show_sql" value="false"/>
+
+      <property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/>
+      
+      <!-- connection pool properties -->
+      <property name="hibernate.dbcp.maxActive" value="100"/>
+      <property name="hibernate.dbcp.maxIdle" value="30"/>
+      <property name="hibernate.dbcp.maxWait" value="10000"/>
+      
+    </properties>
+  </persistence-unit>
+</persistence>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/beans.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/beans.xml?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/beans.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/beans.xml Sat May 23 02:11:03 2009
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+	Licensed to the Apache Software Foundation (ASF) under one
+	or more contributor license agreements. See the NOTICE file
+	distributed with this work for additional information
+	regarding copyright ownership. The ASF licenses this file
+	to you under the Apache License, Version 2.0 (the
+	"License"); you may not use this file except in compliance
+	with the License. You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing,
+	software distributed under the License is distributed on an
+	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	KIND, either express or implied. See the License for the
+	specific language governing permissions and limitations
+	under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+  <import resource="classpath:META-INF/cxf/cxf.xml" />
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+  <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+  <jaxws:endpoint id="subscription-listener" implementor="org.apache.juddi.api.impl.UDDISubscriptionListenerImpl" address="/listener" 
+   serviceName="a:SubscriptionListenerService" endpointName="a:SubscriptionListenerServicePort" xmlns:a="urn:uddi-org:subr_v3_portType">
+    <jaxws:properties>
+      <entry key="schema-validation-enabled" value="true"/>
+    </jaxws:properties>
+  </jaxws:endpoint>
+
+</beans>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/log4j.properties
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/log4j.properties?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/log4j.properties (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/classes/log4j.properties Sat May 23 02:11:03 2009
@@ -0,0 +1,25 @@
+
+log4j.rootLogger=INFO, logfile
+
+# in case any output is given to stdout, format it
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
+
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=${catalina.home}/logs/juddi.log
+log4j.appender.logfile.MaxFileSize=512MB
+# Keep three backup files.
+log4j.appender.logfile.MaxBackupIndex=3
+# Pattern to output: date priority [category] - message
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
+
+#log4j.category.org.springframework.beans.property editors.CustomDateEditor=DEBUG
+
+log4j.debug=false
+
+# showing sql
+#log4j.category.org.hibernate.hql.ast.QueryTranslatorImpl=DEBUG
+#log4j.category.org.hibernate.SQL=DEBUG
+#log4j.category.org.hibernate.loader.hql.QueryLoad er=DEBUG 

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/web.xml?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/web.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/WEB-INF/web.xml Sat May 23 02:11:03 2009
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+	Licensed to the Apache Software Foundation (ASF) under one
+	or more contributor license agreements. See the NOTICE file
+	distributed with this work for additional information
+	regarding copyright ownership. The ASF licenses this file
+	to you under the Apache License, Version 2.0 (the
+	"License"); you may not use this file except in compliance
+	with the License. You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing,
+	software distributed under the License is distributed on an
+	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+	KIND, either express or implied. See the License for the
+	specific language governing permissions and limitations
+	under the License.
+-->
+<web-app>
+  <context-param>
+    <param-name>contextConfigLocation</param-name>
+    <param-value>WEB-INF/beans.xml</param-value>
+  </context-param>
+
+  <context-param>
+    <param-name>log4jConfigLocation</param-name>
+    <param-value>/WEB-INF/classes/log4j.properties</param-value>
+  </context-param>
+
+  <listener>
+    <listener-class>
+      org.springframework.web.context.ContextLoaderListener
+		</listener-class>
+  </listener>
+
+  <servlet>
+    <servlet-name>CXFServlet</servlet-name>
+    <display-name>CXF Servlet</display-name>
+    <servlet-class>
+      org.apache.cxf.transport.servlet.CXFServlet
+		</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+  
+   <servlet>
+    <servlet-name>NotifyServlet</servlet-name>
+    <display-name>Notify Servlet</display-name>
+    <servlet-class>
+      org.apache.juddi.NotifyServlet
+    </servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+  	<servlet-name>NotifyServlet</servlet-name>
+  	<url-pattern>/notify/*</url-pattern>
+  </servlet-mapping>
+
+   <servlet-mapping>
+    <servlet-name>CXFServlet</servlet-name>
+    <url-pattern>/services/*</url-pattern>
+   </servlet-mapping>
+</web-app>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/index.jsp?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/index.jsp (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/index.jsp Sat May 23 02:11:03 2009
@@ -0,0 +1,92 @@
+<%@ page session="false" %>
+<%@ page import="java.util.List,
+                 org.apache.juddi.config.Install,
+                 javax.xml.bind.JAXBException,
+                 org.uddi.v3_service.DispositionReportFaultMessage,
+                 org.apache.juddi.config.AppConfig,
+                 org.apache.juddi.config.Property,
+                 org.uddi.api_v3.BusinessEntity,
+                 org.uddi.api_v3.Name,
+                 org.uddi.api_v3.Description,
+                 java.io.IOException,
+                 org.apache.juddi.config.Release"
+%>
+
+<!-- index.jsp -->
+<html>
+<head>
+<title>Apache jUDDI Registry</title>
+<link rel="stylesheet" href="juddi.css" />
+</head>
+<body>
+<div class="header" align="right"><a href="http://ws.apache.org/juddi/" target="_top">jUDDI@Apache</a></div>
+<h1>Apache jUDDI version <%= Release.getRegistryVersion() %></h1>
+
+
+<h3><em>Welcome</em> to Apache jUDDI!</h3>
+<ul>
+    <li><a href="/pluto/portal/jUDDI">jUDDI Portal</a></li>
+    <li><a href="services">View</a> service listing</li>
+    <li><a href="http://ws.apache.org/juddi/">Visit</a> the Apache-jUDDI Home Page</li>
+</ul>
+
+<div class="install">
+  <h4>jUDDI Installation</h4>
+    <div class="content">
+<%
+    // This will tirgger the install process...
+    String rootPartition = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PARTITION);
+	String nodeId = AppConfig.getConfiguration().getString(Property.JUDDI_NODE_ID);
+    String nodeName = "";
+    String nodeDescription = "";
+    
+    BusinessEntity be = Install.getNodeBusinessEntity(nodeId);
+    
+    if (be != null) {
+        Name n = (Name) be.getName().get(0);
+        if (n != null)
+            nodeName = n.getValue();
+
+        List descList = be.getDescription();
+        if (descList != null && descList.size() > 0) {
+            Description d = (Description) descList.get(0);
+            if (d != null)
+                nodeDescription = d.getValue();
+        }
+    }
+%>
+    <div>jUDDI has been successfully installed!</div>
+    <p />
+    <h3>Node Information</h3>
+    <table>
+        <tr>
+            <td><b>Root Partition:</b></td>
+            <td><%= rootPartition %></td>
+        </tr>
+        <tr>
+            <td><b>Node Id:</b></td>
+            <td><%= nodeId %></td>
+        </tr>
+        <tr>
+            <td><b>Name:</b></td>
+            <td><%= nodeName %></td>
+        </tr>
+        <tr>
+            <td><b>Description:</b></td>
+            <td><%= nodeDescription %></td>
+        </tr>
+    </table>
+  </div>
+</div>
+
+<hr />
+<table width="100%" border="0">
+    <tr>
+        <td height="50" align="center" valign="bottom" nowrap>
+        <div class="footer">&nbsp;</div>
+        </td>
+    </tr>
+</table>
+
+</body>
+</html>

Added: webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/juddi.css
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/juddi.css?rev=777767&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/juddi.css (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/subscription-listener/src/main/webapp/juddi.css Sat May 23 02:11:03 2009
@@ -0,0 +1,157 @@
+body {
+  margin:      0px 10px 10px 10px;
+  font-family: "Trebuchet MS", sans-serif;
+  font-size:   10pt;
+  background:  #FFF;
+  color:       #000;
+}
+
+h1 {
+	font-family: "Trebuchet MS", sans-serif;
+	background: #00005A;
+	font-weight: normal;
+	color: White;
+	padding: 5px 10px;
+	margin: 0px -10px 10px -10px;
+}
+
+h2 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+h3 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+h4 {
+	font-family: "Trebuchet MS", sans-serif;
+	color: #00005A;
+}
+
+.sidebar {
+	border: 1px solid #00005A;
+	background: #EEE;
+	padding: 5px;
+} 
+
+pre.code_sample {
+  background: #EEE;
+  padding: 5px;
+}
+
+dt {
+  font-weight: bold;
+}
+
+dl {
+  margin-left: 3em;
+}
+
+td {
+  font-size:   10pt;
+}
+
+DIV.announcement dl {
+  margin-left: 0px;
+}
+
+div.LINK {
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #000;
+  font-size: 10pt;
+}
+
+div.LINK A {
+  color: #6d0000;
+  text-decoration: none;
+}
+
+div.LINK A:hover {
+  color: #006200;
+  text-decoration: underline;
+}
+
+div.NAV {
+  background: #000;
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #CCC;
+  font-size: 12pt;
+  font-weight: bold;
+}
+
+div.NAV A {
+  color: #CCC;
+  text-decoration: none;
+}
+
+div.NAV A:hover {
+  color: #FFF;
+}
+
+.msgs {
+	background-color: #FFD;
+	color: #005500;
+}
+
+.ednote {
+  color: #999;
+  font-style: italic;
+}
+
+.cvs_id {
+  color: #999;
+  font-size: 8pt;
+  border-top: solid 1px #999;
+}
+
+.author {
+  font-size: 14pt;
+  font-style: italic;
+}
+
+var {
+  font-style: italic;
+  color: #900;
+}
+
+div.footer { 
+  color: #666699; margin: 0px -10px; padding: 2px 10px; font-size: 8pt; font-weight: normal; 
+}
+
+div.footer a {
+  color: #666699; text-decoration: none; 
+}
+
+div.footer a:hover { 
+  color: #666699; text-decoration: underline; 
+}
+
+div.header { 
+  background: #000;
+  margin: 0px -10px;
+  padding: 2px 10px;
+  color: #CCC;
+  font-size: 8pt;
+  font-weight: bold;
+}
+
+div.header a {
+  color: #CCC;
+  text-decoration: none;
+}
+
+div.header a:hover { 
+  color: #FFF;
+}
+
+div.error {
+  color: #F00;
+}
+
+div.install {width:650px; background-color: #00005a;}
+div.install h4 {margin:0; padding:0; color: #fff;}
+div.install .content {margin:0; padding:4px 4px 0 4px; border-style:solid; border-color:#bbb; border-width:0 1px 1px 1px; background-color: #fff;}

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml Sat May 23 02:11:03 2009
@@ -67,6 +67,11 @@
 			<classifier>${platform}</classifier>
 			<scope>provided</scope>
 		</dependency>
+		<dependency>
+			<groupId>org.apache.juddi</groupId>
+			<artifactId>juddi-core</artifactId>
+			<version>3.0.0.SNAPSHOT</version>
+		</dependency>
 		<dependency>
 			<groupId>org.apache.juddi</groupId>
 			<artifactId>uddi-ws</artifactId>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDIBrowser.gwt.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDIBrowser.gwt.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDIBrowser.gwt.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDIBrowser.gwt.xml Sat May 23 02:11:03 2009
@@ -8,7 +8,8 @@
     
       <!-- Specify the application specific style sheet.              -->
       <stylesheet src="uddiportlets.css"/>
-	
+
+	  <servlet class="org.apache.juddi.portlets.server.service.NotifyServiceImpl" path="/notify"/>		
 	  <servlet class="org.apache.juddi.portlets.server.service.SecurityServiceImpl"    path="/security"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.InquiryServiceImpl"     path="/inquiry"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.PublicationServiceImpl" path="/publication"/>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISearch.gwt.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISearch.gwt.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISearch.gwt.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISearch.gwt.xml Sat May 23 02:11:03 2009
@@ -9,6 +9,7 @@
       <!-- Specify the application specific style sheet.              -->
       <stylesheet src="uddiportlets.css"/>
 	
+	  <servlet class="org.apache.juddi.portlets.server.service.NotifyServiceImpl" path="/notify"/>	
 	  <servlet class="org.apache.juddi.portlets.server.service.SecurityServiceImpl"    path="/security"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.InquiryServiceImpl"     path="/inquiry"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.PublicationServiceImpl" path="/publication"/>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISubscriptionNotification.gwt.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISubscriptionNotification.gwt.xml?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISubscriptionNotification.gwt.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/UDDISubscriptionNotification.gwt.xml Sat May 23 02:11:03 2009
@@ -8,7 +8,8 @@
     
       <!-- Specify the application specific style sheet.              -->
       <stylesheet src="uddiportlets.css"/>
-	
+
+	  <servlet class="org.apache.juddi.portlets.server.service.NotifyServiceImpl" path="/notify"/>	
 	  <servlet class="org.apache.juddi.portlets.server.service.SecurityServiceImpl"    path="/security"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.InquiryServiceImpl"     path="/inquiry"/>
 	  <servlet class="org.apache.juddi.portlets.server.service.PublicationServiceImpl" path="/publication"/>

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java Sat May 23 02:11:03 2009
@@ -32,6 +32,7 @@
 
 	private UDDISubscriptionNotification notification = null;
 	private NotifyPanel notifyPanel = null;
+	private TextArea textArea = null;
 	FlexTable table = null;
 
 	private NotifyServiceAsync notifyService = (NotifyServiceAsync) GWT.create(NotifyService.class);
@@ -45,10 +46,18 @@
 		notifyLabel.setStyleName("portlet-form-field-label");
 		add(notifyLabel);
 		
-	    TextArea ta = new TextArea();
-	    ta.setCharacterWidth(50);
-	    ta.setVisibleLines(50);
-	    add(ta);
+	    textArea = new TextArea();
+	    textArea.setCharacterWidth(50);
+	    textArea.setVisibleLines(50);
+	    add(textArea);
+	}
+	
+	public TextArea getTextArea() {
+		return textArea;
+	}
+	
+	public void setTextArea(TextArea textArea) {
+		this.textArea = textArea;
 	}
 	
 	public NotifyServiceAsync getSecurityService() {

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java Sat May 23 02:11:03 2009
@@ -16,9 +16,18 @@
  */
 package org.apache.juddi.portlets.client;
 
+import java.util.Vector;
+
+import org.apache.juddi.portlets.client.service.NotifyResponse;
+import org.apache.juddi.portlets.client.service.NotifyService;
+import org.apache.juddi.portlets.client.service.NotifyServiceAsync;
+
+import com.google.gwt.user.client.Window;
+
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.ui.DockPanel;
+import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.RootPanel;
 
 /**
@@ -32,16 +41,10 @@
 	private NotifyPanel notifyPanel = null;
 	private String token = null;
 	
-	/**
-	 * This is the entry point method.
-	 */
-	public void onModuleLoad() {
-		notifyPanel = new NotifyPanel(this);
-		notifyPanel.setVisible(true);
-		setNotifyPanel(notifyPanel);
-		RootPanel.get("notification").add(notifyPanel);
-	}
-
+	private static int counter = 0;
+	
+	private NotifyServiceAsync notifyService = (NotifyServiceAsync) GWT.create(NotifyService.class);
+	
 	protected NotifyPanel getNotifyPanel() {
 		return notifyPanel;
 	}
@@ -57,6 +60,42 @@
 	public void setToken(String token) {
 		this.token = token;
 	}	
+
+	public void onModuleLoad() {
+		notifyPanel = new NotifyPanel(this);
+		notifyPanel.setVisible(true);
+		notifyPanel.getTextArea().setText("");
+		setNotifyPanel(notifyPanel);
+		RootPanel.get("notification").add(notifyPanel);
+
+		Timer timer = new Timer() {
+			public void run() {
+				getSubscriptionNotifications();
+			}
+		};
+	    timer.scheduleRepeating(20000);
+	    getSubscriptionNotifications();
+	}	
+	
+	public void getSubscriptionNotifications() {
+       	final String ta = notifyPanel.getTextArea().getText();
+        
+       	notifyService.getSubscriptionNotifications("", new AsyncCallback<NotifyResponse>() {
+            public void onFailure(Throwable caught) {
+                Window.alert("Could not connect to SubscriptionListener WS : " + caught.getMessage() );
+            }
+            public void onSuccess(NotifyResponse result) {
+           		if (result.getSubscriptionNotifications() != null) {
+           			if (("".equals(ta)) || (ta == null)) {
+               			notifyPanel.getTextArea().setText(result.getSubscriptionNotifications());				
+           			} else {
+           				notifyPanel.getTextArea().setText(ta + " \n" + result.getSubscriptionNotifications());				
+           			}
+           		}
+           	}
+		});
+		
+	}
 }
 	
  
\ No newline at end of file

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyResponse.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyResponse.java?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyResponse.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyResponse.java Sat May 23 02:11:03 2009
@@ -26,12 +26,12 @@
 public class NotifyResponse extends Response {
 	
 	private static final long serialVersionUID = 1L;
-	List<String> subscriptionNotifications;
+	String subscriptionNotifications;
 	
-	public List<String> getSubscriptionNotifications() {
+	public String getSubscriptionNotifications() {
 		return subscriptionNotifications;
 	}
-	public void setBusinesses(List<String> subscriptionNotifications) {
+	public void setSubscriptionNotifications(String subscriptionNotifications) {
 		this.subscriptionNotifications = subscriptionNotifications;
 	}
 

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyService.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyService.java?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyService.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/service/NotifyService.java Sat May 23 02:11:03 2009
@@ -23,7 +23,7 @@
  * @author <a href="mailto:tcunning@apache.org">Tom Cunningham</a>
  *
  */
-@RemoteServiceRelativePath("subscription-listener")
+@RemoteServiceRelativePath("notify")
 public interface NotifyService extends RemoteService {
 	public NotifyResponse getSubscriptionNotifications(String authToken);
 }
\ No newline at end of file

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/NotifyServiceImpl.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/NotifyServiceImpl.java?rev=777767&r1=777766&r2=777767&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/NotifyServiceImpl.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/NotifyServiceImpl.java Sat May 23 02:11:03 2009
@@ -16,8 +16,14 @@
  */
 package org.apache.juddi.portlets.server.service;
 
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.net.URLConnection;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.Vector;
 
 import javax.servlet.http.HttpServletRequest;
 
@@ -29,6 +35,7 @@
 import org.apache.juddi.portlets.client.service.InquiryService;
 import org.apache.juddi.portlets.client.service.NotifyResponse;
 import org.apache.juddi.portlets.client.service.NotifyService;
+import org.apache.juddi.util.NotificationList;
 import org.apache.log4j.Logger;
 import org.apache.log4j.helpers.Loader;
 import org.uddi.api_v3.BindingTemplate;
@@ -76,34 +83,20 @@
 
 	public NotifyResponse getSubscriptionNotifications(String authToken) 
 	{
-		HttpServletRequest request = this.getThreadLocalRequest();
-		String lang = request.getLocale().getLanguage();
-
-		NotifySubscriptionListener nsl = new NotifySubscriptionListener();
-		nsl.setAuthInfo(authToken);
 		NotifyResponse response = new NotifyResponse();
-		//logger.debug("BusinessDetail " + getBusinessDetail + " sending businessDetail request..");
 		try {
-        	 //UDDISubscriptionListenerPortType notifyService = getTransport().getSubscriptionService().getSubscriptionResults();
-        	 /*
-        	 BusinessDetail businessDetail = notifyService.
-
-        	 for (BusinessEntity businessEntity : businessDetail.getBusinessEntity()) {
-        		 Business business = new Business(
-        				 businessEntity.getBusinessKey(),
-        				 EntityForLang.get(businessEntity.getName(),lang).getValue(),
-        				 EntityForLang.get(businessEntity.getDescription(),lang).getValue());
-        		 for (BusinessService businessService : businessEntity.getBusinessServices().getBusinessService()) {
-        			 Service service = new Service(
-        					 businessService.getServiceKey(),
-        					 EntityForLang.get(businessService.getName(),lang).getValue(),
-        					 EntityForLang.get(businessService.getDescription(),lang).getValue());
-        			 business.getServices().add(service);
-        		 }
-        		 response.setBusiness(business);
-        	 */
-        	 
-        	 response.setSuccess(true);
+			URL url = new URL("http", "localhost", 8080, "/subscription-listener/notify/");	
+			URLConnection con = url.openConnection();
+			con.setDoOutput(true);
+			con.setDoInput(true);
+			InputStream is = con.getInputStream();
+			BufferedReader br = new BufferedReader(new InputStreamReader(is));
+			StringBuffer sb = new StringBuffer();
+			while (br.ready()) {
+				sb.append(br.readLine());
+			}
+			response.setSubscriptionNotifications(sb.toString());
+			response.setSuccess(true);
 	     } catch (Exception e) {
 	    	 logger.error("Could not obtain token. " + e.getMessage(), e);
 	    	 response.setSuccess(false);



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