tboerkel Posted January 3, 2008 Share Posted January 3, 2008 HI! Can I access the repository on the JasperServer from a stand-alone Java program using the Java API (possibly using RMI) and not the Web Services API? In the documentation, I only found code fragments that get ExecutionContext and RepositoryService from *somewhere*, maybe this only works when running inside JasperServer. I don't want to use the Web Services API, if possible, because it is not JAX-WS conform and so I would need either a bunch of JAX-RPC jar files (and then it would still be a bit cumbersome to use, passing XML files around) or the many Web Services jar files from iReport, blowing up my Java program in size. Thanks! Thomas Link to comment Share on other sites More sharing options...
swood Posted January 3, 2008 Share Posted January 3, 2008 If you get the JasperServer source, there is a jasperserver-unit-test directory that has examples of accessing the repository outside of the server. ShermanJasperSoft Link to comment Share on other sites More sharing options...
tboerkel Posted January 3, 2008 Author Share Posted January 3, 2008 HI! Thanks for the fast answer! However, I can't find the source code... It's not there: http://jasperforge.org/sf/scm/do/listRepositories/projects.jasperserver/scm Thomas Link to comment Share on other sites More sharing options...
tboerkel Posted January 3, 2008 Author Share Posted January 3, 2008 HI! OK, I found the source (https://jasperserver.svn.sourceforge.net/svnroot/jasperserver), but there are only HttpUnit tests and this is not what I was looking for. ;-) Thomas Link to comment Share on other sites More sharing options...
swood Posted January 4, 2008 Share Posted January 4, 2008 Download the source from SourceForge http://downloads.sourceforge.net/jasperserver/jasperjpivot-2.1.0-src.zip We are working to get the source into a public SVN - not there yet. ShermanJasperSoft Link to comment Share on other sites More sharing options...
tboerkel Posted January 4, 2008 Author Share Posted January 4, 2008 HI! Thanks for the pointer. I got the source and I found the jasperserver-unit-test, especially the ContentRepositoryTest. Just to make clear what I want to do: I want to deploy a jar file and I want to deploy a datasource into the repository. I don't know Spring but I know Hibernate. So, I have some questions: Do I assume correctly that these tests more or less go directly to the mysql database (using Hibernate)? In the config xmls, there is a jdbc datasource referenced. Do you have an example for that? What jar files are needed to run this test? Are they listed somewhere? Is there also the possibility to access the repository without Spring and Hibernate? Because otherwise I would again have lots of jar files that I only need for this. Thanks again! Thomas Link to comment Share on other sites More sharing options...
PrasannaKate Posted May 31, 2008 Share Posted May 31, 2008 Hi, Where you able to access the Repository using Java APIs from outside of Jasper Server? I have a similar requirement in my project. Thanks,Prasanna Link to comment Share on other sites More sharing options...
swood Posted June 3, 2008 Share Posted June 3, 2008 Have a look at the Web Services API and import/export. ShermanJasperSoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now