While trying to connect IBM MQ JMS queue from spring boot application , I am getting below exception
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSCC0005: The specified value '' is not allowed for 'XMSC_WMQ_APPNAME'.
I have been already been referring to :
https://github.com/ibm-messaging/mq-jms-spring, but doesnt help.
Any suggestions
The string XMSC_WMQ_APPNAME is the value of constant WMQ_APPLICATIONNAME. The application name can be set with JMS methods MQConnectionFactory.setAppName(), see APPLICATIONNAME.
For some reason the the application name does not get set. Please share your MQ connection configuration for your Spring Boot application.
Related
We are using spring boot, apache camel and multiple datasources.
spring boot version: 1.5.9 release
primary database: postgres
Secondary database:oracle
We have deployed spring boot jar in linux server.
Datasource properties for postgres is
x.datasource.url=
x.datasource.username=
x.datasource.password=
x.data.jpa.repositories.enabled=true
datasource properties for oracle
y.datasource.url=
y.datasource.username=
y.datasource.password=
y.data.jpa.repositories.enabled=true
when application keeps ideal and After some times we are trying first request failed and getting error jdbc connection failed but it is working in second request without restarting.
please let me know how to keep database active.
You can use hikari connection pool. Refer to this on how to implement. You can configure no. of connections you want to keep with db
I am trying to connect to kafka server via spring integration module with SASL config and get error
java.lang.IllegalArgumentException: Could not find a 'KafkaClient' entry in the JAAS configuration. System property 'java.security.auth.login.config' is not set
but when I construct simple consumer and poll messages everything works fine. Can someone tell me how to turn off JAAS authorization or connect via it properly.
Here is my KafkaConfig.java
and SaslConfiguration.java. Thanks for answer!
There is a KafkaConsumerFactory which simply can accept the same set of properties you are mentioning in you gist: https://docs.spring.io/spring-kafka/docs/2.1.10.RELEASE/reference/html/_reference.html#_receiving_messages
I am trying to consume JMS messages from a queue which is defined as JNDI in the WebSphere application server.
Is it possible to connect websphere JMS JNDI using Spring JMS without using the websphere related JARs in the spring MVC application
No; the JNDI support classes (initial context etc) are provided by the JMS provider (in this case IBM); they use proprietary protocols to talk to the server.
I am developing a Web Application in java, deployed in a WebLogic server. I have the server created with the datasource to an oracle database that works fine.
In the other side, I have the WebApplication that I can´t deploy in the server. When I clic in the button "Deploy", the following message appear in the "server log".
Exception Description: Cannot acquire data source [jdbc/siam].
Internal Exception: javax.naming.NameNotFoundException: While trying
to lookup 'jdbc.siam' didn't find subcontext 'jdbc'. Resolved '';
remaining name 'jdbc/siam'
"jdbc/siam" -> is the name of the datasource that I want to use in my webapplication.
I hope you can help me.
Sorry for my English.
Thank you.
/UPDATE/
I have the connection to the database defined in the server side.
I can´t include images, but I can view the database connection in the netbeans and the name for jndi is "jdni/siam".
And in the administration console of the weblogic, I can view it as datasource with the same name.
It appears you are using JNDI to configure your Datasource.
Is jdbc/siam already configured as a JNDI resource at the server side? Here is a good start:
Configuring and Managing WebLogic JDBC
Hope it helps.
I am getting this exception when I am trying to read message from WebSphere MQ via MDB, can any one please guide me.When I deploy the EAR file on my WebSphere then it works flawlessly but I am getting exception on a different WebSphere. Am I missing something in configuration, why does this exception occur?
javax.ejb.EJBException: Injection failure; nested exception is: java.lang.IllegalArgumentException: Can not set javax.jms.ConnectionFactory field com.ultramatics.hawkeye.mdb.listener.HawkeyeMdbListener.replyCF to com.ibm.mq.jms.MQQueue
You are obviously trying to assign a ConnectionFactory field with a MQQueue object, two different types.
I guess you grab them from JNDI or similar and that there might be some naming mess up in the configuration?