-
30. Re: Tibco EMS Integration
mwax Nov 19, 2007 10:04 AM (in response to mwax)BTW, I am working off of the jboss-esb.xml schema:
<xsd:complexType name="jms-provider-type"> <xsd:annotation> <xsd:documentation xml:lang="en">A specific instance of a provider, providing JMS.</xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="jesb:bus-provider"> <xsd:attribute name="connection-factory" type="xsd:string" use="required"> <xsd:annotation> <xsd:documentation xml:lang="en">The connection-factory used to lookup queues/topics in a naming directory (JNDI)</xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="jndi-context-factory" type="xsd:string"> <xsd:annotation> <xsd:documentation xml:lang="en">The context factory class the JBossESB will use to do naming lookups.</xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="jndi-pkg-prefix" type="xsd:string"> <xsd:annotation> <xsd:documentation xml:lang="en">The pkg-prefix which will be used to do naming lookups. It is left empty by default.</xsd:documentation> </xsd:annotation> </xsd:attribute> <xsd:attribute name="jndi-URL" type="xsd:anyURI"> <xsd:annotation> <xsd:documentation xml:lang="en">The URL used to do naming lookups.</xsd:documentation> </xsd:annotation> </xsd:attribute> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="jms-provider" substitutionGroup="jesb:provider" type="jesb:jms-provider-type" />
-
31. Re: Tibco EMS Integration
mwax Nov 19, 2007 10:55 AM (in response to mwax)Sorry, I'm good now. I had added some debugging code to the courier which caused a problem.
-
32. Re: Tibco EMS Integration
kurtstam Nov 19, 2007 10:58 AM (in response to mwax)OK, yeah sorry I misread your email before. So it's all working now? -K
-
33. Re: Tibco EMS Integration
mwax Nov 19, 2007 11:07 AM (in response to mwax)Yes. I believe my original problem was that the queue connection factory URL was not set in EMS, so that the factory returned tcp://localhost:7222, which resulted in a failure when the JmsConnectionPool tried to create a new connection.
I have been using a queue which does not require authentication. I am going to move to a queue which does. As discussed earlier, this should require a patch, which we will contribute. -
34. Re: Tibco EMS Integration
kurtstam Nov 19, 2007 11:22 AM (in response to mwax)Great to hear. This sure was a weird issue. Looking forward to the patch!
-
35. Re: Tibco EMS Integration
mwax Dec 11, 2007 12:10 PM (in response to mwax)Just get around to this, and having a problem which probably does not belong here:
I extend the jbossesb schema to include jndi-principal and jndi-authentication, so that I now must have the jboss-esb.xml file point to a schema in the esb jar. However, I cannot figure out the syntax to have the jboss-esb.xml file point to this local schema. Any ideas? -
36. Re: Tibco EMS Integration
kurtstam Dec 11, 2007 12:27 PM (in response to mwax)Maybe you can add them in as properties? That way you don't have to deal with changes to the xsd. I think what your trying to is similar
to what I needed for OracleAQ (in helloworld_action/oracle_aq/jboss-esb.xml):<jms-provider name="JBossMQ" connection-factory="QueueConnectionFactory"> <property name="java.naming.factory.initial" value="org.jboss.soa.esb.oracle.aq.AQInitialContextFactory"/> <property name="java.naming.oracle.aq.user" value="kurt"/>
-Kurt -
37. Re: Tibco EMS Integration
mwax Dec 11, 2007 1:15 PM (in response to mwax)Thanks. This looks lilke a good solution. In the long run, however, it might make sense to add the other naming attributes to the schema.
-
38. Re: Tibco EMS Integration
kurtstam Dec 11, 2007 1:39 PM (in response to mwax)True, can you open a jira for it? I think we may collect a nice list of configuration changes, and the handle them all at once. thx --Kurt
-
39. Re: Tibco EMS Integration
mwax Dec 12, 2007 8:52 AM (in response to mwax)OK on t he JIRA item. I would see two alternatives here. First, we could create new attributes for all of the JNDI properties. As an alternative that would simplify the code (no required translation from "jndi-URL" to "java.naming.provider.url", for example), all of the JNDI attributes could be deprecated, and replaced with property elements.
I found that I needed to add code to the JmsConnectionPool class to handle optional authentication after the lookup, during the creation of queue and topic connections:String userName = jndiEnvironment.getProperty(Context.SECURITY_PRINCIPAL); String password = jndiEnvironment.getProperty(Context.SECURITY_AUTHENTICATION); if (JMSEpr.QUEUE_TYPE.equals(destinationType)) { QueueConnectionFactory factory = (QueueConnectionFactory) factoryConnection; if (password != null) { jmsConnection = factory.createQueueConnection(userName, password); } else { jmsConnection = factory.createQueueConnection(); } } else { TopicConnectionFactory factory = (TopicConnectionFactory) factoryConnection; if (password != null) { jmsConnection = factory.createTopicConnection(userName, password); } else { jmsConnection = factory.createTopicConnection(); } }
I'm not sure this is exactly what we want, because this ties the JMS username and password to the JNDI -
40. Re: Tibco EMS Integration
vikas_sm Dec 17, 2007 5:11 PM (in response to mwax)Is this issue resolved?
I am working on jbossesb-4.2.1GA and Tibco EMS integration. I am getting exception due to missing credentials. I didn't not found any sample which talks on accessing secured topics/queues.
After getting exception i browsed thru the JmsConnectionPool.java and found that there is no creationConnection which accept username and password.
I am missing something here?
Where do i need to specify the credentials. i gave a look at xsd but it doesnt have any thing for credentials purpose.
Any help on this will be appreciated:-)
Thanks/Vikas -
41. Re: Tibco EMS Integration
vikas_sm Dec 17, 2007 5:13 PM (in response to mwax)Is this issue resolved?
I am working on jbossesb-4.2.1GA and Tibco EMS integration. I am getting exception due to missing credentials. I didn't not found any sample which talks on accessing secured topics/queues.
After getting exception i browsed thru the JmsConnectionPool.java and found that there is no creationConnection which accept username and password.
I am missing something here?
Where do i need to specify the credentials. i gave a look at xsd but it doesnt have any thing for credentials purpose.
Any help on this will be appreciated:-)
Thanks/Vikas -
42. Re: Tibco EMS Integration
marklittle Dec 18, 2007 5:57 AM (in response to mwax)I think you may find this relevant.