本文转自 http://www.mail-archive.com/solr-user@lucene.apache.org/msg05645.html
Hi,
The method works, but has the drawback that you need to configure your solr
home inside the war of the web application.
What we did is the following:
Add this to the jboss-service.xml
<mbean code="org.jboss.naming.JNDIBindingServiceMgr"
name="jboss.tests:service=JNDIBindingServiceMgr">
<attribute name="BindingsConfig" serialDataType="jbxb">
<jndi:bindings
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
;
xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
xs:schemaLocation="urn:jboss:jndi-binding-service:1.0resource:jndi-binding-service_1_0.xsd"
>
<jndi:binding name="solr/home">
<jndi:value type="java.lang.String
">C:\Temp\solr</jndi:value>
</jndi:binding>
</jndi:bindings>
</attribute>
</mbean>
Where I have c:\Temp\solr, you need to put your solr location.
Then inside the solr.war you edit the web.xml and add the following just
before the </web-app> tag :
<resource-env-ref>
<resource-env-ref-name>solr/home</resource-env-ref-name>
<resource-env-ref-type>java.lang.String</resource-env-ref-type>
</resource-env-ref>
Then you add a jboss-web.xml file inside the WEB-INF folder inside the
solr.war
The file must contain :
<jboss-web>
<context-root>solr</context-root>
<resource-env-ref>
<resource-env-ref-name>solr/home</resource-env-ref-name>
<jndi-name>/solr/home</jndi-name>
</resource-env-ref>
</jboss-web>
Using this method, u can configure the solr home inside the application
server and there is no need to edit the solr.war when you want to change the
solr home.
And yes, you then copy the solr.war file inside the deploy folder of your
jboss instance.
I hope this helps,
Thierry
On 26/08/07, Jae Joo <[EMAIL PROTECTED]> wrote:
>
> sort of, but need more details.
> How about solr.war file? do I have to copy it into jboss deploy directory?
> Otherwise, how I let jboss kow where Solr is?
> Any idea how to handle *.jar files for Solr?
>
> Thanks,
>
> Jae
>
> On 8/26/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote:
> >
> > Is this what you are looking for: http://wiki.apache.org/solr/SolrJBoss
> >
> > On Aug 25, 2007, at 10:18 AM, Jae Joo wrote:
> >
> > > Hi,
> > >
> > > I have Solr 1.2 and JBoss Application Server 4.2.1 installed in
> > > Windows
> > > machine and would like to find how to integrate it together.
> > >
> > > can anyone help me?
> > >
> > > Thanks,
> > >
> > > Jae Joo
> >
> > --------------------------
> > Grant Ingersoll
> > http://lucene.grantingersoll.com
> >
> > Lucene Helpful Hints:
> > http://wiki.apache.org/lucene-java/BasicsOfPerformance
> > http://wiki.apache.org/lucene-java/LuceneFAQ
> >
> >
> >
>
分享到:
相关推荐
You’ll also see how to integrate Solr with important related technologies like OpenNLP, Apache Tika, and Apache UIMA, among others, to take your search capabilities to the next level. This book ...
【整合BIEE与Oracle SSO门户的详细步骤】 在企业级IT环境中,实现单点登录(SSO)是提高用户便利性和系统安全性的重要手段。本文档将详细讲解如何将Oracle Business Intelligence Enterprise Edition(BIEE)与...
### 如何在MICROSAR中集成End-to-End保护 #### 概述 本文档旨在指导用户如何在VECTOR AUTOSAR软件MICROSAR中集成End-to-End (E2E)保护功能。E2E保护是一项重要的安全措施,用于确保在汽车电子控制单元(ECU)之间的...
This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...
本文档讲述了如何将K2和UiPath两个自动化平台进行集成。K2是一个业务流程管理(BPM)和工作流程自动化解决方案,而UiPath是一个领导级的机器人流程自动化(RPA)软件公司。集成这两个平台可以让用户通过K2表单或工作流程...
How to integrate and start using graphics How to animate graphics How to integrate and use game controllers How to add sound and bit-mapped graphics How to build grid-based games Audience This book ...
《集成E2E在MICROSAR中的技术参考》 本文档详细介绍了如何在基于AUTOAR 4.2的MICROSAR环境中实现端到端(E2E)保护,主要涉及两种方案:E2E Protection Wrapper(E2E保护包装器)和E2E Transformer(E2E转换器)。...
You are going to learn how to integrate and use Redux DevTools to debug applications, and access external APIs with Redux. You are also going to get acquainted with writing tests for all elements of ...
This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...
This book follows a recipe-based approach that will heavily focus on the code and how to integrate the samples with the reader’s projects.Each recipe consists of one or more methods that you can put ...
Paperback: 250 pages Publisher: Packt Publishing (November 27, 2015) Language: English ...Learn how to integrate Artificial Intelligence (AI) into your game for sophisticated and engaging gameplay
Get started with Kendo UI Mobile and learn how to integrate it with HTTP based services built using ASP NET Web API Overview Learn the basics of developing mobile applications using HTML5 and create...
how to integrate Kafka with Camus, Apache Camel, Amazon Cloud, and so on.Chapter 6, Kafka Integrations, provides a short introduction to both Storm and Hadoop and discusses how Kafka integration works...
It focuses on Swift and adds an additional chapter on how to integrate Core Data with an efficient network implementation, with best practices on how to load and pre-load data into your Swift ...
Finally, you will learn how to integrate Nexus repository manager with Maven release phases. After reading and using this short book, you'll have an understanding of Maven's dependency management ...
In addition to this, you will discover how to integrate upcoming security changes on Bring your own device (BYOD), cloud platforms, and the Internet of Things (IoT), among others. Finally, you will ...
How to integrate with Hikvision LPR function via ISAPI
Compile to integrate with whatsap, receive and send direct msg in your application delphi fully full component. see the video below for you to see how the component works ...
HIGHLIGHT ActiveMQ in Action is an example-rich tutorial that shows Java developers how to implement distributed messaging using ActiveMQ, and how to integrate ActiveMQ with Java and non-Java ...