On Apr 19, 9:00 pm, "jani.mono...@gmail.com" <jani.mono...@gmail.com> wrote: > What is the most straightforward way of inspecting/scripting a > headless Java application from Django? > I run Jython embedded in the Java app already so this may or may not > make things easier than plain Java on one side. > > Instead of writing my custom wire format I'd like to reuse existing > serialization/RPC solutions to allow the exchange of arbitrary > objects between Django and the Jython code without having to extend > the protocol. > > I have tried pickling but that is not supported under mod_wsgi for non- > primitive types > > http://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule
You are misunderstanding the mod_wsgi documentation. That only applies to data types specified inside the actual WSGI script file. It doesn't apply to data types specified elsewhere in standard Python modules. In particular the documentation says: """Note that these limitations only apply to the WSGI application script file which is the target of the WSGIScriptAlias, AddHandler or Action directives. Any standard Python modules or packages which make up an application and which are being imported from directories located in sys.path using the 'import' statement are not affected.""" Graham > I am considering JSON but that too has its problems: Jython 2.5 does > not have a JSON library (I found jyson which may be ok) and it too, > does not > allow dumping of arbitrarily nested objects. > > Is there anything simple that works well for this purpose between > python and jython before trying avro/thrift/protobuf ? > > thanks > Jani > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.