Jump to content
Changes to the Jaspersoft community edition download ×

help on java beans datasource example


joka83

Recommended Posts

 hey everybody, I got a few problems in understanding the application-context file for the javabeans datasource example :(

 

<bean id="myCustomDataSource" class="com.jaspersoft.jasperserver.api.engine.jasperreports.util.CustomDataSourceDefinition">

<property name="factory" ref="customDataSourceServiceFactory"/>

<property name="name" value="myCustomDataSource"/>

<property name="serviceClassName" value="example.cds.CustomSimplifiedDataSourceService"/>

 

I dont understand all of these elements...

What I understand is, that <property name="serviceClassName" value="example.cds.CustomSimplifiedDataSourceService"/>  should point to the javaclass, which implements ReportDataSourceService .

 

but I dont understand the firs 3 lines:

I assume, that "bean id" just needs to be a unique key to identify the bean, but which class do I need to call there?

And what about line 2 and 3? I neither find files nor methods named "customDataSourceServiceFactory"  or "myCustomDataSource" in the whole sample project :(

 

I think I just need a push into the right direction ... plz help me out :(

 

regards

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...