Ticket T550589
Visible to All Users

XAF Audit trail in non-XAF apps (windows services / web services)

created 8 years ago

Hi team,

I'm currently developing a XAF application, using application server. As per business requirements, we also have some windows and web services that need read/write access to our application objects. I connect these via tcp to our application server and they work perfectly.

I've been looking the way for these clients to write audit trails, but I haven't been successful. I've tried using "AuditTrailService.Instance" to begin an audit session and directly creating the audit objects and saving them using "AddCustomAuditData", but the ObjectAuditProcessorsFactory doesn't get initialized, so I get an exception. I've also tried to create audit objects through the ObjectSpace and I get an exception because there are no constructors.

Can you please help me with any idea?

Thanks for your help,
Rebeca

Answers approved by DevExpress Support

created 8 years ago (modified 7 years ago)

Hello Rebeca,

Am I correct that you need to provide the full XAF Audit Trail module functionality from non-XAF apps? I must note that this is not a primary usage scenario for our product, and thus we do not provide much documentation on this. Be ready to research this task on your own.
I suggest you consider getting started with the following examples demonstrating certain common scenarios:
How to use XAF Audit Trail module outside XAF
How to use the XAF Audit Trail module in ASP.NET application

The following concepts may be helpful as well:
Concepts > Data Manipulation and Business Logic > Access XAF Application Data in a non-XAF Application
How to reuse XAF Views and other standard module functionality in non-XAF apps, forms or controls

>>I'm currently developing a XAF application, using application server.
I guess you are talking about the XAF middle-tier application server described at Concepts > Security System > Middle Tier Security - WCF Service. We would greatly appreciate it if you describe your main motivation behind this configuration choice as well as your experience with it (how does this feature meet your business needs so far?). Thanks in advance.

    Show previous comments (4)
    Dennis Garavsky (DevExpress) 7 years ago

      And I guess your application server and database are located within the same network or close to each other, correct?

        Yes, they are in the same network

        Dennis Garavsky (DevExpress) 7 years ago

          Thanks!

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.