Jump to content

custom JR source Problem


kavita.negi

Recommended Posts

I have created a jre source and test it on ireport it work perfectly .

 

But when I deploy it on jasper server .Connection successfully created but when report is executed it is always empty

 

I have created a seprate xml file to give bean definiton as given below

 

 

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
       

    <!-- define a custom data source -->
    <bean id="EmployeeDS"  class="com.EmployeeDataSourceFactory">
    

</bean>
</beans>

 

 

Please tell me whether there are some thing missing .

Kind regards,

Kavita

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes I create custom jre source and test it on ireport as well as on server it works fine with message connection passed on jasper server.

But when attached to the report on jasper server the report is empty where as in ireport it show data correctly .Is my bean class is correct

Link to comment
Share on other sites

Hi,

 

I am not recollect what exactely issue is but i think you miss somewhere, as report works fine in iReport so the beans class may be correct.

 

Some referece links may be helpful to you.

 

http://community.jaspersoft.com/wiki/custom-data-source-sample-readme#Custom_Bean_Data_Source

 

http://community.jaspersoft.com/wiki/switching-datasource-based-user

 

Thanks

 

Ajinkya

 

 

Link to comment
Share on other sites

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...