Тёмный

Jboss EAP 7 - Configure (ActiveMQ) JMS in EAP 7 

Veerababu Anupoju
Подписаться 3,2 тыс.
Просмотров 18 тыс.
50% 1

Jboss EAP 7 - Configure (ActiveMQ) JMS in EAP 7

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@joesphkuruvila5571
@joesphkuruvila5571 3 года назад
Thank you so much for such a great content sir 🙏 i personally think contacting you for learning JBoss was the best decision i made .Thank you so much for being calm and making me understand even the smallest details regarding jboss and the mock interview we had.Its only because of your preparation and mock i was able to clear my interview.Forever grateful sir 🙏Bless you !!
@ashish23081991
@ashish23081991 6 лет назад
thanks for making this
@navdeepbhatia5030
@navdeepbhatia5030 2 года назад
Thanks for sharing Sir , very useful ,saved lot of time
@nisargashinde5696
@nisargashinde5696 5 лет назад
Thanks alot... It is really helpful
@lagoawb
@lagoawb 3 года назад
Thank you Veera for sharing this.
@user-lt4zb1qz5h
@user-lt4zb1qz5h 6 лет назад
Thank you Veera.You explained it properly and it is very helpful.
@LearningJboss
@LearningJboss 6 лет назад
Thanks
@middleclassmaheshmcm9740
@middleclassmaheshmcm9740 3 года назад
Thankq so much Bro 🙏👍
@noureddinelahia2036
@noureddinelahia2036 5 лет назад
good work thanks
@chrischen3627
@chrischen3627 3 года назад
very helpful!
@devjyotidey7165
@devjyotidey7165 4 года назад
What jars are used in the jms client program?
@maverick_9922
@maverick_9922 6 лет назад
+Learning Jboss : this video helped me a lot to understand queue clustering. Question: how will the system react for "topic" clustering? Will all servers in the cluster receive the topic's message?
@joca1128
@joca1128 2 года назад
Hello i am from Colombia, I have a question, Do i need to integrate the activeMQ implementation of apache to jboss to do this or jboss already has the implementation and all i need to use it for JMS services? and the steps shown here are the same for widfly21?
@CarlosRafaelLabradaArceperfil
@CarlosRafaelLabradaArceperfil 5 лет назад
thanks
@haroldadrianbolanos
@haroldadrianbolanos 3 года назад
do you have any example whit topic but another remote instancie where is working a topic? i have a problem, when I use another instance like standalone_02
@pranytt3485
@pranytt3485 4 года назад
Thank you Veera for sharing this. Really appreciate it. It helped me learn jboss eap with activemq quickly for diagnosing a production issue. I have a question. You have shown how to see message and delete a message. But the displayed data doesn't show "Hello" which is the actual message you published. How do we see the actual payload of the message on the topic/queue ? It seems ActiveMQBrowser_2.5.2.8ForJDK1.6 can do this but it works using jmx. If I want to connect using jmx to the activemq broker that comes with EAP, what endpoint should I use? How to find this information? Thanks
@javierparedes2410
@javierparedes2410 6 лет назад
Hello, thanks for the video. I ask you a question, I'm trying (without success) to connect Jboss 6.4 to an IBM MQ Series. Do you have any instructions that can help me? The truth is that I have tried everything I found on the internet and I can not make it work. I configure the resource "wmq.jmsra.rar", but then I can not reach it from my code. I do not understand how a Connection Factory is configured. From already thank you very much Regards!
@rjcdz06
@rjcdz06 4 года назад
Excelent explanation !
@balajisn
@balajisn 7 лет назад
Hi Veera, The video is really useful. Have a question. Do we have any setup to trigger custom java code for out bound queue? I need to perform some DB operation as soon as message is queued. And don't want to run any utility(Standalone java utility) for this.
@LearningJboss
@LearningJboss 7 лет назад
Hi Balaji, Thanks for watching my videos :) . I am not into java but , Yes you can do custom trigger just do some r & d on MDB Listener !!.
@balajisn
@balajisn 7 лет назад
Thank you for the quick reply. I will look into it.
@devjyotidey7165
@devjyotidey7165 4 года назад
Got all the jars correct now. But getting "Unable to validate even after creating a user with guest role
@LearningJboss
@LearningJboss 4 года назад
See the below code or you can get it from standard GIT github.com/wildfly/quickstart OR import java.util.logging.Logger; import java.util.Properties; import javax.jms.ConnectionFactory; import javax.jms.Destination; import javax.jms.JMSConsumer; import javax.jms.JMSContext; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; public class HelloWorldJMSClient { private static final Logger log = Logger.getLogger(HelloWorldJMSClient.class.getName()); // Set up all the default values private static final String DEFAULT_MESSAGE = "Hello"; private static final String DEFAULT_CONNECTION_FACTORY = "jms/RemoteConnectionFactory"; private static final String DEFAULT_DESTINATION = "jms/queue/DistributedQueue"; private static final String DEFAULT_MESSAGE_COUNT = "10"; private static final String DEFAULT_USERNAME = "admin"; private static final String DEFAULT_PASSWORD = "admin123"; private static final String INITIAL_CONTEXT_FACTORY = "org.jboss.naming.remote.client.InitialContextFactory"; private static final String PROVIDER_URL = "http-remoting://127.0.0.1:8080"; public static void main(String[] args) { Context namingContext = null; try { String userName = System.getProperty("username", DEFAULT_USERNAME); String password = System.getProperty("password", DEFAULT_PASSWORD); // Set up the namingContext for the JNDI lookup final Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY); env.put(Context.PROVIDER_URL, System.getProperty(Context.PROVIDER_URL, PROVIDER_URL)); env.put(Context.SECURITY_PRINCIPAL, userName); env.put(Context.SECURITY_CREDENTIALS, password); namingContext = new InitialContext(env); // Perform the JNDI lookups String connectionFactoryString = System.getProperty("connection.factory", DEFAULT_CONNECTION_FACTORY); log.info("Attempting to acquire connection factory \"" + connectionFactoryString + "\""); ConnectionFactory connectionFactory = (ConnectionFactory) namingContext.lookup(connectionFactoryString); log.info("Found connection factory \"" + connectionFactoryString + "\" in JNDI"); String destinationString = System.getProperty("destination", DEFAULT_DESTINATION); log.info("Attempting to acquire destination \"" + destinationString + "\""); Destination destination = (Destination) namingContext.lookup(destinationString); log.info("Found destination \"" + destinationString + "\" in JNDI"); int count = Integer.parseInt(System.getProperty("message.count", DEFAULT_MESSAGE_COUNT)); String content = System.getProperty("message.content", DEFAULT_MESSAGE); try (JMSContext context = connectionFactory.createContext(userName, password)) { log.info("Sending " + count + " messages with content: " + content); // Send the specified number of messages for (int i = 0; i < count; i++) { context.createProducer().send(destination, content); } // Create the JMS consumer /* JMSConsumer consumer = context.createConsumer(destination); // Then receive the same number of messages that were sent for (int i = 0; i < count; i++) { String text = consumer.receiveBody(String.class, 5000); log.info("Received message with content " + text); }*/ } } catch (NamingException e) { log.severe(e.getMessage()); } finally { if (namingContext != null) { try { namingContext.close(); } catch (NamingException e) { log.severe(e.getMessage()); } } } } }
@anuragray7121
@anuragray7121 4 года назад
Hi veera, Thanks for the video.I am facing security exception even after adding the user to application realm with guest group.please suggest
@LearningJboss
@LearningJboss 4 года назад
what is the exception , can you paste here.
@rexsam3134
@rexsam3134 3 года назад
on a Windows based EAP 7.3, this option of Runtime - Subsystems is not visible for the ActiveMQ
@LearningJboss
@LearningJboss 3 года назад
I guess there is no difference in jboss windows or Linux level . For both same software bundle will use
@rexsam3134
@rexsam3134 3 года назад
@@LearningJboss I meant even if I add in the xml file the activemq is not visible. Tried using jboss-cli command too. Will try with EAP 7.0 now
@LearningJboss
@LearningJboss 3 года назад
It's visible only on standalone-full.xml and standalone-full-ha.xml only
@rexsam3134
@rexsam3134 3 года назад
@@LearningJboss Thanks Veera I was using the Eclipse to launch the same rather than the command prompt where you specified one of the xml file
@vijaytomar5503
@vijaytomar5503 6 лет назад
Thank you Veera, it was really helpful. I followed this video and configured AMQ in my machine. Thanks a lot.... I need one more help, We are using EAP 7 and AMQ broker 7.2.0 and I am trying to connect this AMQ 7 using springs in beans but actually not able to get through, could you please help me in this regard. It will be really helpful.
@stanislaviliev4869
@stanislaviliev4869 5 лет назад
Hello Vijay Tomar , do you have any success to connect this AMQ 7 using springs in bean, because I'm trying to do the same thing. If you have success with that please share you experience will be very helpfull
@vijo3510
@vijo3510 3 года назад
I need your help veera
@shivakumarbhootham4576
@shivakumarbhootham4576 2 месяца назад
could you please send source code
@mohanbabu1715
@mohanbabu1715 6 лет назад
Hi sir, Can you explain what is JMS , the importance of JMS and why we need to use JMS in jboss.
@LearningJboss
@LearningJboss 6 лет назад
Mohan Babu please go through below URL given best real time example stackoverflow.com/questions/1035949/real-world-use-of-jms-message-queues
@mohanbabu1715
@mohanbabu1715 6 лет назад
Thank you very much Sir,that was very useful.Can you explain the configuration of SSL in jboss.
@LearningJboss
@LearningJboss 6 лет назад
Mohan Babu sure soon I upload SSL topic
@mohanbabu1715
@mohanbabu1715 6 лет назад
Sir,can you please send me that programing code or any link from where i can copy that code?
@LearningJboss
@LearningJboss 6 лет назад
use below link to download all EAP7 projects demo. github.com/jboss-developer/jboss-eap-quickstarts
@gdevelek
@gdevelek 6 лет назад
Please do a complete job and provide the Java code you used... Thanks.
@LearningJboss
@LearningJboss 6 лет назад
You can download each module related projects and import into eclipse and start work. github.com/wildfly/quickstart
@gdevelek
@gdevelek 6 лет назад
Yes I can, but your code doesn't seem to be in there. Either I'm missing something or you don't want to share it like so many other youtubers do when they post instructional videos.
@LearningJboss
@LearningJboss 6 лет назад
github.com/wildfly/quickstart/blob/master/helloworld-jms/src/main/java/org/jboss/as/quickstarts/jms/HelloWorldJMSClient.java
@nareshv555
@nareshv555 4 года назад
Hi Veera ..i am trying to write consumer.As your screen is not visible fully not able to understand how you created context..can you please share your java file
@LearningJboss
@LearningJboss 4 года назад
github.com/veeras/helloworld-mdb github.com/veeras/helloworld-jms
@nareshv555
@nareshv555 4 года назад
@@LearningJboss thanks for quick response
Далее
Jboss EAP 7 - Configure (Apache httpd) mod_cluster
26:39
Я КУПИЛ САМЫЙ МОЩНЫЙ МОТОЦИКЛ!
59:15
Jboss EAP 6 - Apache (httpd) mod_cluster integration
41:17
What is Red Hat JBoss Enterprise Application Platform?
18:08