I'm new to Play framework. I'm trying to configure MongoDB database as a datasource to be used with Play framework 2.4. But I am unable to find any tutorial or steps which can guide me to have connection of my "Hello world" application with mongoDB. I just need to know how can I use mongoDB with the current play version? Just need to understand the basic CRUD operations b/w mongodb and play framework using java (not scala).
MongoDB with Play Framework using Java
6.9k Views Asked by Prashant Agarwal At
2
There are 2 best solutions below
0
Edgar
On
You can use PlayJongo Play 2.4.x Module.
It is a Play 2.4.x Module for Jongo (a MongoDB Java driver wrapper).
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in MONGODB
- Meteor MapReduce Package Error: A method named is already defined
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- Big data with spatial queries/indexing
- How to recover from losing all your /data/db
- What are the benefits of using the fields option when querying in Meteor
- Node JS Async Response
- mongoose get property from nested schema after `group`
- What to use for subdocuments ID's in MongoDB?
- ORM Code First versa Database First in Production
- How to profile a Yii2 based API?
- get length of embedded document in mongoDB with jade
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- Why are numbers being inserted into MongoDB incorrectly?
- hibernate ogm mongo db, how to get count of collection?
- C++ Mongodb driver, not working
Related Questions in MORPHIA
- morphia Geo-spatial "near" method in embedded list
- When to use MongoDB Driver/Morphia over Hibernate
- Morphia - How to replace LongIdEntity.StoredId in last version?
- Does MongoDB bulk update work for fields which don't exist
- MongoDB with Play Framework using Java
- MongoDB Morphia elemMatch API
- Why has this exception started occurring - java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject
- How do I configure Morphia/MongoDB datasource in PlayFramework 2.5 (JAVA)
- How to remove a specific element from ArrayList in morphia?
- Play-Morphia with Play 1.4
- How to update embedded object list in morphia?
- morphia mongodb retreive huge data batchwise
- Morphia query by referenced object
- Java mongodb (morphia) ensure unique document
- Morphia - Merging a complex query with a complex criteria
Related Questions in PLAYFRAMEWORK-2.4
- Play 2.4 scala I am facing issues getting messages implicit in my code
- How to use `controllers.Default.redirect` in Play 2.4 and `InjectedRoutesGenerator`
- Configuration depending on launch mode
- Play Framework 2.4 @routes.WebJarAssets.at Compilation Error in IntelliJ IDEA 14.1.3
- Specs2/Guice issue in Play 2.4.0 functional tests
- Creating a generic reusable function with implicit and types in Scala
- Play 2.4: Form: could not find implicit value for parameter messages: play.api.i18n.Messages
- EBean4 join with Non-PK field support in PlayFramework
- Play Framework 2.4.0 and I18n with Scala
- Implicit parameters and combined views in Play/Scala
- Play Framework Form Error Handling
- Play 2.4 - Display Ebeans SQL statement in logs
- Play Framework 2.4.x custom deploy script
- Eclipse shows errors in Play 2.4 setup
- Play Framework 2.4.0 with I18n: two languages in the same page
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
see this answer https://stackoverflow.com/a/11754368/5034081
it explains how to add the java driver for your application. but you have to be careful because interacting with database is a blocking action and if you block your threads you will have troubles. read the official doc on how to solve this problem. https://www.playframework.com/documentation/2.1.0/ThreadPools
there is also other libs like this for using mongo in a play application. https://github.com/vznet/play-mongo-jackson-mapper