Re: TransactionControl with exiting datasources and geronimo xa transactions

2019-09-02 Thread Timothy Ward
Hi Matteo, Apologies for the lack of replies to this. I’m afraid that you hit the beginning of the August vacation season! The fundamental issue that you have is that it isn’t possible for you to mix an external JTA TransactionManager with the Aries Transaction Control service. Even if Aries a

Re: JPA 2.2 support

2019-06-20 Thread Timothy Ward
To my knowledge this hasn’t been done yet. It shouldn’t be a big job to add it if you wanted to submit a patch. All the best, Tim > On 22 May 2019, at 16:16, Andrei Shakirin wrote: > > Hi, > > Does Aries support JPA 2.2 specification? > > I am trying to install Hibernate 5 under Karaf 4 wit

Re: Jax-RS Whiteboard and OpenAPI

2019-06-19 Thread Timothy Ward
Hi, To my knowledge nobody has done this in a reusable way yet, but if you’re interested in doing so then adding it as a project in the integrations would be great! Tim > On 18 Jun 2019, at 13:07, Oliver Schweitzer wrote: > > Hi, > > I’m successfully using the Jax-RS Whiteboard in Karat 4.

Re: Aries JAXRS whiteboard question

2019-06-17 Thread Timothy Ward
Hi, I feel that the best place to ask this question would be the Apache Aries mail list (given that it’s an Aries project). I’m therefore cross posting this back to the Aries list. In general repackaging a library is intended to shield users from the underlying implementation details. In the

Re: Aries Async Service and Timeouts

2019-01-29 Thread Timothy Ward
Hi Sebastian, Maybe some feature of Async that i missed? For the moment, no. The Aries Async project hasn’t had many calls for new functionality, and so it hasn’t been updated to support OSGi R7. The Promises support is mostly done, and with a day or two of effort I’m sure it would be back u

Re: JDK 11 support

2018-10-18 Thread Timothy Ward
This is something that will happen, but if you’re keen to muck in then patches are always welcome! Tim > On 17 Oct 2018, at 21:57, Andrei Shakirin wrote: > > Hi Aries, > > Do you have any plans to support JDK 11 for all Aries subprojects (proxy, > jpa, transaction, jndi, etc)? > > Regards,

Re: Aries Transaction Control on Karaf 4.2.1

2018-10-04 Thread Timothy Ward
Hi, Sorry for the delay. There really aren’t very many bundles that you need! As seen in https://github.com/apache/aries-tx-control/blob/f7cd89eb49a99df841c3ab9c217dd678d5a18121/tx-control-providers/jpa/tx-control-jpa-itests/src/test/java/org/apache/aries/tx/control/itests/XAEclipseLink_2_6_0_Te

Re: Aries 2.7.0 -> JPA 2.0 or 2.1?

2018-08-24 Thread Timothy Ward
The Aries JPA container is a flexible implementation designed to be used with a variety of JPA providers. It is tested across numerous versions of EclipseLink, Hibernate and OpenJPA. Some of these versions only support JPA 2.0 (OpenJPA only got JPA 2.1 support in June), as a result it can work w

Re: Single Transaction across EntityManagers

2018-06-05 Thread Timothy Ward
to be added/deleted (I don’t want updated case to be supported) after EMF is created. Any idea? // Kaja From: Timothy Ward [mailto:timothyjw...@hotmail.com] On Behalf Of Timothy Ward Sent: Tuesday, June 5, 2018 4:13 PM To: user@aries.apache.org<mailto:user@aries.apache.org> Subject

Re: Single Transaction across EntityManagers

2018-06-05 Thread Timothy Ward
Hello, Have you considered using Aries Transaction Control to manage your transactions? This is a much more reliable way to deal with transactions that run across module boundaries, and it is much clearer which resources have “opted in” to the transaction. Best Regards, Tim On 1 Jun 2018, at

Re: Service Loader Mediator (spifly)

