<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Integrate MongoDB with Liferay7.2</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114746205" />
  <subtitle>Integrate MongoDB with Liferay7.2</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114746205</id>
  <updated>2026-04-05T02:46:02Z</updated>
  <dc:date>2026-04-05T02:46:02Z</dc:date>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114767023" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114767023</id>
    <updated>2019-08-14T21:11:42Z</updated>
    <published>2019-08-14T21:11:42Z</published>
    <summary type="html">Ram, you really need to read up on Mongo I think before proceeding further.&lt;br /&gt;&lt;br /&gt;Mongo connections are not created using JDBC properties and/or a JDBC URL. A mongo client is created and it is established via a network (host/port) connection.&lt;br /&gt;&lt;br /&gt;There is no JDBC, there is no driver, etc. Whatever you are trying to do, it really looks like you are trying to treat Mongo as though it is any old RDBMS. It absolutely is not; you connect to it in a different way, you do CRUD operations on it in a different way, etc.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-14T21:11:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114764089" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114764089</id>
    <updated>2019-08-14T16:34:35Z</updated>
    <published>2019-08-14T16:34:35Z</published>
    <summary type="html">Dear &lt;strong&gt;Olaf Kock,&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;​​​​​&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;osgi not connecting   mongodb jar versions  ( mongo-java-driver-3.8.2 and mongo-java-driver-3.9.1),&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;which version mongodb support in liferay 7.2  ,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;i am using liferay 7.2,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Regards&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Ram&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-08-14T16:34:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114755530" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114755530</id>
    <updated>2019-08-14T08:05:44Z</updated>
    <published>2019-08-14T08:05:44Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Ramalingaiah. D:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Hi ,&lt;br /&gt;jdbc.default.driverClassName=mongodb.jdbc.MongoDriver&lt;br /&gt;jdbc.default.password=admin&lt;br /&gt;jdbc.default.url=jdbc.mongo://&amp;lt;localhost&amp;gt;:&amp;lt;27017&amp;gt;/&amp;lt;expertdb&amp;gt;&lt;br /&gt;jdbc.default.username=welcome123&lt;br /&gt;Error creating bean with name &amp;#39;liferayDataSourceImpl&amp;#39; defined in class path resource [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver.&lt;br /&gt;&lt;/blockquote&gt;There is a certain number of database engines that Liferay &lt;a href="https://web.liferay.com/services/support/compatibility-matrix"&gt;is compatible with&lt;/a&gt;. The listed open source databases apply to CE, while DXP supports all of the listed ones. Mongo DB is not among them.&lt;br /&gt;When David said &lt;em&gt;&amp;#34;For Mongo, you still need the Mongo jar(s) and create a client connection to Mongo and then you just consume it as you would in any other java code, nothing special.&amp;#34;&lt;/em&gt; he was referring to your custom code being able to access a MongoDB backend as you could build it in any other environment than Liferay. &lt;br /&gt;For the Liferay database itself (which you configure through the properties that you list) the other sentence applies: &lt;em&gt;&amp;#34;Mongo has nothing to do with Liferay and/or JDBC (and especially service builder).&amp;#34;&lt;/em&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-08-14T08:05:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114753727" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114753727</id>
    <updated>2019-08-14T06:35:25Z</updated>
    <published>2019-08-14T06:35:25Z</published>
    <summary type="html">Hi ,&lt;br /&gt;jdbc.default.driverClassName=mongodb.jdbc.MongoDriver&lt;br /&gt;jdbc.default.password=admin&lt;br /&gt;jdbc.default.url=jdbc.mongo://&amp;lt;localhost&amp;gt;:&amp;lt;27017&amp;gt;/&amp;lt;expertdb&amp;gt;&lt;br /&gt;jdbc.default.username=welcome123&lt;br /&gt;Error creating bean with name &amp;#39;liferayDataSourceImpl&amp;#39; defined in class path resource [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver.&lt;br /&gt;i am getting error  mongodb jdbc mongoDrive &lt;br /&gt;RegardsRam</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-08-14T06:35:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114753370" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114753370</id>
    <updated>2019-08-14T04:26:16Z</updated>
    <published>2019-08-14T04:26:16Z</published>
    <summary type="html">Hi &lt;strong&gt;David&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;thank you....&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;Regards&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: 16px;"&gt;Ram&lt;/span&gt;&lt;/strong&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-08-14T04:26:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114746875" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114746875</id>
    <updated>2019-08-13T13:56:38Z</updated>
    <published>2019-08-13T13:56:38Z</published>
    <summary type="html">Mongo has nothing to do with Liferay and/or JDBC (and especially service builder). Nothing at all changes from your Liferay implementation details.&lt;br /&gt;&lt;br /&gt;For Mongo, you still need the Mongo jar(s) and create a client connection to Mongo and then you just consume it as you would in any other java code, nothing special.&lt;br /&gt;&lt;br /&gt;If you&amp;#39;re exposing across OSGi, you want to ensure you only expose your POJOs and not any of your Mongo class dependencies. Otherwise you&amp;#39;ll bleed the dependencies across your module landscape and complicate your dependency management.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-08-13T13:56:38Z</dc:date>
  </entry>
  <entry>
    <title>Integrate MongoDB with Liferay7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114746204" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114746204</id>
    <updated>2019-08-13T13:29:22Z</updated>
    <published>2019-08-13T13:29:22Z</published>
    <summary type="html">Dear Team,&lt;br /&gt;&lt;br /&gt;if we are using MYSQL then we need to edit portal-ext.properties .&lt;br /&gt;jdbc.default.driverClassName=com.mysql.jdbc.Driver&lt;br /&gt;jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&amp;amp;characterEncoding=UTF-8&amp;amp;useFastDateParsing=false&lt;br /&gt;jdbc.default.username=root&lt;br /&gt;jdbc.default.password=root&lt;br /&gt;&lt;br /&gt;if we are using MongoDB then what we need to do changes.&lt;br /&gt;Can you please let me know . Actually i am trying to Integrate MongoDB with Liferay.&lt;br /&gt;&lt;br /&gt;RegardsRam</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-08-13T13:29:22Z</dc:date>
  </entry>
</feed>
