static findEntity method cannot access jndi resources

2 views
Skip to first unread message

Cory

unread,
Nov 10, 2010, 11:19:25 PM11/10/10
to Google Web Toolkit Contributors
Hi,

The static findEntity methods required by RequestFactory in 2.1.0 seem
to prevent looking up JNDI resources?

I am not using a normal persistence layer in my JEE server side code,
and instead need to access a JNDI resource and marshal my entity
objects without the aid of JPA or JDO.

So I need to do something such as:
new InitialContext().lookup("jndi/path")
and operate on the resource.

I have seen in the Wiki (http://code.google.com/p/google-web-toolkit/
wiki/RequestFactory_2_1_1) and issue 5111 (http://code.google.com/p/
google-web-toolkit/issues/detail?id=5111) that there are plans to
allow a "ReflectiveServiceLayer", and I'm assuming that will allow
something like the above?
(more preferably allowing use of @Inject or other such CDI goodness?)

If anything I'm putting this out there in the hopes there's a better
way, or that at least it's considered within the upcoming design of
RequestFactory in 2.1.1

Thanks,

-- Cory

BobV

unread,
Nov 12, 2010, 9:13:36 AM11/12/10
to google-web-tool...@googlegroups.com
> If anything I'm putting this out there in the hopes there's a better
> way, or that at least it's considered within the upcoming design of
> RequestFactory in 2.1.1

The code is starting to make its way into trunk. The request
processing code is now separated from all of the reflection /
domain-manipulation code. Probably next week, the
ReflectiveServiceLayer will accept some kind of helper object to give
you more control over how domain objects are located and mutated.

--
Bob Vawter
Google Web Toolkit Team

Reply all
Reply to author
Forward
0 new messages