2018-05-21 Thread Timothy Ward
The best option is, of course, to avoid using ServiceLoader as far as possible and to use injection to obtain the services. This way your Java SE injection container can use ServiceLoader (or whatever else it wants) and you can use OSGi services when in OSGi… Tim On 18 May 2018, at 21:41, Raym

Re: [HEADS UP] Removal of DiscoveryPlugin in Aries RSA zookeeper discovery

2018-02-07 Thread Timothy Ward
+1 for removing it. I disagreed with it as a solution in the first place - it is up to the Topology Manager and RemoteServiceAdmin to generate an EndpointDescription. Once it has been generated it should not be “fiddled with” by the discovery layer as this could break a lot of things! Tim On 7

Re: DS vs Blueprint

2016-09-05 Thread Timothy Ward
es but doesn't the independent start up order of DS require configuration of start up order? On Fri, Sep 2, 2016 at 11:30 AM, Timothy Ward mailto:timothyjw...@apache.org>> wrote: Hi Brad, > On 27 Aug 2016, at 17:45, Brad Johnson > mailto:brad.john...@mediadriver.com>> wrot

Re: DS vs Blueprint

2016-09-02 Thread Timothy Ward
Hi Brad, > On 27 Aug 2016, at 17:45, Brad Johnson wrote: > > While I understand the benefits of DS I'm wondering if it makes much > difference for end users. I mean if I were creating a library for commons, > XStream, Beanio or something else then it makes a lot of sense to expose it > via DS

Re: blueprint:cm multiple bundle but same config file

2016-08-02 Thread Timothy Ward
mpositeRegistry in the AbstractCamelRunner and perhaps that should always be the one used. If one boots up and an OSGi service registry is created both it and the SimpleRegistry are added to the CompositeRegistry but one can access the SimpleRegistry in order to add one's local depend

Re: Can't get MySQL non-jta connection pool with Aries-2.4.0 and EL-2.6.2 working - Looking for (more) example(s).

2016-07-25 Thread Timothy Ward
Hi Erwin, Sent from my iPhone > On 25 Jul 2016, at 15:18, Erwin Hogeweg wrote: > > Hi Tim, > >> Have you considered using Aries Transaction Control? > I definitely have, that was going to be my next step once I got this working. > I just can’t stand that I can’t figure this out. It is not roc

Re: Can't get MySQL non-jta connection pool with Aries-2.4.0 and EL-2.6.2 working - Looking for (more) example(s).

2016-07-25 Thread Timothy Ward
Hi, Have you considered using Aries Transaction Control? It's typically much simpler to configure than the raw JDBC service, and it definitely gives you connection pooling (again, without extra moving parts). Best Regards, Tim Ward Sent from my iPhone On 24 Jul 2016, at 21:51, Erwin Hogeweg

Re: blueprint:cm multiple bundle but same config file

2016-07-13 Thread Timothy Ward
Hi Brad, I’ve been watching this thread for a while, and you’ve finally managed to draw me in :) On 12 Jul 2016, at 17:42, Brad Johnson mailto:brad.john...@mediadriver.com>> wrote: Guillaume, I'm still using Blueprint and have found Camel/SCR to be a pain to work with. It provides no tangi

Re: Aries installation requires Java 1.5?

2013-11-05 Thread Timothy Ward
Hi Rolf, In Java 7 the way in which javac reports warnings changed. This broke projects using older versions of the maven compiler plugin (like Aries). The "errors" are actually warnings, and go away when using a newer maven compiler plugin. There's not much we can do about existing released ve

RE: Aries JTA, JPA, and SCR

2013-07-19 Thread Timothy Ward
Hi Philipp, Declarative Services is designed to be an ultra-lightweight injection runtime, and so it doesn't include the proxying/interception capabilities necessary to support Declarative Qualities of Service like transactions. This is one of the primary drivers for choosing blueprint over DS.

RE: [Blueprint] how to set logging level ?

