spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Camel lookup RemoteConnectionFactory on Wildfly


I'm not familiar with Wildfly and only a little familiar with JBoss, but you said the configuration parameters should be correct. So based off of my experience configuring the Camel JmsComponent...

Try this:

     Properties prop = new
Properties();
     prop.put(Context.INITIAL_CONTEXT_FACTORY,
    
"org.jboss.naming.remote.client.InitialContextFactory");
     prop.put(Context.URL_PKG_PREFIXES,
     "org.jboss.jms.jndi.JNDIProviderAdapter");
     prop.put(Context.PROVIDER_URL,
"http-remoting://localhost:8080");
     prop.put(Context.SECURITY_PRINCIPAL,
     System.getProperty("username", "usr"));
     prop.put(Context.SECURITY_CREDENTIALS,
     System.getProperty("password", "pwd"));

     Context context = new InitialContext(prop);
     ConnectionFactory connectionFactory =
(ConnectionFactory)
context.lookup("jms/RemoteConnectionFactory");

     JmsComponent jmsC = new
JmsComponent(connectionFactory);

     cc.addComponent("jms", jmsC);

And change your endpoint to:

     .to("jms:queue:generatoreQueue");

You shouldn't need the "jms/" in front of the queue name, and the component name should be the same as what you bound it to above in the addComponent method.


Categories : Spring

Related to : Camel lookup RemoteConnectionFactory on Wildfly
wildfly-maven-plugin --> No plugin found for prefix 'wildfly'
Use the FQN (Fully Qualified Name) of the maven goal. mvn org.wildfly.plugins:wildfly-maven-plugin:deploy Should very explicitly start the wildfly deploy goal and use the configuration you have specified. The goal shortcuts only works in your configured pluginGroups in settings.xml, and as you can see it only checks 2 groups [org.apache.maven.plugins, org.codehaus.mojo]

Categories : Maven
URL rewrite in Wildfly?
You may also want to look at Rewrite, which will be the core of PrettyFaces 4. It's more dynamic and can intercept URLs if you require login. http://www.ocpsoft.org/java/migrating-from-prettyfaces-to-rewrite-simplicity-meets-power/ http://www.mastertheboss.com/javaee/servlet-30/rewrite-a-java-ee-url-rewriting-solution

Categories : JSF
Wildfly JAX-RS questiona about Produces
It's not so much a problem with JAX-RS as it is with cURL. If I run the command with the -v switch (verbose), I'll see the request headers C: empjbossquickstarthelloworld-rs>curl -v http://localhost:8080/wildfly-helloworld-rs/rest/ -H 'accept:application/xml' * Adding handle: conn: 0x4b6208 * Adding handle: send: 0 * Adding handle: recv: 0 *

Categories : Java
Wildfly 8.2 and Hibernate: Could not register synchronization
After i add this property to persistence.xml it works good: <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JDBCTransactionFactory" />

Categories : Hibernate
WildFly 8.2.0 and Infinispan 6.0.2 CacheContainer Injection error
I ran into the same problem. I think it is because Wildfly ships with two implementations of Infinispan, one is Infinispan module under (modules/system/layers/base/org/infinispan) and other is Wildfly Clustering Infinispan module under (modules/system/layers/base/org/jboss/as/clustering/infinispan), it seems that Wildfly is using the second one. What I´ve done (I couldn´t fixit yet) is adding t

Categories : Java
Recently Add
How do I make Grails execute shell commands just before creating war file?
Display data from related entities to avoid the lazy initialization exception with setting up @BatchSize
spring boot mvc: failed after following the sample
Apache Camel iterate over List
Can I move entire web.xml to spring code base configuration? (WebApplicationInitializer)
Autowired Object is coming out null for a web project
@Autowired on setter function does not look at the property name (like autowired in XML does)
Cannot inject beans in servlet context to Controller
Serving outside web-app static files using spring MVC
jsf: Calling a method in managedbean giving exception
How to have a SAML request/response signed using Spring Security SAML extension
Autowiring issues with a class in Spring data Mongo repository
Internal Exception: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
How to save spring integration message header into database
serving files from a spring boot war file
Spring Data + QueryDSL empty predicate + Predicate chaining
thymeleaf spring standard dialect: using template
spring-tool: the package of 3.6.2 is not useful on linux
Disable SSLv3 using Spring-Boot and embedded Tomcat
The annotation @EnableSpringDataWebSupport does not work with WebMvcConfigurationSupport?
Gradle ivy service MetaDataParseException
mocking a method with parameter as LIST type
Can I use spring thymeleaf with layoutdialect?
Playframework2 like reverse routing in spring
How can i send a parameter in a spring webflow event?
Deploying spring boot to elasticbeanstalk and setting system properties
Jackson and unmarshalling Spring HATEOAS references
problems with Native AspectJ with Spring
Split the query results into more jsp pages
Jms connection is timing out in spring batch remote partitoning on the master side
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.