Re: Unknown Repository class on WAS8 with v1.5.0

2015-10-22 Thread akm
It works after reverting commit 75fba93 Thanks -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Unknown-Repository-class-on-WAS8-with-v1-5-0-tp4661461p4661613.html Sent from the Apache DeltaSpike Incubator Discussions mailing list archive

Unknown Repository class on WAS8 with v1.5.0

2015-09-11 Thread akm
We have a repository that works fine in unit tests but when we deploy to WAS8 we get an error - Caused by: java.lang.RuntimeException: Unknown Repository classes [class com.myapp.resource.repository.BookingRepository$$DSPartialBeanProxy, class This happens with Deltaspike v1.5.0 It works when

Re: Return type of Repository native query

2015-08-07 Thread akm
Thanks Thomas for the response. It works with the workaround. Any idea if the bug will be fixed? Thanks -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Return-type-of-Repository-native-query-tp4661333p4661337.html Sent from the Apache

Re: Return type of Repository native query

2015-08-07 Thread akm
I don't seem to have access to open an issue -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Return-type-of-Repository-native-query-tp4661333p4661340.html Sent from the Apache DeltaSpike Incubator Discussions mailing list archive at

Return type of Repository native query

2015-08-06 Thread akm
I have a simple native query in my repository @Query(value = select * from COUNTRY c where c. COUNTRY_C = ?1, isNative = true) public abstract ListCountry findCountryByCode(String countryCode); I execute it by the following line – ListCountry countryList =

Re: Start Request scope manually fro a worker thread(asynchronous thread) in WAS8

2015-07-16 Thread akm
CDI-WorkerThread.zip http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/file/n4661127/CDI-WorkerThread.zip Attached a Sample-EAR project.. -- View this message in context:

Re: Start Request scope manually fro a worker thread(asynchronous thread) in WAS8

2015-07-16 Thread akm
Mark, Now we are getting a NullPointer Exception while trying to enable the CDI features for the Worker thread (created by the concurrent ExecutorService )in our MultiCore framework. Earlier It did work fine in our asynchronous framework when the Worker Thread(Actually this worker thread is

Re: Start Request scope manually fro a worker thread(asynchronous thread) in WAS8

2015-07-16 Thread akm
CDI-WorkerThread.zip http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/file/n4661129/CDI-WorkerThread.zip Attached a Sample-EAR Project. TestCdiServlet -Front Controller... -- View this message in context:

@TransactionScoped Entity Manager does not support a readonly hint

2015-07-13 Thread akm
Using a TransactionScoped EntityManager producer does not allow a read method to have a read only hint. I would like all the read operations to be use a readonly connection. But when I try it I get an error that there is no active scope. Is it not possible to use readonly with a transaction

Re: Cascade persist and merge with Repository.

2015-07-10 Thread akm
Thanks. This works now. The exception that I get has a null message. Is this intentional or should it have the EclipseLink error message? *The EclipseLink error is -* Caused by: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not

Re: Start Request scope manually fro a worker thread(asynchronous thread) in WAS8

2015-07-10 Thread akm
Thank you Mark... That did work.. Now RequestScope is available for the Batch(Async) Jobs. -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Start-Request-scope-manually-fro-a-worker-thread-asynchronous-thread-in-WAS8-tp4661026p4661038.html

Re: Cascade persist and merge with Repository.

2015-07-10 Thread akm
I had another question Since this was due to the non portability of non-auto generated keys, is there any other impact of using non-auto generated keys? We use uuids and was just wondering if you have any recommendations on the usage of generated sakeys versus uuids for primary key. Thanks --

Re: Cascade persist and merge with Repository.

2015-07-10 Thread akm
Thanks for all the help you have provided, appreciate it a lot. -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Cascade-persist-and-merge-with-Repository-tp4661002p4661045.html Sent from the Apache DeltaSpike Incubator Discussions mailing

Re: Cascade persist and merge with Repository.

2015-07-10 Thread akm
*The unit test console log just displays -* Jul 10, 2015 3:14:46 PM org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener testFailure INFO: [failed] test.com.myApp.it.test.CascadeTestWithRepository#createBookingWithRepository message: Failed calling Repository:

Scope of Entity Manager

2015-07-10 Thread akm
Does DeltaSpike have any recommendation on the the scope of the Entity Manager that will be used by the Repository? I have tried both the @RequestScoped and the @TransactionScoped and would like to know which DeltaSpike recommends and why. Thanks -- View this message in context:

Re: Cascade persist and merge with Repository.

2015-07-09 Thread akm
Do you have any estimate on when the snapshot will be ready? -- View this message in context: http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Cascade-persist-and-merge-with-Repository-tp4661002p4661025.html Sent from the Apache DeltaSpike Incubator Discussions mailing list

Start Request scope manually fro a worker thread(asynchronous thread) in WAS8

2015-07-09 Thread akm
Since RequestScope is not available as part of the worker thread we are trying to use Deltaspike API to start the RequestScope context, WAS throws exception - Caused by: java.lang.NoClassDefFoundError: org.apache.webbeans.config.WebBeansContext at

Re: Cascade persist and merge with Repository.

2015-07-09 Thread akm
I just got the 1.4.2-SNAPSHOT from the http://repository.apache.org/snapshots repository, but it still behavahes the same way. I do not see any change in the isNew method code. public boolean isNew(Object entity) { try { return

Re: Cascade persist and merge with Repository.

2015-07-08 Thread akm
I have attached a simple gradle CascadeRefreshGradleTestProject.zip http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/file/n4661005/CascadeRefreshGradleTestProject.zip project with unit tests. -- View this message in context:

Re: Cascade persist and merge with Repository.

2015-07-08 Thread akm
I will try to override the isNew method. We have non auto generated keys for what we consider Lookup type of Entities. example country, city, state. -- View this message in context:

Cascade persist and merge with Repository.

2015-07-06 Thread akm
I am seeing unexpected behavior with Cascades on relationships with repositories with DeltaSpike. I have tried with both v1.4.1 and v1.4.0 I have two entities Booking and Adventure Booking has a OneToOne Relationship with Adventure with a CacadeType = REFRESH *@OneToOne(cascade =

DeltaSpike Data Module Repository

2015-06-11 Thread akm
We are piloting DeltaSpike Data Module in our enterprise. Our requirements are to add a query hint to bypass cache for the find methods since most of our applications need to get the latest data from the database as the records may be directly inserted or updated in the database. I cannot find a

Re: DeltaSpike Data Module Repository

2015-06-11 Thread akm
Thanks for the reply. We are creating a framework that all our enterprise applications will be using; so I am looking for a generic solution that I can add in a abstract class that then all entities can use. Basically looking for something like just adding a hint to the current