2013-07-09 Thread Timothy Ward
Hi, The default configuration for the samples sets:org.ops4j.pax.logging.DefaultServiceLog.level=INFOThis can be changed to limit the output there. Otherwise you'll need to set the relevant SLF4J properties on your Eclipse run configuration. I hope this helps. Regards, Tim Ward -

RE: BeanMetadata.getScope() returns "null"

2013-05-10 Thread Timothy Ward
A value of null means that the scope wasn't specified in the XML. We have to return null because in the blueprint specification the default scope of a bean is context specific. Top level beans default to being singleton. Inner beans default to being prototype. When we're parsing snippets we don

RE: Waiting for namespace handlers

2013-05-03 Thread Timothy Ward
>From the list of bundles you supplied it doesn't look like you have the jpa or >transaction namespace handlers installed. Any blueprint bundles you add that >use those namespaces won't work without them. You need org.apache.aries.jpa.blueprint.aries and org.apache.aries.transaction.blueprint to

RE: Will any exception happened will rollback the declarative transaction?

2013-05-01 Thread Timothy Ward
Hi Tom, Blueprint declarative transactions follow the same rules as EJB transactions. A declared (checked) exception is defined as a "normal" return from the method and does not trigger a rollback. Regards Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise

RE: How to use scheduled tasks in aries blueprint

2013-04-17 Thread Timothy Ward
Hi, There's no direct equivalent of the task namespace in OSGi blueprint, however you can convert what you have to standard Java and blueprint very easily. public class MyMethodRunner implements Runnable { private final MyBean myBean; public MyMethodRunner (MyBean myBean) { thi

RE: AW: Problem with ref argument in Aries 1.0

2013-01-28 Thread Timothy Ward
Hi Daniel. I'm assuming that there was a stack trace from the ComponentDefinitionException? This looks like a problem introduced by the inter-bean proxying that Aries started doing some time around 0.4. If you could put together the information from this thread in a bug in Aries JIRA then we

RE: Need Help: Handling multiple versions of same service

2013-01-24 Thread Timothy Ward
Do you want to pick just one of the services? Do you want access to both, but the option to choose which you use? Do you want the newer version to take precedence? The solution Emily suggests ties your blueprint to a particular version of the service. This may be what you want, but it will pre

RE: Blueprint Services remove notification

2012-11-04 Thread Timothy Ward
is the prefered way to do this with Blueprint! Using ServiceTracker doesn't fit with dependency injection at all. There are examples in the unit tests, or in the Blueprint spec. You could also write an example for the Aries documentation! http://aries.apache.org/modules/blueprint.html For a

RE: Aries eclipselink.adapter

2012-10-23 Thread Timothy Ward
x27;t work - I sent a separate message on that. Thank you. Regards, Anatoly. On 20/10/2012 9:54 PM, Timothy Ward wrote: Hi The bit in bracke

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
. On 21/10/2012 12:48 AM, Timothy Ward wrote: This was in addition to changing your datasource blueprint to: wasn't it?

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
enlistment. How do I achieve this? Thanks! Christian Am 20.10.12 11:55, schrieb Timothy Ward: Hi, I'm afraid I haven't had time to do a full review, but from the log I see that your datasourc

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
rds, Anatoly On 20/10/2012 10:43 PM, Timothy Ward wrote: Hi, Have you set up your system packages to prevent people getting wired to the split package in the JDK? If you look at https://svn.apache.org/repos/asf/

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
g framework JTA declarative support in non-OSGi environment. What do you think? On 20/10/2012 9:25 PM, Timothy Ward wrote: I'm glad I could help! I'll check with Manning about the discount code, I wasn't aware

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
aStagingDb xa=true) datasource blueprint? : neither this What's the correct syntax? On 20/10/2012 9:25 PM, Timothy Ward wrote:

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
upon code you have entered has expired" I received this message when applied the code. On 20/10/2012 8:25 PM, Timothy Ward wrote: Hi, I'm afraid I haven't had time to do a full review, but from the log I see

