Issues with JMS messaging between two Glassfish Domains

All -
I have a stand alone client and two Glassfish Domains - each of which has a message bean on it. I have successfully sent messages from the client to each message bean, however, I then want the message beans to be able to send messages back and forth from one another. This is where I run into a problem. For some reason, I am getting errors when trying to send a message from one message bean on Domain1 to another message bean on Domain2. Is this possible to do? Can someone help out with the exception that I am getting below?
Thanks in advance....
package mdbs;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.Session;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
* @author frostry
public class SendMessage {
    Context ctx;
    Boolean sendMessage(String connFactory, String destResource, String providerURL, Map message) {
        Connection connection = null;
        Session session = null;
        try{
            context(providerURL);
            ConnectionFactory connectionFactory = (ConnectionFactory) lookup("jms/tankConnectionFactory");  // connFactory
            Queue queue = (Queue) lookup(“jms/tankQueue”);   // destResource
            System.out.println("QueueName = "+queue.getQueueName());
            connection = connectionFactory.createConnection();
            session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE);
            MessageProducer messageProducer = session.createProducer(queue);
            MapMessage mapMsg = session.createMapMessage();
                //TextMessage message = session.createTextMessage("It is a message from main class "+  ": "+ i);
                Set keys = message.keySet();
                Iterator i = keys.iterator();
                while (i.hasNext()) {
                    String key = (String) i.next();
                    String val = (String) message.get(key);
                    mapMsg.setString(key, val);
                System.out.println( "Message Is:"+ mapMsg.toString());
                messageProducer.send(mapMsg);
        } catch(JMSException e) {
            e.printStackTrace();
        } catch(Exception ex){
            ex.printStackTrace();
        return true;
    public void context(String providerURL) {
        Hashtable properties = new Hashtable(2);
        properties.put(Context.PROVIDER_URL,"iiop://127.0.0.1:1481");   // providerURL
        properties.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
        try {
            ctx = new InitialContext(properties);
        } catch (NamingException ex) {
            ex.printStackTrace();
   public Object lookup(String name){
        try {
            System.out.println("About to lookup dest resource = "+name);
            return ctx.lookup(name);
        } catch (NamingException ex) {
            ex.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        return null;
from domain.xml on Domain2 - the IIOP port is 1481:
<iiop-service client-authentication-required="false">
<orb max-connections="1024" message-fragment-size="1024" use-thread-pool-ids="thread-pool-1"/>
<iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="1481" security-enabled="false"/>
The output I get is:
A Message received by TankBean: MessageTitle = start
list[i] ==> 127.0.0.1:1481
corbaloc url ==> iiop:[email protected]:1481
QueueName = PhysicalQueue
java.lang.NullPointerException
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:189)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
at com.sun.messaging.jms.ra.DirectConnectionFactory._allocateConnection(DirectConnectionFactory.java:569)
at com.sun.messaging.jms.ra.DirectConnectionFactory.createConnection(DirectConnectionFactory.java:262)
at com.sun.messaging.jms.ra.DirectConnectionFactory.createConnection(DirectConnectionFactory.java:241)
at mdbs.SendMessage.sendMessage(SendMessage.java:43)
at mdbs.TankBean.FireMissile(TankBean.java:138)
at mdbs.TankBean.startTank(TankBean.java:88)
at mdbs.TankBean.onMessage(TankBean.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2920)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4011)
at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1111)
at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:74)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:179)
at $Proxy124.onMessage(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:258)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)

I don't have any ground-breaking news for you, just wanted to say that you're correct - you sure can send messages from one server instance to another.
I've never worked with GlassFish, but JMS is JMS and exchanging messages in the way you described should work just fine.
Let me just make sure about the obvious:
Example: instance A, port 1099, queue qA; instance B, port 2000, queue qB
To send message from A to B you create InitialContext for server B (port 2000), lookup queue qB and put a message on it.
To send message from B to A you create InitialContext for server A (port 1099), lookup queue qA and put a message on it.
I'm sure you're doing this, though.
You can use this code to print the content of JNDI tree:
     public void printList(NamingEnumeration<NameClassPair> list) {
          NameClassPair entry;
          System.out.println("JNDI tree:");
          while (list.hasMoreElements()) {
               entry = list.nextElement();
               System.out.println("name=", entry.getName(), ", class=", entry
                         .getClassName());
You call it like this: printList(initiaiContext.lookup("/"));
You can replace "/" with the path you want to list. In your case "/jms" could be more useful.
With this method you can see if all your objects (connection factories, queues, whatnot) are bound where they should be.
If all is there things should work - just keep digging.
HTH,
Mark

Similar Messages

  • Issue with RN messages between 10g and 11g

    Hi All,
    We are facing some issues for RN messages;
    We have configured Rosettanet Actions on both 10G and 11G . In 11G we have the RNTP (remote trading partner) in 10G we have host. The messages posted from host(10g) are not reaching the 11g remote TP, but failing due to the below errors;
    <29-Aug-2012 14:47:07 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <B2B Label:PCBPEL_11.1.1.6.0_GENERIC_111
    214.0600.1553: java.lang.NullPointerException
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:212)
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:582)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1919)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3718)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Could anyone help us on this issue?
    Regards,
    Raj

    Hi Dheeraj ,
    1. With Both 10G we are getting the below error with Rosettanent Exchange Protocol Version 01.10 :
    Description: An unexpected error occurred during validation
    StackTrace:
    Error -: AIP-51505: General Validation Error: Error -: AIP-51505: General Validation Error: oracle.xml.parser.schema.XSDException
    at oracle.tip.adapter.b2b.document.rn20.RNDocumentPlugin.processIncomingDocument(RNDocumentPlugin.java:163)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1927)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2617)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2487)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2442)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    However , when we changed the Exchange Protocol Version to V02.00 we got the below error :
    Machine Info: (APT3VW03)
    Description: B2B adapter general error
    StackTrace:
    Error -: AIP-50031: B2B adapter general error: Error -: AIP-50025: Repository error : Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "null", To party[NAME] "null", Business action name "RequestPurchaseOrderAction"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:2006)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2617)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2487)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2442)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    2. With both 11G Environments we are getting the below error (Exchange Protocol Version 01.10):
    <05-Sep-2012 13:49:36 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <B2B Label:PCBPEL_11.1.1.6.0_GENERIC_111
    214.0600.1553: java.lang.NullPointerException
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:212)
    at oracle.tip.b2b.exchange.rnif11.RNExchangePlugin.decodeIncomingMessage(RNExchangePlugin.java:582)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1919)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3883)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    <05-Sep-2012 13:49:36 o'clock IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <java.lang.NullPointerException
    at oracle.tip.b2b.msgproc.DbAccess.insertMsgTblRowImpl(DbAccess.java:621)
    at oracle.tip.b2b.msgproc.DbAccess.insertMsgTblRow(DbAccess.java:524)
    at oracle.tip.b2b.msgproc.DbAccess.updateWireBusinessToErrorState(DbAccess.java:6241)
    at oracle.tip.b2b.engine.Engine.handleInboundException(Engine.java:5130)
    at oracle.tip.b2b.engine.Engine.handleExceptionBeforeIncomingTPA(Engine.java:5062)
    at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1983)
    at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1650)
    at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:4042)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3883)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3205)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:677)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:211)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Regards,
    Raj

  • Authentication needed after doing trust between two different domains.

    Hi There,
    I have a problem when i did the trust relationship between two different domains in two different forests ,,in the trust relationship steps all working two ways trust,with external trust,stub zone created on both domains and they are validated in both sides
    ,,my problem is with the objects it can't be retrieved from side and it can be from the other side . For instance :
    NY domain can get the users and computers of 2012DC1 
    but 2012DC1 can't get the users and computers of NY
    Date and time are the same,i am always getting this error 
    The session setup from computer '2012DC1' failed because the security database does not contain a trust account 'test.com.' referenced by the specified computer.  
    USER ACTION  
    If this is the first occurrence of this event for the specified computer and account, this may be a transient issue that doesn't require any action at this time.  If this is a Read-Only Domain Controller and 'test.com.' is a legitimate machine account
    for the computer '2012DC1' then '2012DC1' should be marked cacheable for this location if appropriate or otherwise ensure connectivity to a domain controller  capable of servicing the request (for example a writable domain controller).  Otherwise,
    the following steps may be taken to resolve this problem:  
    If 'test.com.' is a legitimate machine account for the computer '2012DC1', then '2012DC1' should be rejoined to the domain.  
    If 'test.com.' is a legitimate interdomain trust account, then the trust should be recreated.  
    Otherwise, assuming that 'test.com.' is not a legitimate account, the following action should be taken on '2012DC1':  
    If '2012DC1' is a Domain Controller, then the trust associated with 'test.com.' should be deleted.  
    If '2012DC1' is not a Domain Controller, it should be disjoined from the domain.
    Can you please help me in this error.
    Thank You in advance.

    Hello,
    "The session setup from computer '2012DC1' failed because the security database does not contain a trust account 'test.com.' referenced by the specified computer. "
    This belongs to the machine 2012Dc1 in test.com and not to the other domain from your trust. Seems for me that you mix the trust with the problems of the machine 2012DC1 in test.com.
    In this error message 2012DC1 has lost the trust to its OWN domain and therefore you have to find the reason. How exactly was this machine installed?
    Or was there a restore on that machine from not supported type of backup like image/clone/snapshot?
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Problem with config sync between two CSM-S modules

    Hi everybody,
    I have a problem with config sync between two CSM-S modules.
    I am using CSM-S software version 2.1(8).
    The acitve module is used in a 6509 with WS-SUP720-BASE supervisor running software version 12.2(18)SXF12a.
    The standby module is used in a 6509-V with VS-S720-10G supervisor (no VSS setup) running software version 12.2(33)SXI3.
    Failover seems to work fine:
    switch-active#sh modu csm 2 ft                                      
    FT group 1, vlan 398
    This box is active
    Configuration is out-of-sync
    priority 150, heartbeat 3, failover 40, preemption is on
    switch-standby# sh modu csm 2 ft
    FT group 1, vlan 398
    This box is in standby state
    Configuration is out-of-sync
    priority 80, heartbeat 3, failover 40, preemption is on
    The command (on active side) "hw-module contentSwitchingModule 2 standby config-sync" leads to following result:
    switch-active:
    2010-04-14T16:21:45+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56042: Apr 14 16:21:44.223: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Active: Bulk sync started
    2010-04-14T16:21:45+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56043: Apr 14 16:21:44.251: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Active: Sending configurations to Standby CSM, this may take several minutes!
    2010-04-14T16:21:46+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56044: Apr 14 16:21:45.995: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Active: Sending configuration to Standby CSM
    2010-04-14T16:21:51+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56045: Apr 14 16:21:50.831: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Active: Sending configuration to Standby CSM
    2010-04-14T16:21:57+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56046: Apr 14 16:21:56.151: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Active: Sending configuration to Standby CSM
    2010-04-14T16:22:59+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56047: Apr 14 16:22:58.791: %CSM_SLB-3-REDUNDANCY: Module 2 FT error: Active: Manual bulk sync timed out
    2010-04-14T16:22:59+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56048: Apr 14 16:22:58.803: %CSM_SLB-3-REDUNDANCY: Module 2 FT error:
    2010-04-14T16:22:59+02:00 srz16-1b.net.dsh.at/srz16-1b.net.dsh.at 56049:  FT CONFIG SYNC: Failed config sync entity send
    switch-standby:
    2010-04-14T16:21:45+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2475: Apr 14 16:21:44.232: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Standby: Bulk sync started
    2010-04-14T16:21:45+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2476:
    2010-04-14T16:21:45+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2477: Apr 14 16:21:44.240: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: STANDBY:Configuration is being received, This may take several minutes!
    2010-04-14T16:21:49+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2478: Apr 14 16:21:48.824: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Standby: Receiving configuration from Active CSM
    2010-04-14T16:21:54+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2479: Apr 14 16:21:53.964: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Standby: Receiving configuration from Active CSM
    2010-04-14T16:21:59+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2480: Apr 14 16:21:58.852: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Standby: Started clearing configuration
    2010-04-14T16:21:59+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2481: Apr 14 16:21:59.400: %CSM_SLB-4-REDUNDANCY_WARN: Module 2 FT warning: Standby: Config Sync does not save running-config to startup-config
    2010-04-14T16:22:00+02:00 srz31-5a.net.dsh.at/srz31-5a.net.dsh.at 2482: Apr 14 16:21:59.400: %CSM_SLB-6-REDUNDANCY_INFO: Module 2 FT info: Standby: Previous configuration are being deleted from supervisor
    The last log message on standby device seems to be correct - there is no CSM configuration after the attempted config sync.
    Our configuration includes about 3500 lines and it is really uncomfortable to keep in sync manually.
    Maybe someone has the same problem?
    kind regards,
    Christoph

    Hi Christoph,
    I am running into the exact same issue. Upon further investigation I've discovered that this is a known bug, CSCtd09117.  You can read more about it here: http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtd09117 .   Apparently this is fixed in ver 12.2(32.8.11)SX323 .
    I haven't had a chance to upgrade yet, so I can't verify the fix, but if it works for you please let me know.
    Regards,
    Brandon

  • Reconnect issue with JMS sender Communicatio channel

    Hi All,
       We need help for JMS sender channel.from last two days we are getting issue with JMS channels.they are looking green but not picking data from Mq ssue to this lot of messages got stuck in MQ queue and its stop writting messsages .
       Problem from PI side is JMS communication channels are not showing any issue.even they do not pick data or lost connection with MQ server they are looking green. so its very difficult for PI team to find out correct Comunication channels which stop picking up the data.when we start/stop that CC its start picking data.
    Do anybody face this issue.please do let us know permenent solution instead of doing start/stop when user report issue.
    Thanks in advance
    Best Regards
    Monica Bhosale
    Edited by: monica bhosale on Mar 8, 2012 8:56 AM

    we are using PI 7.11 and this issue was fixed in SP06
    until then one of the work around we were using was to schedule the adapter to stop and start every 3 hour or so

  • Record a videocall with shared content between two endpoints

    Good day! I faced a next task a record of a videocall between two endpoints.  For example, a videocall with shared content between two DX70. I doubt that MediaSense is able to record content, whereas Telepresence Content Server is extremely expensive solution. What simple way is for sorting out my issue?

    I believe that if you edit any song information (Name, Artist, Album, etc.), iTunes refuses to edit the actual file (but keeps a cache record of the changes). If you "Compile iTunes Library" (see below), it will make a change to the duplicate file it creates, and keeps record of the ratings as well.
    To compile your iTunes library, go to the "iTunes" option, and select Library... >> Organize Library... and select "Consolidate Files". This will duplicate your files, and move the duplicates to the iTunes Music Folder (organized by artist and such). You can then copy and move this file to your iMac.

  • Issue with JMS inbound Adapter  and Asynchronous BPEL

    Hi Gurus,
    I am facing the below issue with JMS inbound Adapter and Asynchronous BPEL .
    I have 2 JMS Queues one inbound and one outbound . The Composite has multiple BPEL Components around 4 on an average and i have 4 composites similar to that .
    Totally 4 Composites * 4 BPEL Components = 16 Services
    Propoesd Solution :
    I have used MessageSelector in the JMS Adapter for selecting the incoming message. The BPEL gets invoked if the message selector is true and proceses the Message and writes the response to the other Queue.
    Initially i had no problems but intermittantly the BPEL processes are getting invoked but they are not processing the data ( Bpel process is supposed to invoke an external service and get the response in a sync call) and each BPEL processe instance is in running state for ever . This remains even if i restart the servers .
    The message gets read by the JMS Adapter , BPEL instace gets created but it wont proceed futher and remains in the runnign state for ever.
    If i redeploy the Composite then messages get processed but the issue creeps up again ( i tried to checl the logs but ino cluea about the issue .
    Getting frustrated day by day tried the bpel.config.transaction, increased the JMS Adapter threads , inreased the worker threads but all in vein..
    please let me know if any one has faced similar issue .
    Anticipating a quick response from the gurus.
    Lakshmi.

    We are also facing this issue in 11.1.1.5.
    Breifly the issue is : The BPEL process which polls an inbound JMSAdater ( consume_message) either stays in running state forever ( whatever we do) or go to the recovery queue. It doesnt recover even if i try to recover it. This happens intermittently. Redeploying the application / restarting servers sometime solve the issue but as know we cant do that on prod systems .
    Can some one look into this on priority and help us giving a solution/workaround.

  • Having issues with picture messaging get told to go to settings, then general, then network then cellular  data network. my problem is there is no such option my  phone is a 3gs

    having issues with MMS messaging instruction for setup,  are to gotto settings, then general, then network then cellular data network.My problem is there is no cellular data network optiion on this page have tried resetting phone , no good .Help.

    That option does not exist depending on who the carrier is.
    Who is the carrier?  Are they a supported carrier?
    Have you tried Settings > General > Reset > Reset Network Settings?

  • How to post messages between two threads other than GUI main thread?

    Does anyone have examples of post messages between two threads (other than GUI main thread)?  Would you please post the link?
    Thank you,

    Hello, you can call PostDeferredCallToThread passing the your data in callbackData parameter.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Issues with JMS Server migration

    Hi All,
    I have issue with JMS server migration.
    I have configured clustred environment with 2 Managed server (MS1 & MS2) and with one JMS Server which is running on MS1 and configured for auto migration, when I start both my managed server once and access the application very functionality works fine and when I stop the MS1 the JMS server successfully geting migrated to MS2 and in this scenarion also my application works as expected and when I restart the MS1 and access the application all the functionalities related to MDBs are executed twice.
    However once we restart the MS1 we observe that in the monitor tab of MDB the connection status for both managed servers it show as connected.
    As a result there is a redundancy when the MDB is executed
    I am using Weblogic Server 10.3.0 & normal topics in the MDBs.
    Please let me know is this a bug or am I missing any configuration.

    Hi Suresh,
    There is a "Bug-10007947" in WLS 10.3.0 version which dose not displays the values properly on admin-console once the migration has taken place, however I am assuming that bug may fix your issue so try that out in your test environment. If that dose not work try out the below suggestions.
    Suggestion:
    - Try the same test on different versions of WLS lower as well as on higher versions compared to WLS 10.3.0 (i.e WLS 9.2.X and WLS 10.3.x) and check what are the result.
    - If in any other version your test runes properly, then you can create a simple test case and open a service request with Oracle asking for creating a BUG and let them do their job.
    Hope above information helped you.
    Regards,
    Ravish Mody

  • Two-way forest trust between two (single domain) forests with multiple identical user ID's

    Domain and forest levels - Windows 2003 (they both have one 2008 R2 DC)
    We need to create a two-way forest trust between two separate single-domain forests. The problem is that these two forests already access each others resources through a S2S. Users have the same login names and passwords on both forests/domains. Now, we
    are combining their infrastructures and need to set up a trust. From what I'm reading, you can't create forest trusts if you have the same SIDs, user ID's, or computer name in each of the forests.
    I'm looking into AD migration tool to copy the userSIDs (SID history?) between forest/domain, deleting the user ID's in the domain we migrated from, and then setting up the trust, but I'm leery about doing it this way as there is no easy 'recovery' should
    something go wrong. 
    Any suggestions for the easiest way to setup this forest trust?

    Hi,
    To eliminate your worries, two user accounts have the same user name doesn’t mean that they have the same SID. Moreover, the user’s SID remains the same even after it has been renamed.
    The SID for domain account/group consists of a
    Domain Identifier and a Relative Identifier. Domain Identifier is unique in every domain within a forest, and a Relative Identifier is unique within domain. It is unlikely that two user accounts with or without the same account
    name from two forests have the same SID.
    The Technet article you mentioned is talking about duplicate SIDs instead of “duplicate computer name or user account”, I will submit a change request to Microsoft about this.
    If there are duplicate SIDs when you create forest trust, you need to delete one of them as the article guides.
    Here are some related articles below for your references:
    How Security Identifiers Work
    http://technet.microsoft.com/en-us/library/cc778824(v=WS.10).aspx
    Security Identifier Structure
    http://technet.microsoft.com/en-us/library/cc962011.aspx
    Security Identifier
    http://en.wikipedia.org/wiki/Security_Identifier
    I hope this helps.
    Amy Wang

  • JMS transaction between two queues

    Hi there,
              I have been asked to build some code that will act as an adapter
              between two legacy systems. Basically I will have to read from a
              queue, transform the information and write it to the other, then
              receive the response, transform it, and put it again back to the
              "caller" system.
              There are 4 queues implicated in this task.
              I will to use JMS Api in my code but I have found a problem. The way
              of performing a transaction in JMS is this:
              QueueSession queueSession = queueConnection.createQueueSession(true,
              0);
              "Here, the first argument means that the session is transacted; the
              second indicates that message acknowledgment is not specified for
              transacted sessions."
              As queueConnection is a connection to ONE queue, I can only perform
              transactions to ONE queue! But I don´t want to consume a message till
              I know it has been sent correctly to the other side.
              I have also read that some JMS providers support JTA transactions.
              But I don´t know if this is the right way to go.
              Can anybody bring some light to this issue.
              Thaks al lot for your attention!!
              

              This post has blossomed into several threads. I'm going to
              attempt a shot-gun approach to answer all questions.
              On MQSeries:
              See "How to use IBM MQ as a JMS Provider?" posts for more info.
              On transacted sessions:
              If this is ALL MQSeries, then it is up to MQSeries if a transacted
              session can span multiple queues and/or servers. WL supports this.
              MQSeries may simply prevent a session from
              spanning multiple servers and/or queues. Note that other vendors,
              that do not have their own TX monitor, very very likely do
              not have a 2PC in a transacted session that spans multiple servers
              (meaning it is not truly transactional).
              On JTA and multiple queues:
              The whole reason for being for JTA is to be able to span multiple
              operations. Yes, this is supported in WL.
              On the manuals:
              These issues are covered in great detail in the WL JMS developer's
              guide in the transactions chapter.
              On bridging:
              You do not have to write your own bridge.
              WL supplies a bridge to greatly simplify the work involved.
              WL 7.0 can even bridge two XA compliant JMS implementations transactionally.
              (Neither has to be WL JMS.) WL 6.1SP3 will have this same feature, now
              avialable as alpha code in 6.1. See "How to use IBM MQ as a JMS Provider?" posts for more
              info.
              On queuing and transactions:
              One can not include a request and its response in the same transaction. Period.
              This is the nature of queueing. One can dequeue from one queue and
              enqueue to another. I think you understand this, but it bears repeating.
              Tom
              Mac wrote:
              > I know that a recieve will not remove a message and a send will not
              > send it until the transaction is commited.
              >
              > In fact I want to do 2 transactions one for each receive-send.
              >
              > graphic again! ;)
              >
              > queue1 queue3
              > ======> =====>
              > legacy 1 Java Adapter legacy 2
              > queue2 queue4
              > <====== <=====
              >
              > In the period of time between reading from queue1 and writing to
              > queue3 the adapter could fail thus a message will be lost. The same
              > happens with queue4 and 2. Maybe this could be solved with a
              > transaction over queue1 and another one over queue4, but I'm not sure.
              >
              > I will have to decide if I use JMS or MQSeries API. MQ allows you to
              > wrap more than one queue in the same transaction if they are in the
              > same Queue Manager. So I wanted to know if JMS also allows to make a
              > transation over more than one queue and how is it done. only JTA?
              > QueueSession? impossible?
              >
              > tnx really for your help!
              >
              > "Raja Mukherjee" <[email protected]> wrote in message news:<[email protected]>...
              > > You can not. Even if you could, it's at least have to be 2 transactions.
              > > Because, if all of your work is in one transaction you will never send or
              > > receive messages, you would be blocking for ever. In order to send the
              > > message you will have to commit the transaction on the first place.
              > >
              > > .raja
              > >
              > > "Mac" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Sorry Tom, I think that I have not explained well my problem.
              > > >
              > > > The following extrange symbols are supposed to be an explaining
              > > > graphic!! ;)
              > > >
              > > >
              > > > queue1 queue3
              > > > ======> =====>
              > > > legacy 1 Java Adapter legacy 2
              > > > queue2 queue4
              > > > <====== <=====
              > > >
              > > > Legacy System 1 wants to call a service of legacy system 2, but they
              > > > can not communicate directly so we will use MQ Series as both them
              > > > support it.
              > > > For that purpose Legacy1 puts a message in queue1. The Java Adapter
              > > > transforms the message and puts it in queue3. Legacy2 processes the
              > > > request and replies with a message in queue4. The Java Adapter gets
              > > > it, transforms it and puts it in queue2. As a result legacy1 obtains
              > > > the information it was asking for.
              > > >
              > > > I'm using MQ Series 5.2 as middleware. I will not use Message Driven
              > > > Beans so I won´t have an EJB container to perform distributed
              > > > transactions.
              > > >
              > > > The question is: How can I put and get messages in the 4 queues
              > > > using de same transaction?? Can I do it somehow with JMS session or I
              > > > must use a JTA transaction?
              > > >
              > > > Thanks again for your help, and forgive me for being so insistent!
              > > > :)
              [att1.html]
              

  • Issue with PI messages in "To be Delivered" Status

    Hello Experts,
    We have a Mail to SOAP scenario on PO 7.4 single stack PI system. Currently we are facing issue with messages where messagess are in status "To be Delivered". Messages dont get processed further.
    Two days back, we had issue with file system table overflow and this cause messages remained in "Delivering" status. I can see Audit log with error emssage for table space full.
    I couldnt cancel/resend those messages.
    I believed these messages are causing rest of the messages to go in "To be Delivered" status. I found few blogs to check resources in Java Engine Additional Data->Queues and its looks good.
    we had system restart and these "Delivering" messages were cancelled but again when we tried a fresh run and first message went into "Delivering" Status with 500 server error message in audit log and subsequent messages started going into "To be Delivered" status. This is happening only for one scenario, rest of the message are working fine.
    I tried wit new BS, Channel, Integrated scenario for same functioanlity but its not working.
    Recent messages with "To be Delivered" can be seen with below audit log
    Information MP: processing local module localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    Information Mail: Calling the module processor for channel CC_Sender_V2
    Information Mail: Message leaving the adapter (call)
    Information Trying to put the message into the send queue
    Information Application attempting to send an XI message asynchronously using connection AFW
    Information Message successfully put into the queue
    Information Trying to put the message into the send queue
    Information Mail: Call completed
    Information Message successfully put into the queue
    Information The application sent the message asynchronously using connection AFW. Returning to application
    Information Mail: Call returned for channel CC_Sender_V2
    we have latest patch(SAP_XIESR Version 1000.1.70) applied 10 days back only
    Kindly suggest.

    Hi All,
    Thanks for your reply and suggestions.
    Now messages are flowing properly. Issue was with data population in the target structure. Receiver side we have Knowledge Management portal website and CreateDocument operation fields were expecting some values to be populated. We tried few combinations and it worked.
    We also tried changing mapping and we could reproduce messages with "To be delivered" status.
    Now we are searching for KM Portal Webservice documentation where information about every field of operation is mentioned. If we straight away pass source mailbody to webservice, its not working. failing at webservice end with error 500 internal server error. It expects data to be in Base64 format and also fields like Length of data to be populated. If we get documentation then things would be more easy. We are also passing attachment but its not getting generated at target end. We are not sure if webservice support that feature.
    Thanks,
    Vinit.

  • Issue with sending message delay

    Hi; Got an issue that has cropped up with Mail lately. Been on the phone all day with Apple Care. Every test on the planet hasn't found what's wrong. I would greatly appreciate knowing if anyone else has come across this issue.
    Mail version 4.3 (1081) on a clean IMac OSX 10.6.4. All updates current as of today. ISP is RCN; all settings correct and no known issues with the RCN SMTP server according to them.
    Issue is repeatable through all troubleshooting tests performed today. You name it; we did it :-))
    Issue seems isolated to sending messages in Mail. Message can be composed normally, then when the send button is hit, I get a revolving wheel for between 30 and 45 seconds on the send folder, then the message clears normally and in the case of a test back to me, can be received normally.
    What's strange is that I installed Thunderbird for the sole purpose of testing the send function there to isolate MAIL as the culprit and all messages instantly cleared in Thunderbird and received normally. This takes the RCN SMTP server out of the error equation as far as I can determine.
    Anyone have any ideas on this issue. Apple has given up trying to find the problem.
    Many thanks
    Dudley Henriques

    It is "Mail and Address Book" but it's a subset of 10.5
    here...http://discussions.apple.com/forum.jspa?forumID=1338
    edit: SL stands for snow leopard i.e. 10.6.x
    Message was edited by: taylor.henderson

  • Problem with replicated partitioning between two BSO db's. version 9.3.0.1

    Hi there,
    I have a problem with partitioning between two BSO db’s.
    I created the partition, it validates and I made an export for the partion definiton(xml file).
    Everything is fine if I set this partition up as transparent partition.
    This means I can see the data from the src in the trg db as ecpected.
    But when I change over to replicated (what in fact I want to do) nothing happens for the trg site - there are still no data. (Yes I have choosen Update all cells.)
    I got no error in any way neither AAS nor in the app logs of src and trg.
    (Mayby this it important: one src-dimension is mapped to void for the trg.)
    Can anyone give me a hint or even confirm this behaviour ?
    Thank you in advance
    Andre
    Below the log infos:
    log of src db:
    [Fri Dec 04 15:29:03 2009]Local/AAA///Info(1013210)
    User [hyperion] set active on database [db]
    [Fri Dec 04 15:29:03 2009]Local/AAA/db/hyperion/Info(1013091)
    Received Command [PutReplicatedCells] from user [hyperion]
    [Fri Dec 04 15:29:03 2009]Local/AAA///Info(1013210)
    User [hyperion] set active on database [db]
    [Fri Dec 04 15:29:03 2009]Local/AAA/db/hyperion/Info(1013091)
    Received Command [XferReplicatedCells] from user [hyperion]
    [Fri Dec 04 15:29:03 2009]Local/AAA///Info(1013214)
    Clear Active on User [hyperion] Instance [1]
    [Fri Dec 04 15:29:03 2009]Local/AAA/db/hyperion/Info(1023005)
    Update of replicated partition elapsed time : [0] seconds
    [Fri Dec 04 15:29:03 2009]Local/AAA/db/hyperion/Info(1243010)
    Partition refreshed
    log of trg db:
    [Fri Dec 04 15:29:03 2009]Local/AAA1///Info(1013210)
    User [hyperion] set active on database [db]
    [Fri Dec 04 15:29:03 2009]Local/AAA1/db/hyperion/Info(1013091)
    Received Command [ReqXferReplicatedCells] from user [hyperion]
    [Fri Dec 04 15:29:03 2009]Local/AAA1///Info(1013210)
    User [hyperion] set active on database [db]
    [Fri Dec 04 15:29:03 2009]Local/AAA1/db/hyperion/Info(1013091)
    Received Command [ProtocolXchg] from user [hyperion]
    [Fri Dec 04 15:29:03 2009]Local/AAA1/db/hyperion/Info(1023044)
    Processing distributed request from [P4B5A856A, AAA, db]
    [Fri Dec 04 15:29:03 2009]Local/AAA1/db/hyperion/Info(1013091)
    Received Command [PutLastUpdatedTime] from user [hyperion]
    [Fri Dec 04 15:29:03 2009]Local/AAA1///Info(1013214)
    Clear Active on User [hyperion] Instance [1]
    [Fri Dec 04 15:29:03 2009]Local/AAA1///Info(1013214)
    Clear Active on User [hyperion] Instance [1]

    It sounds like you are doing it all correctly. One thing you might try just to be sure you are not getting any data in the target database is the following:
    1) clear the target database
    2) Run the replication for all cells
    3) Run an export of all data on the target database
    See if you get anything in the export file, maybe you are getting some of the data or possibly it is a rollup issue. Just a thought.
    Jeff

Maybe you are looking for