[JBoss-user] [JBossWS] - Re: Fail to access the servlet-style web service
Following is the code for accessing the servlet-web service. public class WebServiceStandaloneClient { | | /** | * @param args | */ | public static void main(String[] args) { | | try { | String endPoint = "http://localhost:8080/age/Age?wsdl";; | URL url = new URL(endPoint); | ServiceFactory sf = ServiceFactory.newInstance(); | QName serviceQname = new QName("http://age.webservices.javasrc.com/","AgeService";); | Service s = sf.createService(url,serviceQname); | Age age = (Age) s.getPort(Age.class); | System.out.println("got output " + age.age("name",new Integer(26))); | } catch (MalformedURLException e) { | e.printStackTrace(); | } catch (ServiceException e) { | e.printStackTrace(); | } catch (RemoteException e) { | e.printStackTrace(); | } | | } | | } You need to create following classes : I generated it using the Eclipse Web Service Client. package com.javasrc.webservices.age; | | public interface AgeService extends javax.xml.rpc.Service { | public java.lang.String getAgePortAddress(); | | public com.javasrc.webservices.age.Age getAgePort() throws javax.xml.rpc.ServiceException; | | public com.javasrc.webservices.age.Age getAgePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; | } | There are jaxr,jaxrp,saaj,xml-api.jar, axis.jar, commons-loggin,commons-discovery,log4j and wsdl4j.jar files in the class path of the client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952259#3952259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952259 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Problem in DLQ
Hi, I have an MDB which uses one topic and one queue. Following is my jboss.xml | | | | notificationTopic | queue/RainbowJMSTopic | | | default-message-driven-bean | | | | RainbowConnectionFactory | TopicConnectionFactory | | | | notificationQueue | topic/RainbowJMSQueue | | | default-message-driven-bean | | | | RainbowConnectionFactory | QueueConnectionFactory | | | | | | | default-message-driven-bean | default | org.jboss.ejb.plugins.jms.JMSContainerInvoker | | DefaultJMSProvider | StdJMSPool | true | 15 | 1 | |10 | | queue/DLQ | 10 | 0 | | | | | | | Following is my ejb-jar.xml | ejb-jar> | | | | | notificationTopic | com.mphasis.rainbow.sa.notification.core.ejb.RainbowMessagingListener | | Container | |javax.jms.Topic | | |RainbowConnectionFactory |javax.jms.QueueConnectionFactory |Container | | |RainbowJMSTopic |javax.jms.Topic | | | | | | notificationQueue | com.mphasis.rainbow.sa.notification.core.ejb.RainbowMessagingListener | | Container | |javax.jms.Queue | | | RainbowConnectionFactory | javax.jms.QueueConnectionFactory | Container | | |RainbowJMSQueue |javax.jms.Queue | | | | | | | | | | | notificationTopic | * | | Required | | | | notificationQueue | * | | Required | | | | In my jbossmq-destinations-service.xml is have declared topic and queue as follows : | | jboss.mq:service=DestinationManager | jboss.mq:service=SecurityManager | | | | | | | | | | | jboss.mq:service=DestinationManager | | | Follwing is my jsm-ds.xml | | | | | | | | | DefaultJMSProvider | | org.jboss.jms.jndi.JNDIProviderAdapter | | | java:/JmsXA | | java:/JmsXA | | java:/JmsXA | | | | | | | jboss:service=XidFactory | StdJMSPool | | org.jboss.jms.asf.StdServerSessionPoolFactory | | | | | | JmsXA | | jms-ra.rar | org.jboss.resource.adapter.jms.JmsConnectionFactory | javax.jms.Topic | java:/DefaultJMSProvider | 20 | JmsXARealm | | | | The jbossmq-service.xml is as follows | | | jboss.mq:service=DestinationManager | jboss.mq:service=SecurityManager | | I am using postgres-jdbc3-service.xml I am getting following excetpion when my server is on : | 2006-05-08 09:39:34,469 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} | 2006-05-08 09:39:34,484 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler | javax.naming.NameNotFoundException: queue not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) | at org.jnp.server.NamingServer.getObject(NamingServer.java:528) | at org.jnp.server.NamingServer.lookup(NamingServer.java:252) | at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.ja
[JBoss-user] [JBoss and NetBeans] - Re: JBoss / Netbeans JavaEE5/ JSF problems
1. Remove common-loggings.jar & log4j.jar from ear. 2. And make entries of log4j into the log4j.xml of your server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938875#3938875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938875 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user