RE: Aries eclipselink.adapter

2012-10-20 Thread Timothy Ward
ual rollback is performed. On 12/10/2012 9:40 PM, Timothy Ward wrote: Hi Anatoly, I'd be interested in seeing the configuration for the transactions that failed to roll back, and in knowing what version of Aries JPA you were us

RE: Aries eclipselink.adapter

2012-10-12 Thread Timothy Ward
Hi Anatoly, I'd be interested in seeing the configuration for the transactions that failed to roll back, and in knowing what version of Aries JPA you were using. If you don't give the JPA container an auto-enlisting datasource then you can end up with non-transactional behaviour. This is why w

RE: UnableToProxyException with aries 1.0.0

2012-09-25 Thread Timothy Ward
I'm pretty sure that Proxy 1.0.0 needs ASM 4.0, 3.3.1 won't work. Regards, Tim From: xl...@talend.com To: user@aries.apache.org Subject: RE: UnableToProxyException with aries 1.0.0 Date: Tue, 25 Sep 2012 02:00:02 + Hi, I’ve checked the ASM but it already has been installed into th

RE: Quiesce support for Blueprint

2012-08-15 Thread Timothy Ward
nterrupting service with > plain OSGi services by installing the updated bundle with the updated > service alongside the old bundle first then then take away the old > bundle. > > Cheers, > > David > > On 13 August 2012 11:24, Timothy Ward wrote: > > Hi Martin, > > &

RE: Quiesce support for Blueprint

2012-08-13 Thread Timothy Ward
Hi Martin, Quiesce support is an optional feature for a number of Aries components. In order to use it you need to install the Quiesce API and Quiesce Manager. You can then use the Quiesce service to shut down your blueprint bundles cleanly even when they are still receiving requests. This allo

RE: ReferenceRecipe waits although service is available again

2012-07-27 Thread Timothy Ward
will drop a mail anyway to let others know what caused the hangs. Thanks and regards,Balazs On Fri, Jul 20, 2012 at 6:01 PM, Timothy Ward wrote: Hi, Could you send the manifests of the three bundles, and the manifest of the updated core bundle? I'd like to check for class-space is

RE: ReferenceRecipe waits although service is available again

2012-07-20 Thread Timothy Ward
Hi, Could you send the manifests of the three bundles, and the manifest of the updated core bundle? I'd like to check for class-space issues. Regards, Tim Date: Fri, 20 Jul 2012 10:20:25 +0200 Subject: ReferenceRecipe waits although service is available again From: balazs.zsol...@everit.biz T

RE: PersistenceDescriptorParserImpl and handling namespaces in persistence.xml

2012-07-10 Thread Timothy Ward
Hi Johan, We always welcome patches and bugs! If you would like to contribute then the best way would be to raise a bug against the JPA component of Aries in JIRA http://issues.apache.org/jira - it would be great if you could include your test case, and even better if your patch includes unit t

RE: JPA extended persistence exception

2012-02-03 Thread Timothy Ward
ite new to JPA, in fact I've simply copied &pasted the example from Aries JPA page.I've removed type="EXTENDED" from the XML but I've experienced the same problem: is there a way to achieve my goal ? Regards On Wed, Feb 1, 2012 at 09:52, Timothy Ward wrote: Hi,

RE: Aries JTA/JPA entityManager and Spring

2012-02-02 Thread Timothy Ward
Hi Charlie, We don't have any annotation-driven configuration for transactions, but it has been on our to-do list for some time. We would be unlikely to tie ourselves to spring-specific annotation classes, but we would definitely like to provide similar function, preferrably with an OSGi speci

RE: JPA extended persistence exception

2012-02-01 Thread Timothy Ward
ng level of the chosen JPA implementation). Luca On Tue, Jan 31, 2012 at 18:00, Timothy Ward wrote: Hi, That's not an error I have seen before, and it has me a little stumped. I can look into it, but I can also warn you that EXTENDED scope EntityManagers are only supported by

