JMS Web Service Configuration

Hi folks,
I'm trying to set up a JMS web service on a WebLogic 7.0 server.
I want this web service to listen for messages on a queue on
another server running WebLogic 6.1 sp2. Here's what I've done:
Created web service using WebLogic Workshop modeled after the
workshop sample SimpleJMS.jws. A file Email.jws contains the
following code snippet:
package datatel.jms.email;
import weblogic.jws.control.JwsContext;
import EmailControl;
import javax.jms.Message;
public class Email
// Public variables...
public String m_Message = "default email response";
public EmailJMS emailJMS = null;
// Protected variables...
protected String jmsURL = "http://predict.datatel-info.com:7250";
// Private variables...
private String name;
* @jws:control
private EmailControl Email_Ctrl;
/** @jws:context */
JwsContext context;
* Initialize the JMS connection to the predict server...
public Email()
System.out.println("\nEntering Email.jws constructor...");
// Initialize JMS on the Predict server...
emailJMS = new EmailJMS(jmsURL);
System.out.println("Exiting Email.jws constructor...");
Notice that the Email() constructor code above references my object EmailJMS(jmsURL).
This object intializes the JMS connection to the other WebLogic 6.1 server. Here's
the JMS initialization code in my web service:
public EmailJMS(String jmsURL) {
System.out.println("\nEntering EmailJMS constructor with URL..."
+ jmsURL);
Environment environ = new Environment();
environ.setProviderUrl(jmsURL);
try {
ctx = environ.getInitialContext();
System.out.println("Got new InitialContext..." + ctx.PROVIDER_URL
+ "\nTime is: " + new Date().toString());
qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
qcon = qconFactory.createQueueConnection();
qsession = (WLQueueSession) qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
/** USER receive queue and listener
queue = (Queue) ctx.lookup("USER_TX_Q");
user_recvr = qsession.createReceiver(queue);
user_recvr.setMessageListener(this);
textMsg = qsession.createTextMessage();
objMsg = qsession.createObjectMessage();
isConnected = true;
qcon.start();
// --- more code follows ...
The JMS connection is successfully made. When another JMS program sends a message
to the USER_TX_Q, the web service receives the message via the onMessage handler
in the EmailJMS class.
The problem arises when I try to invoke my web service from the WebLogic Workshop
browser Test Form. On invocation on my web service, the following exception occurs:
start
= 0.45-->
name = Harmon .CONVPHASE = .START .CONVERSATIONID = 1023816206621
Exception
Submitted at Tue Jun 11 10:23:28 MST 2002
start
= 0.45-->
javax.ejb.CreateException: Exception on Create: java.io.NotSerializableException:
weblogic.jndi.internal.ServerNamingNode_WLStub at weblogic.knex.bean.WebProcessBean.ejbCreate(WebProcessBean.java:876)
at weblogic.knex.bean.WebProcessBean_dp0iqg_Impl.ejbCreate(WebProcessBean_dp0iqg_Impl.java:172)
at java.lang.reflect.Method.invoke(Native Method) at weblogic.ejb20.manager.ExclusiveEntityManager.create(ExclusiveEntityManager.java:731)
at weblogic.ejb20.manager.ExclusiveEntityManager.remoteCreate(ExclusiveEntityManager.java:702)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:250) at
weblogic.knex.bean.WebProcessBean_dp0iqg_HomeImpl.create(WebProcessBean_dp0iqg_HomeImpl.java:74)
at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:61)
at weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:105)
at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl.invoke(RemoteDispatcherBean_1a3xc3_EOImpl.java:46)
at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLSkel.invoke(Unknown
Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLStub.invoke(Unknown
Source) at weblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:96)
at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:73) at weblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:464)
at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3032)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Service Response
When I comment out the instantiation of my EmailJMS(jmsURL) object, the web service
initializes just fine. However, I don't have the JMS connection to my other server.
What is this stack trace telling me? How do I receive unsolicited JMS messages in
a web service?
Thanks,
Bob Gontarz

Hi Bob,
I have tested the same functionality as mentioned by you, and could not see
any errors, while testing using the Test Form. The JMS queue where I was
sending messages is on a 6.1 sp2 server.
Please find attached the two JWS files, which I used to simulate the
condition, one used for dispatching the messages and the other for receiving
the messages.
Please do let me know if your case is any different from the one I have
tested.
I look forward to your response.
Regards,
Anurag
Workshop Support
"Bob Gontarz" <[email protected]> wrote in message
news:[email protected]...
>
Hi folks,
I'm trying to set up a JMS web service on a WebLogic 7.0 server.
I want this web service to listen for messages on a queue on
another server running WebLogic 6.1 sp2. Here's what I've done:
Created web service using WebLogic Workshop modeled after the
workshop sample SimpleJMS.jws. A file Email.jws contains the
following code snippet:
package datatel.jms.email;
import weblogic.jws.control.JwsContext;
import EmailControl;
import javax.jms.Message;
public class Email
// Public variables...
public String m_Message = "default email response";
public EmailJMS emailJMS = null;
// Protected variables...
protected String jmsURL = "http://predict.datatel-info.com:7250";
// Private variables...
private String name;
* @jws:control
private EmailControl Email_Ctrl;
/** @jws:context */
JwsContext context;
* Initialize the JMS connection to the predict server...
public Email()
System.out.println("\nEntering Email.jws constructor...");
// Initialize JMS on the Predict server...
emailJMS = new EmailJMS(jmsURL);
System.out.println("Exiting Email.jws constructor...");
Notice that the Email() constructor code above references my objectEmailJMS(jmsURL).
This object intializes the JMS connection to the other WebLogic 6.1server. Here's
the JMS initialization code in my web service:
public EmailJMS(String jmsURL) {
System.out.println("\nEntering EmailJMS constructor with URL..."
+ jmsURL);
Environment environ = new Environment();
environ.setProviderUrl(jmsURL);
try {
ctx = environ.getInitialContext();
System.out.println("Got new InitialContext..." + ctx.PROVIDER_URL
+ "\nTime is: " + new Date().toString());
qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
qcon = qconFactory.createQueueConnection();
qsession = (WLQueueSession) qcon.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
>
/** USER receive queue and listener
queue = (Queue) ctx.lookup("USER_TX_Q");
user_recvr = qsession.createReceiver(queue);
user_recvr.setMessageListener(this);
textMsg = qsession.createTextMessage();
objMsg = qsession.createObjectMessage();
isConnected = true;
qcon.start();
// --- more code follows ...
The JMS connection is successfully made. When another JMS program sends amessage
to the USER_TX_Q, the web service receives the message via the onMessagehandler
in the EmailJMS class.
The problem arises when I try to invoke my web service from the WebLogicWorkshop
browser Test Form. On invocation on my web service, the followingexception occurs:
>
start
= 0.45-->
name = Harmon .CONVPHASE = .START .CONVERSATIONID = 1023816206621
Exception
Submitted at Tue Jun 11 10:23:28 MST 2002
start
= 0.45-->
javax.ejb.CreateException: Exception on Create:java.io.NotSerializableException:
weblogic.jndi.internal.ServerNamingNode_WLStub atweblogic.knex.bean.WebProcessBean.ejbCreate(WebProcessBean.java:876)
atweblogic.knex.bean.WebProcessBean_dp0iqg_Impl.ejbCreate(WebProcessBean_dp0iq
g_Impl.java:172)
at java.lang.reflect.Method.invoke(Native Method) atweblogic.ejb20.manager.ExclusiveEntityManager.create(ExclusiveEntityManager.
java:731)
atweblogic.ejb20.manager.ExclusiveEntityManager.remoteCreate(ExclusiveEntityMa
nager.java:702)
atweblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:250) at
>
weblogic.knex.bean.WebProcessBean_dp0iqg_HomeImpl.create(WebProcessBean_dp0i
qg_HomeImpl.java:74)
atweblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:61)
atweblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:105
atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl.invoke(RemoteDispatche
rBean_1a3xc3_EOImpl.java:46)
atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLSkel.invoke(Unknown
Source) atweblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:262)
atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
:229)
atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLStub.invoke(Unknown
Source) atweblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:96)
at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:73)at weblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:464)
at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:370)at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5352)
atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:718)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3032)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Service Response
When I comment out the instantiation of my EmailJMS(jmsURL) object, theweb service
initializes just fine. However, I don't have the JMS connection to myother server.
What is this stack trace telling me? How do I receive unsolicited JMSmessages in
a web service?
Thanks,
Bob Gontarz
[SendMessages.jws]
[HelloWorld.jws]

Similar Messages

  • JMS Web Services in latest OC4J 9.0.3

    Just trying out the JMS Web services in OC4J 9.0.3 just released today. Using Ant 1.5 and updated the build.xml file as directed. Using JDK 1.3.02.
    Trying the JMS Web Service demo #2 based on JMS on top of Oracle AQ. Everything works fine - queues set up fine, OC4J configured nicely, and the following steps of the build work fine: clean, setup, compile, mdbjar ...
    But when I get to the assemble step it crashes with the following error:
    assemble:
    [echo] assembling Web Services EAR. ..
    [java] Please wait ...
    [java] java.io.IOException: CreateProcess: javac proxy\JmsDemo2Proxy.java error=2
    [java] at java.lang.Win32Process.create(Native Method)
    [java] at java.lang.Win32Process.<init>(Win32Process.java:66)
    [java] at java.lang.Runtime.execInternal(Native Method)
    [java] at java.lang.Runtime.exec(Runtime.java:551)
    [java] at java.lang.Runtime.exec(Runtime.java:418)
    [java] at java.lang.Runtime.exec(Runtime.java:361)
    [java] at java.lang.Runtime.exec(Runtime.java:325)
    [java] at oracle.j2ee.ws.tools.WsAssmProxyGenerator.doCompile(WsAssmProxyGenerator.java:284)
    [java] at oracle.j2ee.ws.tools.WsAssmProxyGenerator.processProxy(WsAssmProxyGenerator.java:131)
    [java] at oracle.j2ee.ws.tools.WsAssmProxyGenerator.clientGenerate(WsAssmProxyGenerator.java:120)
    [java] at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:92)
    [java] at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:64)
    [java] Exception in thread "main"
    BUILD FAILED
    file:D:/oc4j903/webservices/demo/basic/jms_service/demo2/build.xml:63: Java returned: 1
    What is interesting is the WSDL and proxy appear to have been generated successfully. Even the jmsws2.ear and mdb_service2.jar files appear generated ok. But the web.xml is missing so perhaps this is where it died. Any clues as to what might be wrong ... are changes required in the config.xml file driving the WebServicesAssembly tool?
    Thanks for any help.

    Went a little further ... given the assembly error seemed to occur on the last step creating the proxy.jar file, I simply skipped over it and did the deployment (changed the build.xml to continue assembly upon failure). This seemed reasonable as all the ear and war files where there; the only missing piece appeared to be the proxy.jar.
    The deployment of the service was successful and I downloaded the proxy.jar file from the OC4J instance which in turn allowed me to compile the Web service client. Things were looking up here.
    However, when I ran the service I got an error indicating the wrong number of arguments to the underlying queues. Given it got through to the database, I assume my configuration is set up correctly but it is a little hard to debug from here. Here is the error I got (note tried on 9.0.1 and 9.0.2 database):
    D:\oc4j903\webservices\demo\basic\jms_service\demo2>java -classpath client;proxy/JmsDemo2_proxy.jar;%CLASSPATH% JmsDemo2
    Client
    Doing the Send Operation ..on Element
    <employee>
    <name>Bob</name>
    <emp_id>1234</emp_id>
    <position>assistant manager</position>
    </employee>
    [SOAPException: faultCode=SOAP-ENV:Server; msg=oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to &apos;AQ$_JMS_ENQUEUE_OBJECT_MESSAGE&apos;
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at JmsDemo2Proxy.makeSOAPCallDocument(JmsDemo2Proxy.java:73)
    at JmsDemo2Proxy.send(JmsDemo2Proxy.java:47)
    at JmsDemo2Client.main(client/JmsDemo2Client.java:19)
    The two oc4j configuration files requiring editing datasources.xml and application.xml are included below. Datasources was straightforward; I wasn't quite clear about the <resource-provider> entry in application.xml as it wasn't clear if this is a top level element or what. See the very end of this post to see where I put it.
    Datasources.xml
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@localhost:5521:oracle"
              inactivity-timeout="30"
         />
         <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/wsDemoEmulatedOracleCoreDS"
    xa-location="jdbc/xa/wsDemoEmulatedOracleXADS"
    ejb-location="jdbc/wsDemoEmulatedDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="jemuser"
    password="jempasswd"
    url="jdbc:oracle:thin:@127.0.0.1:1521:O901"
    inactivity-timeout="30"
    />
    </data-sources>
    application.xml
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
    <!-- The global application config that is the parent of all the other
         applications in this server. -->
    <orion-application autocreate-tables="true"
         default-data-source="jdbc/OracleDS">
         <web-module id="defaultWebApp" path="../../home/default-web-app" />
         <web-module id="dms0" path="../../home/applications/dms0.war" />
         <web-module id="dms" path="../../home/applications/dms.war" />
    <connectors path="./oc4j-connectors.xml"/>
         <persistence path="../persistence" />
    <!-- Path to the libraries that are installed on this server.
         These will accesible for the servlets, EJBs etc -->
         <library path="../../home/lib" />
         <library path="../../../sqlj/lib" />
         <library path="../../../rdbms/jlib/xsu12.jar" />
         <!-- Path to the taglib directory that is shared
    among different applications. -->
    <library path="../../home/jsp/lib/taglib" />
    <!-- Uncomment the following element to use JAZN-XML as UserManager
         <jazn provider="XML" location="./jazn-data.xml" />
    -->
         <principals path="./principals.xml" />
         <log>
              <file path="../log/global-application.log" />
         </log>
    <commit-coordinator>
    <commit-class
    class="com.evermind.server.OracleTwoPhaseCommitDriver" />
    <property name="datasource"
    value="jdbc/OracleDS"/>
    <!-- Username and password are the optional properties
    replace with your commit_co-ordinator_super_user
         <property name="username"
         value="system" />
         <property name="password"
         value="manager" />
    -->
    </commit-coordinator>
         <data-sources path="data-sources.xml" />
         <namespace-access>
              <read-access>
                   <namespace-resource root="">
                        <security-role-mapping>
                             <group name="administrators" />
                        </security-role-mapping>
                   </namespace-resource>
              </read-access>
              <write-access>
                   <namespace-resource root="">
                        <security-role-mapping>
                             <group name="administrators" />
                        </security-role-mapping>
                   </namespace-resource>
              </write-access>
         </namespace-access>
         <resource-provider class="oracle.jms.OjmsContext" name="wsdemo">
    <description> OJMS/AQ </description>
    <property name="datasource" value="jdbc/wsDemoEmulatedDS">
    </property>
    </resource-provider>
    </orion-application>
    Any suggestions? Wait for production?
    Mike.

  • Service Registry in Web Service Configuration

    Hi
    I have a unique problem
    I am using NWDS
    SAP NetWeaver Developer Studio
    SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP04 PAT0000
    Build id: 200911281443
    In NWDS when I go to Windows --> Preferences --> Destination Configuration --> Web Service Configuration --> and say CREATE in the Destination Type I can not see the option of Service Registry I can only see the option of WSDL and WSIL
    and in the following doc
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e058a805-68b2-2b10-6a8b-fc570f1c37d1?quicklink=index&overridelayout=true
    How to Browse an Enterprise Services Registry in Visual Composer.pdf
    Page 13 they have shown a screenshot where it shows the Destination Type as Service Registry
    Can anyone tell me please how can I get the option of having Service Registry in Web Service Configuration
    I have also installed CE 7.1 EHP1 preview provided by SDN
    I know its a unique problem but if someone can throw light on this it will be very helpful to all those who want to work on Enterprise Service Repository
    Regards
    JM

    Hi John,
    I think the screenshot is wrong.
    You can use WSIL to configure the backend system.
    The WSIL url for ABAP systems is http://[host]:[port]/ sap/bc/srt/wsil?sap-client=[client_no]
    Regards,
    Christian

  • Can't find source file for newsservice.NewsServiceProxy in JMS Web Service

    i can't find the source file for newsservice.NewsServiceProxy in JMS Web Service. The
    newsservice.NewsServiceProxy is required for client to post news to server and received news from server. But
    i can't find where the file located in the newsservices.jar provided in that tutorial.
    Someone please help me to located it. thank you :)

    Hi,
    You will have to generate this file. The steps to generate this file has been provided in the Install file present under NewsService/doc/Install.html (once newsservice.jar is extracted) - Running the NewsService client application section - Step 1.
    Follow the instructions, and you will be able to download the zip/jar file which contains newsservice.NewsServiceProxy within it.
    Regards
    Elango.

  • JMS Web Service Sample (News service application)

    Hi,
    The Web service client (NewsServiceProxy) invokes send() and this calls NewsQueueEJB. Where do we define NewsQueueEJB to be used as Web service? Is it in config /etc? Does the Web Services assembly tool make than happen?
    Thanks,
    Mustafa

    in config.xml.., you say that the Queue with the context jms/newsQueue is exposed as web service..,this config.xml is read by webservices assembler tool to generate the required config for OC4J. But the web service engine doesnot know who reads the message that is going to be enqueued in this queue. The work of the web service engine is to only get its payload sent to it .., generate a jms message with what was given to it .., and enqueue this message to the queue specified..,it doesnot bother about who is going to dequeue this message..,and process it..
    <jms-doc-service>
    <uri>NewsService</uri>
    <!-- Queue to which message has to be sent when 'send()' operation is invoked-->
    <connection-factory-resource-ref>jms/newsQueueConnectionFactory</connection-factory-resource-ref>
    <queue-resource-ref>jms/newsQueue</queue-resource-ref>
    <!-- Topic from which response can be received when 'receive()' operation is invoked -->
    <reply-to-connection-factory-resource-ref>jms/newsTopicConnectionFactory</reply-to-connection-factory-resource-ref>
    <reply-to-topic-resource-ref>jms/newsTopic</reply-to-topic-resource-ref>
    </jms-doc-service>
    Then , you configure that any message enqueued in jms/Queue must invoke NewsQueueEJB
    The above is defined in ejb-jar.xml and orion-ejb-jar.xml
    <message-driven>
    <description>Message Driven Bean</description>
    <display-name>NewsQueue</display-name>
    <ejb-name>NewsQueue</ejb-name>
    <ejb-class>oracle.otnsamples.jmswebservice.ejb.NewsQueueEJB</ejb-class>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>jms/newsQueue</res-ref-name>
    <res-type>javax.jms.Queue</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    orion-ejb-jar.xml
    <message-driven-deployment name="NewsQueue" max-instances="-1" min-instances="1"
    destination-location="jms/newsQueue"
    connection-factory-location="jms/newsQueueConnectionFactory"
    >
    </message-driven-deployment>
    hope this helps
    Elango

  • IDoc - XI - Web Service configuration

    Hallo
    This is the problem we are facing :
    We get an IDoc as Inbound, do some mapping and then send it to a WebService. The problem is that when we do so, we get a series of errors. Apparently the problem is that when the web service receives our messages it replies with a (simple) message as well. The point is that as far as I know IDocs cannot be configured for synchronous mode, (and when we tried it we failed) so we have nothing to do with the incoming message.
    these are the messages from the Integration Monitoring/Message Monitoring
    Error Category OUTBINDING
    Error Code CO_TXT_ROUTING_BACK_ERROR
    We don't have access to the Receiver System and the WSDL file is sent by them

    Actually, I don't know. I will look arround it and try your previous suggestions too.
    Just a not-so-XI question.
    I tried to test the Web-Service using XML-SPY and the WSDL that they have provided for us. When I do so, i get an error 504, "HTTP error:could not POST file 'soap/CreateOrder' on server 'xx.xx.xx.xx' , where http://xx.xx.xx.xx:80/soap/CreateOrder is the URL that we are using during the configuration of XI. Would this imply that the error is that we just have wrong URL (but how since it is retrieve from the WSDL itself?).

  • Configuring use of clinet certificates for jax web services  configuring u

    Hello dear people,
    I have a very simple jax web service under glassfish v.2.1 and I want to secure it using mutual authentication. I could configure using server certificates but I have problems with configuring the server to ask client certificates. The problem is that the clients are not asked to provide a valid client certificate to use the service. The clients can easily use the service without having a certificate.
    Can anyone tell me what should I do to have this?
    I got the example code from http://java.net/projects/javaeetutorial/downloads and the sample code that I used is in the folder : javaeetutorial5/examples/jaxws/helloservice-clientcert
    Best regards,
    Arash.

    Did you resolve your issue?
    I´m posting some comments that maybe can help newer administrators facing similar doubts.
    I´m using NW PI 7.1 EHP1 also and some interfaces were developed for using an external site providing web services through SSL (HTTPS) connection.
    As in browser navigation, secure sites protected with SSL has a certificate emited by a international CA. We didn´t perceive the "handshake" in the most of cases because normally the web browser has a group of trusted CAs loaded on its certificate store.
    With SAP PI and its WAS Java a similar procedure occurs with a small difference. The WAS Java didn´t have the trusted CAs loaded on KeyStorage. So, when the adapter tries to establishing a connection with an HTTPS site (it is a background process)  a "handshake" is required to accepting the certificate and produces a error.
    We completes the handshake importing the entire certificate chain (you can upload the site´s certificate to your browser and export it as file) on Keytore under the Trusted CAs view.
    Hope this can help someone. It´s an "easy" part of SSL communication.
    Now I´m trying to configure the inverse: Some third party consuming the PI web services using SSL. I have an additional component on inbound/ incoming connections that is the SAP Web Dispatcher.
    The Help.sap.com is the reference but as always its a little difficult to find the (sequential) path following the links (go ahead, go ahead, go ahead, go back, go back, go ahead)...
    Regards,
    Rodrigo Aoki

  • Web Services configuration vs. SVN conflicts

    Hi All,
    I've got a problem with using amf php services and svn in my project. The problem exist when i use wizard to configurating web service connection -> Data/Services section in ZendStudio 8.0.0. Many files are autogenerated and the problem is with project.fml file ... this file contains all web service references that are autogenerated when (for example) I add a new method using Data/Services wizard. The fml file is generating randomly and then i have many conflicts that are impossible to resolve. Is there any way to configure this wizard (or don't using this wizard and testing WebService methods in another way)? This fml file must be under version control because contains all web service references (web service, method of web service, input types, return types and all). Solve for example:
    1) is there any way to configure this fml file so as not to hold all the web service references in one file?
    2) better configuring web service references in project and not using a Data/Services wizard?
    Thanks for any help.

    Hello,
    Can you send me the client and server code at tugdual[dot]grall[at]oracle[dot]com ?
    regards
    Tugdual Grall

  • Webservice + secured jms (Web Service over the JMS trans).

    Apologize since this post is in the webservice forum as well but since it is related to jms as well i put it here as well.
    I have a web service that is using JMS (@WLJmsTransport Web Service over the JMS transport)
    and everything seems to be ok BUt i do not know how to use this if the JMS is secured .
    By Adding security on JMS queue what other things i need to do in order for the webservice to access the queue ?
    (where i specify the credentials ?)
    @WebService(serviceName = "ASyncService", targetNamespace = "http://axyz.org/notification/v1", endpointInterface = "
    axyz.notification.ASyncPort")
    @WLJmsTransport(contextPath = "notify", serviceUri = "async_event", portName = "ASyncServicePort", queue = "events", connectionFactory = "cnfct_receiver")
    Thank you !

    The annotation you gave is for accessing the webservice but in this case it seems the webservice has to access a secured jms
    However having your response lead me to @RunAs which solved my problem.
    Very hard to find this information.
    Thank you very much for your answer !
    Nice blog as well !
    Edited by: user630775 on Jan 28, 2010 2:02 AM

  • Re: Enhance standard TM Web service configured through WSRM

    Hi experts,
    I am trying to build an Order Integration scenario between TM & ECC. Unfortunately there is no SAP-PI available in our system landscape, so i have to use WS/RM.
    There are some enhancements to be done in the standard Webservice(WS). Afaik we need ESR for the enhancement. Since there is no ESR configured in the WS/RM scenario, how do i enhance the WS?
    Does anyone have an experience in enhancing std. WS in WS/RM?
    BR,
    Suhas

    Dear Suhas,
    You have not mentioned which version of TM you are working on.
    If you are working on TM 9.1, check the below link for available Web services for TM ERP order integration.
    TM_ERPOrderIntegration - Enterprise Services and ESR Content - SAP Library
    If you want to check these services for availability, go to SPROXY transaction and look for the required.
    Let me know if you need more help.
    Thanks,
    Bharath.

  • Cannot find Web Services Configuration under Infrastructure Management

    Hi YiNing,
    You need to go to SOA Management-> Business Administration-> Web Service Administration.
    Best Regards
    Pankaj

    I think you want to Search for the Proxy Definition DestinationSI and manually create a new logical port for that destination. For that you need to go through the way i have given above and then you can proceed.
    regards
    Pankaj

  • Web Services Configurations

    Hi,
    I am new to this area of web services.
    I published a batch job "MyTestWebServices" as a web services from the Management Console. Created the WSDL and tested this web services via SoapUI tool.
    Working fine as desired.
    But this WSDL also contains details for all web services (eg, Get_BatchJob_ExeDetail, Get_Trace_Log, Logon, Logout, etc) which I believe are used by DS server for its internal operations.
    I do not want the consumer of this WSDL to know about this extra web services.
    Please help me understand how can I generate a WSDL only for my job "MyTestWebServices" where the other services are not visible.
    Thanks,
    Rajesh

    There are a couple options you have:
    1. edit wsdl manually to remove any operations that you don't want to expose
    to client.
    2. in DS 4.2 there is a better option of using a custom label. When you add
    a job as web service, you can add a custom wsdl label and associate the label
    with one or more batch jobs\ operations. When you do view wsdl you can choose
    the label to select the specific batch jobs that has been associated with that
    label. By default it generates all, by selectively choosing a label, you can restrict
    the operations that you can select. It exposes only logon, logoff connection
    operations and your select web services corresponding to your jobs.

  • Web services configuration fails !!!!!!

    hi all,
    i have tried many times to configure the web server in foundation services ( oracle HTTP server ) either on essbase or OBIEE 11g ( OPNMCTL and Oracle AS Instance in particular )
    the problem is the configuration fails and opmnctl also fails
    I tried to install both the application on windows server 2003 and windows xp pro seperately one each at a time.
    but yet it fails
    Are there any ideas links which will provide help to resolve this issue.
    or how to configure the oracle http server
    Edited by: U1111B on 05-Jul-2011 02:10

    Oracle Database - Enterprise Edition on Microsoft Windows 2008 (x86) is not yet certified but the status shows projected.
    OS Product- Certified With- Version- Status- Addtl. Info. -Components- Other- Install Issue
    2008 -10gR2- N/A- N/A- Projected -Yes- N/A- N/A- N/A
    And similarly Oracle Application Server 10g not yet certified with Microsoft Windows 2008 and there is also so future projections or plans yet.

  • OSB 11g  - lock jms/web-services connection

    Hello!
    I have next configuration:
    ws client <- -> proxy service (soap/http) <- -> osb business service <- one-way ssl -> ws provider (basic authentification)
    jms client <- -> proxy service (soap/jms) <- -^
    Problem:
    If run load test ws client - service work fine, but if in moment this test jms client send message then ws service and jms service have locks by 2 min.
    ThreadStackDump contains:
    "[ACTIVE] ExecuteThread: '39' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock java.util.Vector@6a692986 BLOCKED
                     java.util.Vector.isEmpty(Vector.java:279)
                     weblogic.net.http.KeepAliveCache.get(KeepAliveCache.java:150)
                     weblogic.net.http.HttpClient.findInCache(HttpClient.java:230)
                     weblogic.net.http.HttpsClient.New(HttpsClient.java:499)
                     weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)Do you have ideas about problem?
    Thanks

    The reason for asking was this type of thread locking issues requires reproducible set-up for further investigation. This type of investigation takes time/effort which might not be possible on Forums. Are you able to reproduce it consistently on other machines?If so if you can send me the reproducer, I can try analysis for you. (if time permits)
    Thanks
    Manoj

  • Qaaws - Query as a Web Service configuration in BO XI R 3.1 in SSL set up

    Description of Problem or Question:
    -- Need help in adding/managing hosts in the QAAWS component (Desktop toolset) to add/define new host. The server has a physical name like (for e.g.) ABCD1234
    While trying to add a host in QAAWS designer the URL is getting invalidated as it checked http:
    [server_name]:8080\dsws...
    not sure about the port # in our install, the CMS port is 6405 is that the one we shud give?
    The secure sockets layer protocol is enabled i.e. HTTPS for InfoView, i guess it does that matter for QAAWS?
    Product\Version\Service Pack\Fixpack (if applicable):
    Server: BOBJ Enterprise XI R 3.1 SP2
    Client:   BOBJ Enterprise XI R 3.1 SP2 (client tools) include QAAWS designer
    XCELCIUS Enterprise 2008 version
    Relevant Environment Information (OS & version, java or .net & version, DB & version):
    Server: Windows server 2008, IIS 7.5, .NET deployment of Infoview & CMC.
    Client: Windows XP professional SP 2
    Sporadic or Consistent (if applicable): N/A
    Edited by: Vaidhyanathan Narayanan on Jan 5, 2010 10:19 PM
    Edited by: Vaidhyanathan Narayanan on Jan 5, 2010 10:20 PM

    Hi Graeme,
    Could you please check whether from CMC the web intelligence report server is enabled or not?
    Regards,
    Sarbhjeet Kaur

Maybe you are looking for

  • HOW TO TRIGGER AN WORKFLOW FROM A PROGRAM ?

    HELLO THERE , CAN ANYBODY PLZ TELL ME HOW TO TRIGGER AN WORKFLOW FROM AN PROGRAM AND TO PAS THE VALUE TO THE CONTAINER ?

  • Quotes

    i have a problem in my program. i have a program that will allow user to enter comment and the comment get inserted into a table. the problem i am having is that when user enter text with quotes, my program fail to insert. if there any way i can esca

  • I had to trash pref files when upgrading to Logic 9

    Started with Logic 7 three years ago... So yesterday I upgraded to Logic 9 from 8, and I had two unusual problems. First, when I would record a track, the waveform overview wouldn't draw. It would make the blue box, with a line down the middle, and I

  • Upgrade  from ecc 5.0 to 6.0

    hello friends, i need  to know  what  are the  areas in r3  upgradation  project  , where  i might  have  to  work   as sd   consultant. i  specifically mean  functional areas.  i have  searched a lot in  forums but all i  get is documentation which 

  • OFFLINE BACK & ONLINE BACKUP

    I want to take a offline backup as well as online backup also. Operating System is Windows NT 4.0. Oracle version 8.0.6.1.0 what are the preventive steps should i follow and what are the commands to be use to complete this task.