Could I run my web app on Java and Python? I mean one portion of web service on Java and other part on Python?
Problem I am trying to solve is that on Java I can't find a solution for custom user authentication, however webapp2 for Python supports looks like custom user auth.
So I was thinking to write authentication portion on Python and rest of the app on Java.
Any ideas welcome, never used Google Api engine before.
Thanks!
EDIT
It seems like I can do modules approach, thanks for answers. I just wonder how would I use session in Java that I set using webapp2 in Phyton?
from example it uses auth.get_user_by_session():
def user_required(handler):
"""
Decorator that checks if there's a user associated with the current session.
Will also fail if there's no session present.
"""
def check_login(self, *args, **kwargs):
auth = self.auth
if not auth.get_user_by_session():
self.redirect(self.uri_for('login'), abort=True)
else:
return handler(self, *args, **kwargs)
return check_login
just wonder how after successful login I can check user in JAVA.