RE: JPA extended persistence exception

2012-01-31 Thread Timothy Ward
Hi, That's not an error I have seen before, and it has me a little stumped. I can look into it, but I can also warn you that EXTENDED scope EntityManagers are only supported by the Aries EJB component (Extended scope is defined in terms of Stateful Session Beans). What is it that you are tryin

RE: Aries and fluent builders

2011-12-16 Thread Timothy Ward
All contributions are welcome! I would imagine that the most practical approach would be to add a new namespace handler called fluent, builder or similar. This could be provided as a new bundle in the blueprint project. Adding some XML along the lines of the following to your blueprint: 2

RE: Aries and fluent builders

2011-12-15 Thread Timothy Ward
We could look at adding some better fluent support in Aries blueprint (although it would be in a non-standard namespace). It might be a while before there was anything actually in trunk though. Regards Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise O

RE: Aries and fluent builders

2011-12-15 Thread Timothy Ward
Hi, It's not very concise, but this should work: If you're interested in more information about advanced blueprint techniques then you may find Enterprise OSGi in Action to be a useful resour

RE: Multiple database for one OSGI/JPA bundle

2011-12-06 Thread Timothy Ward
Hi Damien, Will all of these customers need to run in the same OSGi framework, and do you know what all of the databases are at build time? I can think of two possible options, but they might not fit with your usage pattern: Define multiple persistence units in your persistence bundle (a persi

RE: new release of aries jndi bundle

2011-11-28 Thread Timothy Ward
Hi, Sorry for the delay with this. We hit an issue with the Maven Release Plugin when doing our last release. This meant that the blueprint binaries it published weren't actually the binaries we voted on, and we've been trying to sort that out. I don't think that there would be a problem with

RE: Aries/OpenJPA strange error - A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName?

2011-11-22 Thread Timothy Ward
Hi, That's the error Open JPA gives you when the DataSource fails. This is probably because your JNDI lookup is failing. Is there a valid DataSource at jdbc/dupcheckcts ? Regards, Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in Action (http:/

RE: Call OSGi services programmatically

2011-11-16 Thread Timothy Ward
Hi Martin, Aries doesn't have a programmatic API for creating blueprint managed beans, references or services. I assume that XML isn't appropriate for your use case? Regards. Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in Action (http://www.m

RE: CXF DOSGI and transactions

2011-11-16 Thread Timothy Ward
Hi, I'll try to find someone to follow up on this, but you might want to raise this on the CXF list as well. There will be more DOSGi developers there than there are on the Aries lists. Regards, Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in

RE: Strange OpenJPA and BP problem

2011-11-16 Thread Timothy Ward
, Nov 15, 2011 at 3:04 AM, Timothy Ward wrote: Hi Matt, Without more context it is very difficult to debug remotely - did anything get redeployed? It looks like you've hit ARIES-765 to me. Regards Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate

RE: Strange OpenJPA and BP problem

2011-11-15 Thread Timothy Ward
Hi Matt, Without more context it is very difficult to debug remotely - did anything get redeployed? It looks like you've hit ARIES-765 to me. Regards Tim Ward --- Apache Aries PMC member & Enterprise OSGi advocate Enterprise OSGi in Action (http://www.manning.com/cummins)

RE: Support for interceptors?

2011-11-14 Thread Timothy Ward
m [mailto:timothyjw...@hotmail.com] On Behalf Of Timothy Ward Sent: vrijdag 11 november 2011 16:33 To: user@aries.apache.org Subject: RE: Support for interceptors? Hi Frederik, As Graham says, the way to implement this is with a namespace handler. If you create your own namespace then you ca

RE: Support for interceptors?

2011-11-11 Thread Timothy Ward
Hi Frederik, As Graham says, the way to implement this is with a namespace handler. If you create your own namespace then you can add an element (or attribute) in the service you want to be intercepted. The namespace handler can then do something like this: public Metadata parse(Element elt,

RE: Exposing Services Remotely

2011-10-28 Thread Timothy Ward
I have used DOSGi successfully with Aries, and there will be a discussion of using in Enterprise OSGi in Action (http://www.manning.com/cummins) DOSGi is really good for exposing OSGi services as Web Services, and for consuming Web Services as OSGi services. I would definitely recommend it. The

RE: Service property assigned with a service reference

2011-10-25 Thread Timothy Ward
vice is not a String, then I don't see how I can "add a type of java.lang.String" because such a type indication is only available with and not . Regards, David Le 25/10/2011 13:19, Timothy Ward a écrit :

RE: Service property assigned with a service reference

2011-10-25 Thread Timothy Ward
's only by chance, isn't it? Thanks again, Regards, David Le 24/10/2011 15:55, Timothy Ward a écrit : Hi, It is allowed to use a component instance as a service property, however the following rules ap

RE: Meaning of this message

2011-10-25 Thread Timothy Ward
Hi, This probably means that you are shutting down your JPA runtime and there is no longer any managed persistence support (i.e. you have stopped the aries JPA container context bundle). That's the only time this message is issued. Regards, Tim > Date: Mon, 24 Oct 2011 20:17:41 +0200 > Subj

RE: Service property assigned with a service reference

2011-10-24 Thread Timothy Ward
Hi, It is allowed to use a component instance as a service property, however the following rules apply (from 121.6.6 of the enterprise specification) Each service can optionally be registered with service properties. The serviceProperties is a list of MapEntry, see on page 236. This metadata

RE: Blueprint and Spring ApplicationContextEvents

2011-10-11 Thread Timothy Ward
Hi, Your approach sounds perfectly reasonable. There is no "start" equivalent in blueprint, just init methods. This is obviously something new and proprietary in Spring 3.x.. We could conceivably add something like this to blueprint, but in general the Apache Aries blueprint container is an i

RE: Generics And Aries Blueprint

2011-10-11 Thread Timothy Ward
Hi, I would expect this to work, have you tried specifying index parameters for the constructor arguments? Also, it would be worth opening a JIRA with some failing example code attached (unless of course you want to supply some tests and a fix :)). Blueprint gets fairly regular attention from

RE: Aries Blueprint 0.4?

2011-10-10 Thread Timothy Ward
Hi Gareth We are working toward a release of blueprint right now. Unfortunately getting ready for this release has flagged some historical errors in the versioning policy of our pom files, so we're also having to release a number of of other projects with fixes for this. We hope to have a blue

RE: KARAF and JPA Bundle issues - Urgent

2011-09-21 Thread Timothy Ward
Hi, Are you still seeing this problem? Have you tried debugging to see why your Persistence Provider service might be null? Regards, Tim Date: Fri, 16 Sep 2011 18:17:33 -0500 Subject: KARAF and JPA Bundle issues - Urgent From: mattmadha...@gmail.com To: user@aries.apache.org; us...@felix.apac

RE: Auditor and OSGi

2011-09-07 Thread Timothy Ward
rs to use the class loader for the bundle containing the persistence.xml? /Bengt 2011/9/6 Timothy Ward This sort of problem is usually caused by a JPA provider using the wrong classloader to try and find your class. If you import the se.digia.maia.common.auditlog.impl package into your p

RE: OSGi (Blueprint) fragment and host bundle notification

2011-09-07 Thread Timothy Ward
Hi, >From the original question I would say "No, there is no way for a host bundle >to receive a notification when a fragment attaches". Fragments only attach at >resolution time, therefore the host bundle can never see the attachment >because it is, by definition, not resolved yet! What you

RE: Problem with Aries JPA

2011-09-06 Thread Timothy Ward
Hi, The error stack you are showing indicates that the blueprint for the blog persistence bundle failed to start because there was no EntityManagerFactory service. This could be the case for a number of reasons, for example missing DataSources, Databases, missing JPA container bundles etc. Ar

RE: Auditor and OSGi

2011-09-06 Thread Timothy Ward
This sort of problem is usually caused by a JPA provider using the wrong classloader to try and find your class. If you import the se.digia.maia.common.auditlog.impl package into your persistence bundle *and* OpenJPA uses the Persistence Unit classloader (rather than its own) to load it then e

RE: Proxy Serialization

2011-07-04 Thread Timothy Ward
Yes, This is a slightly unpleasant issue which affects all our proxy instances going back to 0.1 and before. The problem we have is that we can't unwrap the proxy on its way into the ObjectOutputStream (there's nothing we can hook into). As a result you end up with something that either breaks

RE: Persisted record are not visible from 'outside'

2011-06-30 Thread Timothy Ward
Hi, >From the logs things seem to be operating properly, but I do have two >questions. Is the transaction where the data is written actually committing before the transaction that reads it? I don't see any log for "Clearing up EntityManager as the transaction has completed.". If not then the

RE: 0.4

2011-06-28 Thread Timothy Ward
Hi, I'm happy to look at getting a new release of the Aries JPA container. There are a couple of hoops to jump through with the build, but now that Equinox 3.7 and the OSGi 4.3 API are available it should be possible for us to get the build into a release-able state Regards, Tim Date: Tue,

RE: Attaching jpa persistence.xml via fragments to a persistence bundle

2011-06-20 Thread Timothy Ward
; provider specific properties) which is not part of my persistence > bundle? > Maybe using a selfwritten > org.apache.aries.jpa.container.ManagedPersistenceUnitInfoFactory which > has preconfigured properties/settings for a specific persistence unit > and merges them? > > Re

RE: Thread-Safety

2011-06-20 Thread Timothy Ward
The answer to your EntityManager question is both yes and no :) The managed EntityManager instances from the Aries JPA container (the blueprint injected ones, not ones you create yourself) are safe to use concurrently as long as each thread has a different transaction context. We also inject a

