JMS in web appliation

Hi,
I have a back end service for which I can retrieve information through JMS.From my front end (web client).I may fire different request to this back end service( which is running in pub-sub model).I want the response to be send back to the web client in real time(synchronously).Any suggestion reagarding this will be helpful.Please
Thanks

1. MQ Applet (You will need to open the network security)
2.Check with your JMS provider documentation. Some providers have started porting their client libraries over javascript, which can be run from within the browser.
TE

Similar Messages

  • JMS with web service ,project ?

    I would like to come up with a masters project on JMS and Web Service. I need to convince my lecturer whether this thesis in JMS is competative enough with latest technology.I need some advice and explaination about JMS and popular thesis topic that can make up.This has to be in a matter of problem solving if possible.Hope someone can help.This project may not to be a very huge project.
    Pls give some good idea's .
    Thanks you.
    regards
    kaviThangga

    Hi,
    Web Services is fine for B2B, and JMs is fine for Legacy system communication.
    Web Services + JMS is a good way in order to cooperate microsystem and mainframes.

  • WL 8.1 SP6 to WL10.3 upgrade any TIPS on "JMS, EJB, Web Service, JDK" etc?

    We are upgrading from BEA Weblogic 8.1 SP6 to Oracle Weblogic 10.3. The application running on WL 8.1 SP6 provides the services like - Web Service consumer, JMS server/consumer, RMI server. The JDK under WL 8.1 being 1.4.
    We have a mix of client application that are essentially JMS clients/senders and RMI clients. These clients will also be upgraded to Oracle Weblogic 10.3 but not at the same time as JMS server/consumer. So some clients may still be running on WL 8.1 JDK 1.4 while the server is running on WL 10.3 (that needs JDK 1.6)
    Please share any TIPs on compatibility issues (and how to overcome) for this mismatch between WL versions as well as JDK.
    Are there any specific details as for as JMS configuration setup from WL 8.1 to WL10.3.
    Appreciate your help!

    Some thoughts:
    * WL 10.3 fully supports 8.1 clients, so you can simply continue to use the 8.1 client jars. The drawback is that the clients won't be able to use new features like unit-of-order, and you may not get some performance benefits of the later clients.
    * I think WL 10.3 clients support the 1.5 and 1.6 JVMs.
    * I think WL 9.2 clients support 1.5 and 1.4 JVMs, so you might consider using 9.x clients during your transition period. This will give you access to more new features without forcing the client to use the 1.5 or 1.6 JVM.
    * As for mix-and-matching of JDK versions, you will need to develop your applications and serializable applications objects so that they continue to use the lowest common denominator. For example, if the same application code must run on 1.4 and a 1.5 client, then don't use generics. Also, avoid using new 1.5 or later JDK classes for serializable objects, if the objects must be passed to older clients (which, of course, will not be able to unmarshal such classes).
    * WL 10.3 and later stand-alone "full clients" can no longer always simply just use the "weblogic.jar". You can only include the weblogic.jar in the client classpath if the jar is embedded with a full weblogic install, otherwise, you must generate a "full client jar" using a command line utility and reference the generated jar instead. See [ Overview of Stand-alone Clients | http://download.oracle.com/docs/cd/E12839_01/web.1111/e13717/basics.htm#i1062773 ].
    * WL 10.3 configuration is quite different than 8.1 configuration. Some things to keep in mind:
    -- You now must also configure "WL Stores" (target to same target as the JMS server that uses the store). For JMS purposes, I recommend configuring a custom store per server and avoiding use of the default store.
    -- You still must configure JMS server(s) (configure each to reference a WL store that has the same target)
    -- You now must configure "JMS Modules", which contains definitions for destinations.
    -- In most cases, best practice is that you should configure one system module per set of JMS servers in a cluster and define a single "subdeployment" target for the module that directly lists each JMS server, target the module itself to a cluster, target destinations within the module to the subdeployment. Avoid "default targeting" for destinations, but its OK for connection factories.
    -- If some destinations are distributed across multiple JMS servers, while others are restricted to a single JMS server, then use two modules each with its own subdeployment. One module for the restricted case that uses regular destinations, and the other for the distributed case.
    Hope this helps,
    Tom

  • Need to use JMS in Web service for PUB/SUB pattern

    Hi All,
    I have JMS configured in my Web logic server 10.3.4.
    I have stand alone program for JMS in PUB/SUB pattern.
    I have Web service application with Apache CXF framework.
    Now, the problem I need to integrate JMS in my web service application for new web service with PUB/SUB pattern.
    Can any one guide me to this.
    I am trying to use @WLJmsTransport annotation provided by Weblogic. Is this approach is correct?
    And It is giving error during deployment that weblogic.jws.WLJmsTransport is not allowed as it is a JAX-WS type web service.
    I think It is creating problem with annotation parameters.
    I am using annotation like @WLJmsTransport(contextPath="transports", serviceUri="JMSTransport", queue="Queue", portName="JMSTransportServicePort")
    and ConnectionFactory with name ConnectionFactory and JNDI jms/ConnectionFactory, Queue with name Queue and JNDI jms/Queue, Topic with name Topic and JNDI jms/Topic.
    Thanks
    Thanks in advance.
    Edited by: HBM on 21 Apr, 2011 1:42 AM

    Use this link.
    http://webloic-wonders.com/weblogic/2011/04/30/jms-based-webservice-on-weblogic-server/
    Thanks.
    Harshal

  • ClassCastException when calling a JMS implemented web service

    Hi,
    I published a Message Driven Bean EJB to WebService using WebLogic 8.1 and servicegen.
    When I try to call it using the automatic generated Web interface, I receive the
    following ClassCastException.
    Do you see what is going wrong?
    Is it a bug?
    Thanks for your help
    Charles
    ClassCastException :
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.ClassCastException
    (see Fault Detail for stacktrace) at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:405)
    at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:322)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:296)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:312)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:253)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:138)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
    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:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97) at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    I use this and command :
    <servicegen
    destEar="${WAS_APPLICATIONS}/${version}${ear_ws_file}"
    contextURI="${version}WebServices" >
    <service
    JMSDestination="mq_receive"
    JMSAction="send"
    JMSDestinationType="queue"
    JMSConnectionFactory="mq_QCF"
    JMSOperationName="${JMSOperationName}"
    JMSMessageType="${JMSMessageType}"
    generateTypes="True"
    targetNamespace="http://www.francetelecom.com/cristal/${version}Webservices"
    serviceName="${version}"
    serviceURI="/${version}"
    expandMethods="True">
    </service>
    <classpath>
    <pathelement location="${build}" />
    </classpath>
    <classpath refid="classpath" />
    </servicegen>
    My MDB is
    public void ejbCreate () throws CreateException {
         LoggerConfigurator.configure();
    log.debug("called");
    public void onMessage(Message msg)
    log.debug("called");
              try
                   ObjectMessage objMessage = (ObjectMessage)msg;
                   String text = (String)objMessage.getObject();
                   home = lookupHome();
                   Toupper client = (Toupper)
                        PortableRemoteObject.narrow(home.create(), Toupper.class);
                   text=client.toupper(text);               
                   log.error("Toupper="+text);
                   startJMS();
                   sendJMS(text);
                   client.remove();
              } catch (Exception e)
                   e.printStackTrace();

    "mq_receive" is define as a Local JNDI Name of a Foreign JMSDestination.
    And it works when I use it with only the MDB (without WebService)
    Good try,
    Thanks
    Charles
    "Neal Yin" <[email protected]> wrote:
    My best guess is that JNDI name "mq_receive" is not bound as JMS queue.
    Thanks
    -Neal
    "Charles Desmoulins" <[email protected]> wrote in
    message
    news:[email protected]...
    Ok Neal,
    This is the result :
    <!-------------------- REQUEST ---------------->
    URL :
    http://localhost:7001/messageToupperWebServices/messageToupper
    Headers :
    SOAPAction: [""]
    Content-Type: [text/xml]
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoaporg/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header/><env:Body
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:toupper
    xmlns:m="http://www.francetelecom.com/cristal/messageToupperWebservices"><pa
    ram
    xsi:type="xsd:string">sAmple string totransform</param></m:toupper></env:Body></env:Envelope>
    <!-------------------- END REQUEST ------------>
    <!-------------------- RESPONSE --------------->
    URL :
    http://localhost:7001/messageToupperWebServices/messageToupper
    Headers :
    Date=Fri, 11 Jul 2003 14:29:33 GMT
    Server=WebLogic WebLogic Server 8.1 Thu Mar 20 23:06:05 PST 2003246620
    Content-Length=2522
    Content-Type=text/xml
    Envelope :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header/><env:Body><env:Fau
    lt><faultcode>env:Server</faultcode><faultstring>Exception
    during processing: java.lang.ClassCastException (see Fault Detail forstacktrace)</faultstring><detail><bea_fault:stacktrace
    >
    xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0"/>j
    ava.lang.ClassCastException
    atweblogic.webservice.component.jms.JMSSendInvocationHandler.invoke(JMSSendInv
    ocationHandler.java:131)
    atweblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.j
    ava:81)
    atweblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainImpl.jav
    a:125)
    atweblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:513)
    atweblogic.webservice.server.Dispatcher.process(Dispatcher.java:150)
    atweblogic.webservice.server.Dispatcher.doDispatch(Dispatcher.java:125)
    atweblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:74)
    atweblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java
    :98)
    atweblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebSer
    viceServlet.java:274)
    atweblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:393)
    atweblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServle
    t.java:244)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1053)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :387)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :305)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6291)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3575)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    </detail></env:Fault></env:Body></env:Envelope>
    <!-------------------- END RESPONSE ----------->
    An exception Exception during processing: java.lang.ClassCastException(see Fault
    Detail for stacktrace)
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing:java.lang.ClassCastException
    (see Fault Detail for stacktrace)
    atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:536)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:389)
    at ft.services.messageToupper.WSClient.main(WSClient.java:60)

  • SOAP over JMS in WebAS?

    Hi there,
    does anyone of ou know whether you can call a Web Service that runs inside the WAS via JMS.
    I do not men MDBs or sth like that. Simply replacing http by jms.
    I consider this option since the jms connection is not encrypted and I want to protect my payload via WS-Security.
    Every hint is appriciated!
    Helge

    Hi Helge,
    Sorry, such scenario is not supported, there is no way to do so with the current released versions - Netweaver 2004 and 2004s.
    HTH
    Peter

  • JMS Server - Web Server

    Hi folks,
    I want to use JMS in my CEP application. And I do not know where should i start. Documentation I think is not enough. What is your suggestion?
    Should I install an extra web server to handle JMS queue or can Oracle CEP server handle it?
    In addition, if some application use my web service written in java, will I have to installed an web server?
    I am using Oracle 11.1.1.3.
    Thanks.

    Hi alexalves,
    I downloaded application you mentioned. When i deploying, it successfully deployed but could not start. It says instance-propery tag must have value or ref attribute. I checked assembly file but i could not find any miss point. Error :
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean> <BEA-000000> <Looking for mandatory OSGi service dependency for bean [] matching filter (objectClass=org.osgi.service.startlevel.StartLevel)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean> <BEA-000000> <Found mandatory OSGi service for bean []>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.bundle.BundleFactoryBean> <BEA-000000> <Loading bundle from [file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSCepDeneme/JMSCepDeneme.jar]>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent INSTALLED), Exception (null), Time (1280936101469)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator> <BEA-000000> <Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [JMSCepDeneme (JMSCepDeneme)]>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext> <BEA-000000> <Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@278698e: display name [OsgiBundleXmlApplicationContext(bundle=JMSCepDeneme, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Wed Aug 04 18:35:01 EEST 2010]; root of context hierarchy>
    <Aug 4, 2010 6:35:01 PM EEST> <Notice> <Deployment> <BEA-2045000> <The application bundle "JMSCepDeneme" was deployed successfully to file:/D:/CEP_HOME/user_projects/domains/ocep_domain/defaultserver/applications/JMSCepDeneme/JMSCepDeneme.jar with version 1280936101312>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext> <BEA-000000> <Unpublishing application context OSGi service for bundle JMSCepDeneme (JMSCepDeneme)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent RESOLVED), Exception (null), Time (1280936101470)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent STARTED), Exception (null), Time (1280936101484)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.beans.factory.xml.XmlBeanDefinitionReader> <BEA-000000> <Loading XML bean definitions from URL [bundleentry://261.fwk36719251/META-INF/spring/JMSCepDeneme.context.xml]>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <org.springframework.beans.factory.support.DefaultListableBeanFactory> <BEA-000000> <Overriding bean definition for bean 'com.bea.wlevs.ede.api.Factory#jms-outbound_provider#0': replacing [Root bean: class [org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]>
    <Aug 4, 2010 6:35:01 PM EEST> <Error> <Deployment> <BEA-2045016> <The application context "JMSCepDeneme" could not be started. Could not initialize component "null": Configuration problem: Tag 'instance-property' must have either a 'value' attribute or a 'ref' attribute or 'props' element
    Offending resource: URL [bundleentry://261.fwk36719251/META-INF/spring/JMSCepDeneme.context.xml]>
    <Aug 4, 2010 6:35:01 PM EEST> <Error> <org.springframework.scheduling.timer.DelegatingTimerTask> <BEA-000000> <Unexpected exception thrown from Runnable: org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable@27978e1
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
         at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegatedExecutionApplicationContext.java:237)
         at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)
         at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$3.run(ContextLoaderListener.java:807)
         at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(RunnableTimedExecution.java:60)
         at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)
    >
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent STOPPED), Exception (null), Time (1280936101531)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent UNRESOLVED), Exception (null), Time (1280936101641)>
    <Aug 4, 2010 6:35:01 PM EEST> <Info> <OSGiLogReaderAdapter> <BEA-000000> <Bundle[261] JMSCepDeneme, Message (BundleEvent UNINSTALLED), Exception (null), Time (1280936101642)>
    <Aug 4, 2010 6:35:01 PM EEST> <Notice> <Deployment> <BEA-2045001> <The application bundle "JMSCepDeneme" was undeployed successfully> EPN Assemble File :
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:osgi="http://www.springframework.org/schema/osgi"
           xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
           xsi:schemaLocation="
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/osgi
      http://www.springframework.org/schema/osgi/spring-osgi.xsd
      http://www.bea.com/ns/wlevs/spring
      http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">   
        <wlevs:event-type-repository>
            <wlevs:event-type type-name="JMSTestEvent">
                <wlevs:class>com.oracle.cep.pattern.jmsadapter.TestEvent</wlevs:class>
            </wlevs:event-type>
        </wlevs:event-type-repository>
        <!-- generate specific number of events -->
         <wlevs:adapter id="eventGenerator"
              class="com.oracle.cep.pattern.jmsadapter.TestEventGenerator">
              <wlevs:instance-property name="eventCount"
                   value="50" />
              <wlevs:listener ref="channel1" />
         </wlevs:adapter>
        <!-- pass events through -->
        <wlevs:processor id="processor">
             <wlevs:listener ref="channel2"/>
        </wlevs:processor>
        <wlevs:event-bean id="testSink" class="com.oracle.cep.pattern.jmsadapter.TestSink"/>
        <bean id="testConverter" class="com.oracle.cep.pattern.jmsadapter.TestMessageConverter">
        <property name="properties">
           <props>
              <prop key="operatorName">Nievana Junger</prop>
           </props>
        </property>
        </bean>
        <wlevs:adapter id="jmsOutbound-map" provider="jms-outbound">
            <!-- configured in adapters.xml -->       
        </wlevs:adapter>
        <wlevs:adapter id="jmsOutbound-text" provider="jms-outbound">
            <wlevs:instance-property name="converterBean" ref="testConverter"/>
            <wlevs:instance-property name="jndiProviderUrl" value="vm://localhost"/>
            <wlevs:instance-property name="jndiFactory" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
            <wlevs:instance-property name="connectionJndiName" value="ConnectionFactory"/>
            <wlevs:instance-property name="destinationJndiName" value="dynamicTopics/TextTopic"/>
            <wlevs:instance-property name="connectionUser" value="aa"/>
            <wlevs:instance-property name="connectionPassword" value="aa"/>
            <wlevs:instance-property name="user" value="dsdsa"/>
            <wlevs:instance-property name="password" value="dsadas"/>
            <wlevs:instance-property name="deliveryMode" value="nonpersistent"/>
        </wlevs:adapter>
        <wlevs:adapter id="jmsInbound-text" provider="jms-inbound">
            <!-- configured in adapters.xml -->
            <wlevs:instance-property name="converterBean" ref="testConverter"/>
            <wlevs:listener ref="channel3"/>
        </wlevs:adapter>
        <wlevs:adapter id="jmsInbound-map" provider="jms-inbound">
            <wlevs:instance-property name="eventType" value="JMSTestEvent"/>
            <wlevs:instance-property name="jndiProviderUrl" value="vm://localhost"/>
            <wlevs:instance-property name="jndiFactory" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
            <wlevs:instance-property name="connectionJndiName" value="ConnectionFactory"/>
            <wlevs:instance-property name="destinationJndiName" value="dynamicQueues/MapQueue"/>
            <wlevs:instance-property name="user" value="dsdsa"/>
            <wlevs:instance-property name="password" value="dsadas"/>
            <wlevs:instance-property name="connectionUser" value="test1"/>
            <wlevs:instance-property name="connectionPassword" value="test123"/>
            <wlevs:instance-property name="workManagerName" value="JettyWorkManager"/>
            <wlevs:listener ref="channel3"/>
        </wlevs:adapter>
        <wlevs:channel id="channel2" event-type="JMSTestEvent">
            <wlevs:listener ref="jmsOutbound-map"/>
            <wlevs:listener ref="jmsOutbound-text"/>
        </wlevs:channel>
        <wlevs:channel id="channel3" event-type="JMSTestEvent">
            <wlevs:listener ref="testSink"/>
        </wlevs:channel>
         <wlevs:channel id="channel1" event-type="JMSTestEvent">
              <wlevs:listener ref="processor" />
         </wlevs:channel>
    </beans>Adapters.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
         <jms-adapter>
              <name>jmsInbound-text</name>
              <jndi-provider-url>vm://localhost</jndi-provider-url>
              <jndi-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jndi-factory>
              <connection-jndi-name>ConnectionFactory</connection-jndi-name>
              <destination-jndi-name>dynamicTopics/TextTopic</destination-jndi-name>
              <connection-user>jll</connection-user>
              <connection-password>jpoo</connection-password>
              <work-manager>
              JettyWorkManager
            </work-manager>
              <concurrent-consumers>1</concurrent-consumers>
              <session-transacted>false</session-transacted>
              <delivery-mode>nonpersistent</delivery-mode>
         </jms-adapter>
         <jms-adapter>
              <name>jmsOutbound-map</name>
              <event-type>
              JMSTestEvent
            </event-type>
              <!-- <jndi-provider-url>t3://localhost:7001</jndi-provider-url>-->
              <jndi-provider-url>vm://localhost</jndi-provider-url>
              <jndi-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jndi-factory>
              <connection-jndi-name>ConnectionFactory</connection-jndi-name>
              <destination-jndi-name>dynamicQueues/MapQueue</destination-jndi-name>
              <user>jkjjppj</user>
              <password>njnjnjnjn</password>
              <delivery-mode>nonpersistent</delivery-mode>
         </jms-adapter>
    </n1:config>

  • How do i develop a chat application using jms over web based

    I want to develop a chat application using jms with mailing,file transfer and audio facilities
    can anyone help me to how to go abt that

    There is a good article from Sun on a simple example of what you want - it could serve as a basis for you.
    http://developer.java.sun.com/developer/technicalArticles/peer/

  • Specifying javac in WLS 5.1 for deployed web appliations (.war)

              I am using WLS 5.1, sp10. I have created a J2EE web application (e.g.
              .war file), which I have deployed in exploded directory format. My
              .html pages and servlets are working fine. My .jsp pages are not
              compiling however. In my web.xml, I have only registered the servlets,
              not the jsp pages. I have also made no JSP settings in the web.xml
              file.
              This is the error I'm getting:
              Wed Oct 10 16:52:58 EDT 2001:<E> <WebAppServletContext-myCompany>
              Compilation of
              D:\weblogic\bn\WEB-INF\_tmp_war_myCompany\jsp_servlet\_myPath\__myJsp.java
              failed: java.io.IOException: CreateProcess: javac -classpath
              <big-classpath-list>;null -d D:\weblogic\bn\WEB-INF\_tmp_war_myCompany
              D:\weblogic\bn\WEB-INF\_tmp_war_myCompany\jsp_servlet\_myPath\__myJsp.java
              error=2
              at java.lang.Win32Process.create(Native Method)
              at java.lang.Win32Process.<init>(Win32Process.java:64)
              at java.lang.Runtime.execInternal(Native Method)
              at java.lang.Runtime.exec(Runtime.java:275)
              at java.lang.Runtime.exec(Runtime.java:219)
              at weblogic.utils.Executable.exec(Executable.java, Compiled
              Code)
              at weblogic.utils.Executable.exec(Executable.java:107)
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java,
              Compiled Code)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
              Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:11
              5)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:13
              8)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              ava:922)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              ava:886)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextMan
              ager.java:269)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              Compiled Code)
              I think the problem is that the java compiler (javac.exe) is not
              correct. In my weblogic.properties file, I changed the compile command
              to use the jdk I installed, so the path is d:/jdk1.2.2/bin/javac.exe.
              However, it did not seem like the web application looked at the
              weblogic.properties setting.
              I solved the problem by putting d:/jdk1.2.2/bin into the path system
              variable on my WinNT machine. But I don't like that solution. I also
              don't want to specify the javac location in the web.xml -- I want our
              customers to determine that, since they might be using a wide range of
              jdks.
              Is there a weblogic-specific solution out there?
              TIA,
              Steve
              [att1.html]
              

    I should mention that regular jsps, located in the public_html
              directory, compiled fine, without me having to put javac.exe in the PATH
              system variable.
              SV
              Steve Vlcan wrote:
              >
              > I am using WLS 5.1, sp10. I have created a J2EE web application (e.g.
              > .war file), which I have deployed in exploded directory format. My
              > .html pages and servlets are working fine. My .jsp pages are not
              > compiling however. In my web.xml, I have only registered the
              > servlets, not the jsp pages. I have also made no JSP settings in the
              > web.xml file.
              >
              > This is the error I'm getting:
              >
              > Wed Oct 10 16:52:58 EDT 2001:<E> <WebAppServletContext-myCompany>
              > Compilation of
              > D:\weblogic\bn\WEB-INF\_tmp_war_myCompany\jsp_servlet\_myPath\__myJsp.java
              > failed: java.io.IOException: CreateProcess: javac -classpath
              > <big-classpath-list>;null -d D:\weblogic\bn\WEB-INF\_tmp_war_myCompany
              > D:\weblogic\bn\WEB-INF\_tmp_war_myCompany\jsp_servlet\_myPath\__myJsp.java
              > error=2
              > at java.lang.Win32Process.create(Native Method)
              > at java.lang.Win32Process.<init>(Win32Process.java:64)
              > at java.lang.Runtime.execInternal(Native Method)
              > at java.lang.Runtime.exec(Runtime.java:275)
              > at java.lang.Runtime.exec(Runtime.java:219)
              > at weblogic.utils.Executable.exec(Executable.java, Compiled
              > Code)
              > at weblogic.utils.Executable.exec(Executable.java:107)
              > at
              > weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java,
              >
              > Compiled Code)
              > at
              > weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
              >
              > at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
              > Compiled Code)
              > at
              > weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
              > at
              > weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              >
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:11
              >
              > 5)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:13
              >
              > 8)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              >
              > ava:922)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.j
              >
              > ava:886)
              > at
              > weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextMan
              >
              > ager.java:269)
              > at
              > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
              >
              > at
              > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
              > Compiled Code)
              > ----------
              >
              > I think the problem is that the java compiler (javac.exe) is not
              > correct. In my weblogic.properties file, I changed the compile
              > command to use the jdk I installed, so the path is
              > d:/jdk1.2.2/bin/javac.exe. However, it did not seem like the web
              > application looked at the weblogic.properties setting.
              >
              > I solved the problem by putting d:/jdk1.2.2/bin into the path system
              > variable on my WinNT machine. But I don't like that solution. I also
              > don't want to specify the javac location in the web.xml -- I want our
              > customers to determine that, since they might be using a wide range of
              > jdks.
              >
              > Is there a weblogic-specific solution out there?
              >
              > TIA,
              > Steve
              [att1.html]
              

  • 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

  • Web logic siebel jms messaging

    Hi,
    We are trying to implement jms messaging to transfer data from siebel to an external database...using the following architecture:
    1. create jms queue (web logic web server)
    2. use EAI JMS transport business service in siebel to send data to this queue.
    issues : We have a local installation of web logic on which I created a queue in the default jms server.
    I have done all the necessart setup in siebel side like - creating a new named subsystem - JAVA and mentioning the path of the siebel.jar and siebel_enu.jar file.
    I have passed the queue name as one of the parameter to the JMS transport Business service. I am unable to locate the jndi.properties file that siebel would use for lookup.
    The business service is failing on call.....Pleass help...If required I can provide the code i am using......and the setup details .....
    Regards,
    Siddharth

    Hi,
    Be also sure that you enabled cross-domain credentials.
    http://e-docs.bea.com/wls/docs103/secmanage/domain.html#wp1176064
    HTH !
    Regards.

  • Can you help me?the config error about ORACLE Web Application Server3.0 for Solaris,

    hello anyone
    i install oracle7.3.4 server
    in Sun Sparcstation20 Solaris2.6 Japanese
    everything is ok,
    and i want to install ORACLE
    WEB appliation server 3.0too
    the installer is ok too,
    i startup the serivce
    >owsctl start wrb
    >owsctl start admin
    but when i open the netscape and
    CRAETE and START a new LISTENER
    there is something wrong.
    **************************error message*******
    OWS-05721: The Web Listener www failed to start:
    Oracle Web Listener 3.0.1 Production (Export), Version 2.14FC1
    Copyright 1997 Oracle Corp. All Rights Reserved.
    Error: A failure occurred ( Permission denied ) when assigning a port ( domain: INTERNET01, address: 0.0.0.0, port: 80 ).
    Error: Failed to start the server.
    Error: The server could not initialize
    Information: The server is exiting
    OWS-08811: Unable to startup Oracle Web Listener `www'.
    Oracle Web Listener Home Page
    From here, you can do the following:
    Create a new Oracle Web Listener to run on your machine by clicking the Create Listener... button.
    Modify existing Oracle Web Listeners by selecting the Configure link below.
    Start, Stop or Delete existing Oracle Web Listeners by selecting the appropriate link below.
    can anyone help me , it is too difficult for me.
    the startup file of Solaris is here
    # @(#)cshrc 1.11 89/11/29 SMI
    umask 022
    set path=(/bin /usr/bin /usr/ucb /etc .)
    if ( $?prompt ) then
    set history=32
    endif
    setenv ORACLE_BASE /oracle/app/oracle
    setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
    setenv ORACLE_SID hlp3
    setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
    setenv ORAWEB_SITE www
    setenv ORAWEB_BASE $ORACLE_HOME/ows
    setenv ORAWEB_ADMIN $ORACLE_BASE/admin
    setenv ORAWEB_CARTX $ORACLE_HOME/ows/cartx
    setenv DEF_INSTALL TRUE
    setenv ORA_CSM_MODE line
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:
    setenv ORACLE_TERM xsun5
    setenv TMPDIR /var/tmp
    setenv PATH .:$ORACLE_HOME/bin:$ORACLE_HOME/obackup/bin:/opt/bin:/usr/local/bin:/bin:/usr/bin:/usr/css/bin:/usr/openwin/bin:/usr/sbin:/usr/ucb:$ORAWEB_HOME/bin
    setenv ORA_NLS32 $ORACLE_HOME/ocommon/nls/admin/data
    setenv DEF_INSTALL TRUE
    setenv MANPATH /opt/SUNWspro/man:/opt/SUNWste/licence_tools/man
    # setenv LANG
    # setenv TWO_TASK
    set ORAENV_ASK = NO
    source /opt/bin/coraenv
    unset ORAENV_ASK
    source /oracle/app/oracle/product/7.3.4/ows/3.0/install/owsenv_csh.sh
    # @(#)local.login 1.3 93/09/15 SMI
    stty -istrip
    # setenv TERM `tset -Q -`
    # if possible, start the windows system. Give user a chance to bail out
    if ( `tty` == "/dev/console" ) then
    if ( $TERM == "sun" &#0124; &#0124; $TERM == "AT386" ) then
    if ( ${?OPENWINHOME} == 0 ) then
    setenv OPENWINHOME /usr/openwin
    endif
    echo ""
    echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
    sleep 5
    echo ""
    $OPENWINHOME/bin/openwin
    clear # get rid of annoying cursor rectangle
    logout # logout after leaving windows system
    endif
    endif
    setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
    setenv PATH /bin:/usr/bin:/etc:/usr/etc:/usr/openwin/bin:/usr/ucb:/oracle/app/oracle/product/734/bin:$ORAWEB_HOME/bin
    setenv NLS_LANG japanese_japan.ja16euc
    setenv LANG japanese
    setenv ORACLE_TERM xsun5
    setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
    setenv ORAWEB_SITE www
    setenv TNS_ADMIN /oracle/app/oracle/product/7.3.4/network/admin
    can anyone help me and tell me how to solve it or any aother way book doc to do it,
    thank you
    i am very nervious
    my email address:
    [email protected]
    [email protected]

    see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • Asynchronous Web Service

    I am looking for an approach to decouple my sytem. Traditional approach I have done before is to construct custom xml message, send the message to JMS queue. Another process (MDB) retrieve the message from the queue, parse the message and invoke the corresponding services.
    This approach is working, however, it involves a lot of work (to construct and parse the xml message).
    I am looking for the new approach based on asynchronous Web Service.
    Read through the document:
    http://e-docs.bea.com/wls/docs81/webserv/jmstransport.html#1054482
    In weblogic 8.1, you can use JMS transport to invoke a webLogic web service. Also, you can create asynchronous client to invoke web service. Have some questions here:
    1. the document did not emphasize the advantage to use JMS based web service. It sounds like it's just an alternative approach comparing the traditional http based approach. does JMS based web service mean more reliable?
    2. for me, to use JMS base web service with RPC (synchronous) type of client sounds funky. Is there a way to specify that the JMS based web service is for aynchronous client only?
    3. the way asynchronous client work is to create a temp response queue to receive the web service response. Is there any performance penalty? For my case, I never expect any result to come back - all actions return void (why? cause all the services interact with the same database).
    4. continue to question 3. Is there a way to specify that the asynchronous client never expect any result and don't create a temp response queue? Also, if the return result is void, whether or not the response queue is still created?
    Ok, here's the short question - what I am looking for is an alternative approach to replace the traditional approach. Sounds for me, it should be a combination of JMS based web service and asynchronous client. Weblogic seperate them into two seperate features. How to efficiently use them together?
    thanks.

    1. the document did not emphasize the advantage to
    use JMS based web service. It sounds like it's just
    an alternative approach comparing the traditional
    http based approach. does JMS based web service mean
    more reliable? JMS transport is not emphaized because it is not a
    standard. You can not use JMS transport and interop
    with other vendors.
    >
    2. for me, to use JMS base web service with RPC
    (synchronous) type of client sounds funky. Is there a
    way to specify that the JMS based web service is for
    aynchronous client only? Sorry, no.
    >
    3. the way asynchronous client work is to create a
    temp response queue to receive the web service
    response. Is there any performance penalty? For my
    case, I never expect any result to come back - all
    actions return void (why? cause all the services
    interact with the same database).
    4. continue to question 3. Is there a way to specify
    that the asynchronous client never expect any result
    and don't create a temp response queue? Also, if the
    return result is void, whether or not the response
    queue is still created?The response queue is created when the JMS connection is
    created. Hence the temp queue is created always. I agree
    that it is nice to have an option to turn it off. Will try
    to add it in 9.0
    >
    Ok, here's the short question - what I am looking for
    is an alternative approach to replace the traditional
    approach. Sounds for me, it should be a combination
    of JMS based web service and asynchronous client.
    Weblogic seperate them into two seperate features.
    How to efficiently use them together? You are right, JMS transport and async client can be
    combined to form a scalable system. It is not
    optimized for this use case in 8.1, because the focus
    was on portability (async client is WLS specific) and
    interop.
    An alternate approach will be to expose a POJO as
    web service. POJO can drop the incoming data to a
    JMS queue. Then use an MDB to drain the queue to
    do the actual work. This way, the client will have
    a typed interface (in WSDL) to work with and it can
    use the normal HTTP transport. Since the POJO is
    just doing an enqueue, I think it can scale well too.
    Regards,
    http://manojc.com

  • How to create document/literal web services with WLS7

    How do you create document/literal web services with WLS7 ( not workshop)
    - Is it possible with servicegen and stateless EJBs as the backend component?
    The default is RPC/Soap-encoded is there anyway to craft the web-services.xml
    to make it document/literal
    - Is it possible with the JMS-implemented web services - have not tried this yet
    - Is there another mechanism?

    That would be the <web-service> element in the web-services.xml file, of course.
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Rich,
    Try adding a style="document" attribute to the starting <web-service>
    element.
    The might be a way to get <servicegen> to do this for you, but I haven't
    found
    it yet :-)
    Regards,
    Mike Wooten
    "Rich Muth" <[email protected]> wrote:
    How do you create document/literal web services with WLS7 ( not workshop)
    - Is it possible with servicegen and stateless EJBs as the backend component?
    The default is RPC/Soap-encoded is there anyway to craft the web-services.xml
    to make it document/literal
    - Is it possible with the JMS-implemented web services - have not tried
    this yet
    - Is there another mechanism?

Maybe you are looking for

  • How to add radiobutton in table control

    dear all i want to add radiobutton in table control and want to select the corresponding data & display that selected data in another screen please guide. Moderator Message: Please search for available information before posting. Edited by: kishan P

  • Can't run Xcode project due to LLDB

    When I click 'Run', Xcode crashes instantly, regardless of my code. The crash report says that the LLDB plugin can not be read correctly ... Process:     Xcode [2184] Path:        /Applications/Xcode.app/Contents/MacOS/Xcode Identifier:  com.apple.dt

  • How to get rid of drive encryption?

    Hello,  I don't know if this is the right place to post this. If not, please redirect to me the appropiate place. I have a HP Elitebook Folio 9470m with Windows 7 Pro x64. Previous user configured Drive Encryption through HP Protect Tools. Everytime

  • Burning a windows DVD from iPhoto 09

    Dose a Windows DVD burned from iPhoto have the information on board to allow printing of the photos, I seem to recollect one had the choice of including this info prior to the burn, but cannot remember from where.

  • Is it possible for my phone and my Nano to share the same bluetooth device?  If so, does the music stop when receiving a phonecall?

    This might be a totally dumb Q, but I am so tech challenged it is pitiful.  Is it possible for my phone and my Nano to share the same bluetooth device?  If so, does the music stop on the Nano when receiving a phonecall?