You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by sc...@apache.org on 2005/05/06 22:34:40 UTC
svn commit: r168648 -
/incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java
Author: scamp
Date: Fri May 6 13:34:39 2005
New Revision: 168648
URL: http://svn.apache.org/viewcvs?rev=168648&view=rev
Log: (empty)
Added:
incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java
Added: incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java?rev=168648&view=auto
==============================================================================
--- incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java (added)
+++ incubator/hermes/trunk/src/java/org/apache/ws/eventing/porttype/impl/SimpleNotificationPortTypeImpl.java Fri May 6 13:34:39 2005
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2001-2004 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.ws.eventing.porttype.impl;
+
+import org.apache.axis.message.SOAPEnvelope;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.eventing.SubscriptionHome;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+public class SimpleNotificationPortTypeImpl implements org.apache.ws.eventing.porttype.NotificationPortType{
+ private static final Log LOG = LogFactory.getLog( NotificationPortTypeImpl.class.getName() );
+ private boolean m_broker;
+
+ //TODO maybe remove Axis dep
+ //TODO use WSRF Provider with Message styler
+ public void filter(SOAPEnvelope req, SOAPEnvelope resp){
+ try{
+ LOG.info("filtering ");
+ Context initialContext = new InitialContext( );
+ SubscriptionHome sH = (SubscriptionHome) initialContext.lookup( SubscriptionHome.HOME_LOCATION );
+ sH.notify(req);
+ }catch(Exception e){
+ //TODO
+ e.printStackTrace();
+ }
+ }
+}
+
+
---------------------------------------------------------------------
To unsubscribe, e-mail: hermes-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: hermes-dev-help@ws.apache.org