RE: Attaching jpa persistence.xml via fragments to a persistence bundle

2011-06-20 Thread Timothy Ward
Hi, There is another much more important reason to use getEntry, the JPA container processes persistence bundles as they are installed to prevent any classes being able to be loaded before the metadata can be parsed. We then immediately create an EntityManagerFactory as the bundle resolves. If

RE: Eclipselink and Aries JPA [was: OSGi JPA Service: Spec and Implementation Mismatch]

2011-06-14 Thread Timothy Ward
Hi,   If this code successfully gets EclipseLink working would you consider contributing it to EclipseLink (or Aries, or perhaps both)? It would be great to have more JPA providers that "just work". Regards, Tim > Date: Mon, 13 Jun 2011 11:31:16 +0200

RE: Avoiding OpenJPA Build Time Enhancement with Aries?

2011-06-14 Thread Timothy Ward
I forgot to add. This support isn't just for OpenJPA it should work with any JPA provider. Tim > From: timothyjw...@apache.org > To: user@aries.apache.org > Subject: RE: Avoiding OpenJPA Build Time Enhancement with Aries? > Date: Tue, 14 Jun 2011 10:35:4

RE: Avoiding OpenJPA Build Time Enhancement with Aries?

2011-06-14 Thread Timothy Ward
David is correct Aries JPA added load-time enhancement support and Classpath scanning support (i.e. runtime detection of entity classes) in trunk about 2 months ago. There's nothing you need to do to switch this on other than run in a 4.3 compatible framework. We test on Equinox 3.7 mileston

