Hi All,
We use EJB3.0 to model Business Layer of our application.
We have Entities: Company, Plant, etc.
and SLS beans that are facades to those entities.
Does any one know how to access Facade SLS beans from ListGrid component or any other using DataSources capability?
In other words, how to create ds.xml that describes access to EJB beans?
And whether it is supported by SmartClient or not.
Thanks,
Volodymyr
In general, SmartClient supports automatic serialization of any Java Bean so that they can be viewed in a ListGrid. Look at the Java Integration examples online and in the SDK under Examples -> Java Integration from the SDK Start page.
Hi again!
I have one more question on this topic.
Is it possible to define DataSource with DMI call, and instead simple Java Class (DMI Stub) provide Session Bean reference? So SmartClient will retrieve this session bean automigically?
As far as I know it is not supported. However I think it would be a really nice feature.
Thank you,
Volodymyr
Use lookupStyle:“attribute” with an attributeScope of “session”.
Sorry for not specifying before but by Session Bean I mean EJB Session Stateless Bean.
Still your answer is valuable. We may create servlet filter which will assign required session bean to the WebSession.
Here are two questions:
- What is a URL of servlet that handles DataSource requests? (So I can setup filter properly)
- Would it be possible to access DataSource information from that filter?
- Little outstanding question: Is it possible to provide custom data for each
DataSource fetch/update/add operation call? So on TreeGrid I specify this information and it can be used on Server Side?
Thank you!
Volodymyr