Update:

Apparently this is not related to MongoDB (which seems to work awesomely, 
btw.)
Rather, I think I'm doing something wrong in switching from J2EE Sessions 
to OpenBD Sessions:

The first client to login was the one I logged into the bluedragon 
administrator with--this is the one which got logged in to the application 
as normal.
The next client which failed did not login to the administrator but when I 
logged in to the administrator app then logged-out and logged in to my app 
it worked.

This is good news for my project but I wonder what the difference could 
be???

-Moss

On Monday, December 28, 2015 at 9:07:17 PM UTC-7, John Moss wrote:
>
> I'm trying to convert my session management to use MongoDB and I'm not 
> sure what I'm doing wrong.
>
> Here's what I've done so far (Ubuntu 14.04 LTS/Tomcat7/OpenBD 3.1):
>
> 1. "sudo apt-get install mongodb"
> 2. Edit /etc/mongodb.conf and un-comment the line: "#port = 27017"
> 3. Go to /bluedragon/administrator and change "Use J2EE Sessions" to "No"
> 4. Edit Application.cfc and add the following line: <cfset 
> this.sessionstorage 
> = "mongo://127.0.0.1:27017" />
> 5. "sudo service mongodb restart"
> 6. "sudo service tomcat7 restart"
>
> Everything looks good up to this point and mongo now shows an "openbd" 
> database with a "sessions" collection.
> My thinking is that if I can get this working correctly on localhost I 
> should be able to move the mongodb to another location, update the ip 
> address and this will allow me to add additional web servers for 
> load-balancing without having to worry about sticky sessions.
>
> The problem is that only the first client seems to get a session.
> Every subsequent attempt seems to fail.
>
> I'm a complete novice when it comes to MongoDB but it looks very promising 
> if I can figure it out!
> Any ideas on what I need to do?
>
> Thanks!
>
>
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to