RE: OSGi JPA Service: Spec and Implementation Mismatch

2011-06-13 Thread Timothy Ward
Hi, Some comments in line, but broadly speaking I feel your pain. I've been trying to implement automated EclipseLink tests for a long time but can't get them to support EE mode. I'm tempted to provide a shim bundle in Aries to make it work... Regards, Tim --

RE: Blueprint JTA Annotations?

2011-05-11 Thread Timothy Ward
Hi Matt, I'm afraid there is currently no support for annotation-based configuration in aries blueprint. We are prototyping annotation configuration for blueprint, but this doesn't currently include support for custom namespaces like transactions. If you have anything you'd like to contribute

RE: Encrypting passwords with Aries JPA

2011-04-02 Thread Timothy Ward
Hi Kent, What version of the Aries JPA container are you using? There were a number of timing issues around JPA datasources that were improved through the use of a delayed lookup in the JPA container, this passes a proxy datasource to OpenJPA and only does the real lookup when the first Databa

RE: OpenJPA starting up blocks thread

2011-02-24 Thread Timothy Ward
Hi, This occurs because the entire Aries JPA container is as lazy as possible, we don't create an EntityManager until the first time the service is used. If the EntityManagerFactory hasn't been used before then OpenJPA can take a while to create the EntityManager. All I can suggest is that you

