Advertisement

09.10.2008 at 10:06AM PDT, ID: 23720069 | Points: 250
[x]
Attachment Details

Authentication error while connecting TIBCO

Asked by dimple in Message Queue, Jboss Application Server, Java Application Servers

Hi,

I am using JBoss 4.0.2 sp1.  I need to connect with TIBCO from my application.
I tried to configure the by referring site :  http://wiki.jboss.org/wiki/IntegrationWithTibcoEMS a

My Tibco configuration xml is as under :

<server>
<mbean code="org.jboss.naming.ExternalContext"
       name="jboss.jndi:service=ExternalContext,jndiName=tibco">
         <use-java-context>false</use-java-context>
    <attribute name="JndiName">tibco</attribute>
    <attribute name="Properties">
      java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
      java.naming.security.principal=gcsSA
      java.naming.security.credentials=gcsSA
      java.naming.provider.url=tibjmsnaming://JUSD-OTGGCS1-A:22557,tcp://JUSD-OTGGCS1-B:22558
      java.naming.factory.url.pkgs=com.tibco.tibjms.naming
    </attribute>
    <attribute name="RemoteAccess">true</attribute>
    <attribute name="InitialContext">javax.naming.InitialContext</attribute>
</mbean>

  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
       name=":service=JMSProviderLoader,name=JMSProvider">
    <attribute name="ProviderName">GCSTibcoEMSJMSProvider</attribute>
    <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
    <attribute name="QueueFactoryRef">tibco/ExecutionQCF</attribute>
    <attribute name="TopicFactoryRef">tibco/TopicConnectionFactory</attribute>
  </mbean>

   <mbean code="org.jboss.naming.NamingAlias" name="DefaultDomain:service=NamingAlias,fromName=ExecutionQCF">
        <attribute name="ToName">tibco/ExecutionQCF</attribute>
        <attribute name="FromName">ExecutionQCF</attribute>
    </mbean>

    <mbean code="org.jboss.naming.NamingAlias"
                name=":service=NamingAlias,fromName=DLQ">
    <attribute name="ToName">tibco/DLQ</attribute>
    <attribute name="FromName">DLQ</attribute>
   </mbean>
 <mbean code="org.jboss.naming.NamingAlias"
                name=":service=NamingAlias,fromName=MMFUpdateQ">
    <attribute name="ToName">tibco/MMFUpdateQ</attribute>
    <attribute name="FromName">MMFUpdateQ</attribute>
   </mbean>
</server>

Snapshot for jsp is:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://picislxdev01:1099");
Context context = new InitialContext(env);
Object tmp = context.lookup("ExecutionQCF");
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
QueueConnection connection = qcf.createQueueConnection();
Queue destination = (javax.jms.Queue)context.lookup("MMFUpdateQ");

It is giving authorization error even in Tibco jsp it is defined correctly.
We checked the TIBCO log and found that user and password is coming correctly but any how after it is becoming  anonyms.

If I am changing jsp as below, it is working fine.

QueueConnection connection = qcf.createQueueConnection(gcsSA,gcsSA);

Do anybody know why only Tibco configuration is not working ? Ideally, it should be picked from tibco file.

Thanks is advance,
DimpalStart Free Trial
[+][-]09.25.2008 at 08:25PM PDT, ID: 22576367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 10:19AM PDT, ID: 22581675

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628