RE: Void factory method

2011-02-22 Thread Timothy Ward
ative change? > > Alasdair Nottingham > > On 22 Feb 2011, at 22:21, Timothy Ward wrote: > > > > > Hi, > > > > Just a query, but I'm assuming that we can't just new up an instance of the > > Server and inject into the static methods

RE: Void factory method

2011-02-22 Thread Timothy Ward
Hi, Just a query, but I'm assuming that we can't just new up an instance of the Server and inject into the static methods as if they were instance methods on a normal bean? I don't believe we do any checking to see whether property setters are static or not. This seems like it would be the sim

RE: persistence.xml : provider-specific extensibility?

2011-02-16 Thread Timothy Ward
Hi Jamie, Unfortunately what you want to do isn't part of the JPA spec (as I'm sure you've noticed) and so there is no nice, simple way to make this work. Of the four options you outline: 1) This is an unpleasant solution, and realistically you would need to name all of the persistence units

RE: GRACE_PERIOD for bundle persistence-jpa-aries !!

2011-02-10 Thread Timothy Ward
i...@gmail.com > To: user@aries.apache.org > > Hi Timothy, > > How can I help you to improve Aries Documentation (wiki page, docbook, ) ? > > Regards, > > Charles > > > On Thu, Feb 10, 2011 at 11:08 AM, Timothy Ward wrote: > > > > Hi Charl

RE: GRACE_PERIOD for bundle persistence-jpa-aries !!

2011-02-10 Thread Timothy Ward
Hi Charles, I'm glad you found the problem here :). An empty "Meta-Persistence: " (note the trailing space) would also do in this case because META-INF/persistence.xml is the default location. Regards, Tim > Date: Wed, 9 Feb 2011 14:57:49 +0100 > Subje

RE: Spring & Aries Tx Manager

2011-02-10 Thread Timothy Ward
Hi Charles, The element will make use of the javax.transaction.TransactionManager service and will commit any transactions that it begins as soon as the method invocation on the bean completes. If you want the transaction to be created outside the bean you should really be using a MANDATORY

RE: Aries interop with Spring?

2011-01-10 Thread Timothy Ward
Jan 2011 00:00:54 -0800 > Subject: Re: Aries interop with Spring? > From: halcyon1...@gmail.com > To: user@aries.apache.org > > Hi Tim- > > On Thu, Jan 6, 2011 at 2:58 AM, Timothy Ward wrote: > > > > Hi David, > > > > From what you are describin

RE: Aries interop with Spring?

2011-01-06 Thread Timothy Ward
ere are 22 method invocations > between the source and when it actually hits the method across a ton > of proxies, advice, interceptors, etc, which to me seems quite > excessive. > > Thanks, > David > > On Wed, Jan 5, 2011 at 3:02 AM, Timothy Ward wrote: > > > >

RE: Aries interop with Spring?

2011-01-05 Thread Timothy Ward
Hi David, Your xml file is pretty simple to convert to standard blueprint: http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> The one caveat is that there is no standar