Re: Injection of objet created by interceptor (per request)

2012-05-11 Thread David Blevins
On May 9, 2012, at 3:52 AM, Eric Chatellier wrote: > Hi, > > I'm currently using openejb 4.0 as embedded ejb container. > > I'm also trying to find a proper way to create object > in interceptor and getting access to them in EJB. > > Is there any way to: > - create an object (in this case a tra

Re: All my old attempts at c:\users\...\AppData\Local\Temp\ deploy every time

2012-05-06 Thread David Blevins
On May 6, 2012, at 4:15 PM, grubin wrote: > How can I prevent this behavior every time I start the OpenEJB server (in > Eclipse)? > > I can see them deploying. I also have System.out.println statements in my > PostConstruct code and they repeat and repeat (even the old versions of the > console

Re: TomEE Versions..

2012-04-27 Thread David Blevins
As promised :) http://people.apache.org/~dblevins/staging-001/openejb-4.0.0/apache-tomee-1.0.0-webprofile.zip.txt -David On Apr 26, 2012, at 2:39 PM, David Blevins wrote: > Now that we have the trunk/sandbox/release-tools it should be easy to do. > > If I get time I'll see if I

Re: TomEE Versions..

2012-04-26 Thread David Blevins
wrote: > Personaly i look poms but if somebody can perl it it is the best ;) > Le 26 avr. 2012 21:13, "Jean-Louis MONTEIRO" a écrit : > >> If we can automate the process why not. >> I usually just open a distro to look what's inside. >> >> JLouis

Re: TomEE Versions..

2012-04-26 Thread David Blevins
We had the versions on that page originally. Then once we released beta-2 the obvious problem of which versions to document presented itself :) On the general topic of "what's inside" maybe we can do a "unzip -l tomee.zip > tomee.zip.txt" and put that in the downloads directory and link to it

Re: Problem deploying REST Examples on Eclipse

2012-04-24 Thread David Blevins
Moving the libraries doesn't work with beta-2, but I did do some hacking on that just Saturday for the coming 1.0.0 binaries. Is it possible you can try this set of binaries? http://people.apache.org/~dblevins/staging-081/openejb-4.0.0/ Keep in mind those will likely not be the actual 1.0.0 b

ATTN: User Stories for 1.0.0 Release Announcement

2012-04-21 Thread David Blevins
Apache PR is working on a press release for the coming Apache TomEE 1.0.0 final and looking to fill out the user side of the announcement. If you'd like to participate in the announcement, email me directly. Participation could be anywhere from being mentioned, a quote or information on usage o

Re: MDB not invoked

2012-04-12 Thread David Blevins
On Apr 12, 2012, at 6:19 PM, Johnny Guo wrote: > > I did try to config it in openejb.xml like below as well, but it just didn't > work for me. > > > type="javax.jms.ConnectionFactory"> Hi Johnny! I did take a close look at your logs earlier and can verify this won't do anything (these thin

Re: can't persist value in TransactionSynchronizationRegistry

2012-04-12 Thread David Blevins
This kind of EntityManager tracking is provided out of the box for you and is a standard part of JavaEE. In fact it's one of the main benefits you get. EntityManagers are tracked in a transaction and flushed or discarded on commit or rollback, all automatically. This doc talks about how it wo

Re: OpenEJB vs JBoss

2012-03-16 Thread David Blevins
On the note of clustering, we don't do state replication, but we do have failover / load balancing. http://openejb.apache.org/ejb-failover.html At a high level it's your typical smart proxy approach. Servers discover each other, a server list is maintained, the list is sent to the client whe

Re: Feedback on TomEE 1.0.0-beta-2

2012-03-15 Thread David Blevins
Thank you so much for the feedback, Lilly! It would be absolutely fantastic if you could post any errors from the logs or describe what didn't work with the deployment of both #1 and #2 apps. For #1, the Java EE TCK is good but you know how portability goes :) Tens of thousands of tests and st

Re: OpenEJB vs JBoss

2012-03-15 Thread David Blevins
Hi Matthew, Do you have that old blog post around somewhere or mind giving some details on the scale of the system you rolled out? -David On Mar 15, 2012, at 11:42 AM, Jean-Louis MONTEIRO wrote: > Some month ago, we also got a similar feedback from another user and > company. > Here is the ar

Re: OpenEJB vs JBoss

2012-03-15 Thread David Blevins
Hi Markus! Thanks for the feedback! If there were a company with a large budget and expert engineers, what would be on the list of things you'd want to see done to make OpenEJB/TomEE a viable option? -David On Mar 15, 2012, at 4:01 AM, Markus Lutum wrote: > Hi Gil. > > Maybe I have a litt

Re: Internal VM ActiveMQ Broker

2012-02-22 Thread David Blevins
On Feb 20, 2012, at 8:08 AM, anas4120 wrote: > I need to configure an internal VM ActiveMQ broker > My openejb.xml: > > > BrokerXmlConfig = > *broker:(vm://localhost?waitForStart=1&brokerConfig=xbean:file:/// conf path>/activemq.xml)* > ServerUrl = > *vm://localhost?waitForS

Re: Cannot download openejb-tomcat-webapp-4.0.0-beta-2.war

2012-02-22 Thread David Blevins
On Feb 22, 2012, at 11:45 AM, violetagg wrote: > Hi, > > I'm trying to download openejb-tomcat-webapp-4.0.0-beta-2.war, but it seems > that the links are broken? > Can you please help? Thanks! The war files changed names and it looks like we (I) forgot to update the scripts that publish the

Re: Maven plugin for OpenEJB

2012-02-17 Thread David Blevins
On Feb 17, 2012, at 10:03 AM, Charles Moulliard wrote: > Hi, > > Is there a maven plugin to use OpenEJB in embedded more like we can do with > Glassfish > >org.glassfish >maven-embedded-glassfish-plugin >3.1.1 > > If this is not the case, what do

Re: Injection fails in any class that didn't instantiate an embedded ejb container

2012-02-17 Thread David Blevins
On Feb 17, 2012, at 5:08 AM, afryer wrote: > Just upgraded to beta-2 and now @ManagedBean works. I had to change the > context I was binding to, to get this to work. > > Using @LocalClient i had to bind using this code... > > > > Using @ManagedBean i have to bind like this... > > > > That

Re: Injection fails in any class that didn't instantiate an embedded ejb container

2012-02-16 Thread David Blevins
There's a little bit of magic we have to see who called the EJBContainer and add that class to the application as a @ManagedBean. Not really magic actually -- we create an exception and then trim the call stack. The alternative is to simply add @javax.annotation.ManagedBean to your test classe

Re: Jetty Support

2012-02-11 Thread David Blevins
On Feb 8, 2012, at 4:53 AM, john70 wrote: > Hi David, > > thank you again for taking time! > > > > David Blevins-2 wrote >> >> The part that has historically been missing in Jetty terms is the >> injection support of various Java EE things into Serv

Re: ReflectionServiceFactoryBean constantly creating services

2012-02-07 Thread David Blevins
Can you paste the configuration for your stateless container? I suspect there might be some aggressive MaxAge setting. -David On Feb 7, 2012, at 10:55 AM, Gil Teitelbaum wrote: > Hi Everyone, > > > > I have an OpenEJB 3.1.4 embedded server that seems to be creating a web > service every tw

Re: Jetty Support

2012-02-03 Thread David Blevins
On Feb 3, 2012, at 3:41 AM, john70 wrote: > Hi all, > > I know you are very busy. But my question is still not answered. > Are you planning (I mean real planning and not a hypothetical one) to add > Jetty support or not? Had a partial response crafted, but not finished. The "who cares about c

Re: Deploying JAX-WS/JAX-RS services on TomEE+

2012-01-31 Thread David Blevins
On Jan 31, 2012, at 3:25 AM, Isuru Suriarachchi wrote: > Hi all, > > I'm new to TomEE+ and I'm trying to deploy a JAX-WS web service on it. I > already have a CXF service (.war file) which is working fine on Tomcat. But > as CXF is already embedded in TomEE+, I think there's no need to include >

Re: Jetty Support

2012-01-30 Thread David Blevins
On Jan 30, 2012, at 2:13 AM, john70 wrote: > Hi Romain, > > Thank you very much for response! > > > Romain Manni-Bucau wrote >> >> Why do you prefer jetty? You can run tomee in a test, you can use >> arquillian, you can run it from your pom too. Do you prefer jetty because >> of jetty or beca

Re: Deploy unpacked jar

2012-01-17 Thread David Blevins
The apps/ dir itself supports unpacked jar files. As Romain guessed, the deploy tool only supports zip files (jars, ears, wars, rars). This is because the command line deploy tool actually uploads the jar file by reading the file from disk and sending to the server over a socket. We could sup

Re: TomEE Plus (1.0.0-beta-2): Getting NPE for JAX-RS resource with context root "/"

2012-01-13 Thread David Blevins
Excellent work! I'll make sure this makes it into beta-2 when we re-roll it. -David On Jan 13, 2012, at 11:44 AM, Romain Manni-Bucau wrote: > fixed on trunk > -> https://issues.apache.org/jira/browse/TOMEE-61 > > - Romain > > > 2012/1/13 Romain Manni-Bucau > >> Hi Craig, >> >> yes, we ass

Re: patch: spend time in bussines method

2012-01-12 Thread David Blevins
First, thank you so much for the patch! We actually added something very similar to that in 3.1.3. Check out: https://issues.apache.org/jira/browse/OPENEJB-1275 Open to any changes to that that might make it a better fit for your needs. We could also use some help documenting it. -David

Re: Cumulogic PAAS, OpenEJB, Tomcat 7

2011-12-20 Thread David Blevins
t how to go beyond that. -David > On Dec 20, 2011 3:13 AM, "David Blevins" wrote: > >> >> On Dec 19, 2011, at 2:45 AM, Ravindranath Akila wrote: >> >>> Ok. Just completed reading the documentation on TomEE. Was it always >>> OpenEJB's fo

Re: Cumulogic PAAS, OpenEJB, Tomcat 7

2011-12-19 Thread David Blevins
; On Dec 18, 2011 3:33 PM, "Romain Manni-Bucau" wrote: > >> Yep but it needs to be ran. In some config it can be ignored (permission, >> policy...). >> >> - Romain >> >> Le 17 déc. 2011 22:45, "David Blevins" a écrit : >> >>

Re: Cumulogic PAAS, OpenEJB, Tomcat 7

2011-12-17 Thread David Blevins
On Dec 17, 2011, at 12:16 PM, Romain Manni-Bucau wrote: > It still works but some features need more work (endorsing tomcat for > instance). So you have no guarantees with the drop in war approach. The installer servlet will add the javax.annotation.Resource class to the endorsed dir if that's

Re: Cumulogic PAAS, OpenEJB, Tomcat 7

2011-12-17 Thread David Blevins
On Dec 17, 2011, at 12:04 PM, Ravindranath Akila wrote: > Thanks Romain, I informed Cumulogic. I'll see if we can get TomEE onboard > Cumulogic. Sad to see the drop in war go away! Good times! It didn't go away, in fact we certified it. TomEE is basically the drop-in-war, zipped up again. -D

Re: Could not locate SessionFactory in JNDI

2011-11-28 Thread David Blevins
That's a great tip. You should throw it in the docs. On my phone at the airport at the moment, but think we have a hibernate specific page that would be a great place for it. -David On Sunday, November 27, 2011, AndyG wrote: > Try this, if you really need to get to the hibernate session (you c

Re: OpenEJB Embeeded Progress Monitor

2011-11-09 Thread David Blevins
On Nov 9, 2011, at 9:06 AM, Romain Manni-Bucau wrote: > yep i understand, > > however it is hard to know before starting how many beans are "to deploy". > > we could do something like: send an event when we know everything, send a > event by bean...but i think it will have performance issues an

Re: Inject CDI Objects into MDB's

2011-11-09 Thread David Blevins
On Nov 8, 2011, at 10:41 PM, Romain Manni-Bucau wrote: > Hi, > > fixed on trunk (jira created here > https://issues.apache.org/jira/browse/OPENEJB-1706 ) Excellent! We should switch that to a "new feature" from bug (see below). > the beta 1 was only web profile oriented so we didn't work on J

Re: Activate JMS persistence on TomEE

2011-11-04 Thread David Blevins
On Nov 4, 2011, at 7:33 AM, seb5 wrote: > So, I tried to configure the broker with xbean like this : The "BrokerXmlConfig = xbean:path/to/activemq.xml" approach does work, but you have to add some libraries to get them to work. At minimum: - xbean-spring - spring That might be it, no

Re: OpenEjb testing EJB 2.1

2011-11-02 Thread David Blevins
On Nov 2, 2011, at 2:32 PM, Alexis Krier wrote: > Hello, > I was looking to test my old 2.1 EJB with this example: > https://github.com/apache/openejb/tree/trunk/openejb/examples/component-interfaces > > I have the EJBHome & EJBObject ok > but where is my SessionBean? I suppose it is "FriendlyPe

JavaOne 2011 schedule

2011-09-30 Thread David Blevins
JavaOne is next week and as usual I will be there. I'm a bit busier than usual this year, but as always I'm more than happy to get together with anyone. In fact it's my favorite part of JavaOne, so please do reach out. Here's my speaking schedule: Session ID: 23166 Session Title: Meet the Ex

Re: @Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread David Blevins
is more or less as follows; complete EJB 3.1 and complete ... well ... guess we'll have to wait for the announcement on that one ;) -David > On Sep 29, 2011, at 7:33 PM, David Blevins-2 [via OpenEJB] wrote: > >> >> On Sep 29, 2011, at 6:12 PM, sarah_a180 wrote: >>

Re: @Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread David Blevins
On Sep 29, 2011, at 6:12 PM, sarah_a180 wrote: > When I tag one of my @Singleton beans with a @PostActivate, I am getting the > stack trace below. I can probably work around this for the short term, but a > fix would be nice. :-) > > If you need more information or a sample project, I can probab

Re: OpenEJB 3.2 availability question

2011-09-22 Thread David Blevins
On Sep 22, 2011, at 4:37 AM, Bjorn Danielsson wrote: > David Blevins wrote: >> >> Anyway, I spent a couple hours last night and got 3.2 build. >> I didn't managed to get a 'mvn release:prepare -DdryRun=true' >> to work. Some help with that would be

Re: OpenEJB 3.2 availability question

2011-09-21 Thread David Blevins
On Sep 21, 2011, at 5:29 AM, Marius Kruger wrote: > On 21 September 2011 02:40, David Blevins wrote: >>>> I assume that the guys are more focussed on the 4.0.0 release ATM and >>>> don't really get around to 3.2.0. >>> >>> Yes, that is my

Re: OpenEJB 3.2 availability question

2011-09-20 Thread David Blevins
On Sep 20, 2011, at 4:04 PM, Bjorn Danielsson wrote: > Marius Kruger wrote: >> >> I assume that the guys are more focussed on the 4.0.0 release ATM and >> don't really get around to 3.2.0. > > Yes, that is my impression too when I read the "dev" mailing list > archives. The 3.2.x branch seems

Re: Next official release OpenEJB/TomEE

2011-09-19 Thread David Blevins
On Sep 14, 2011, at 2:34 AM, beko_hb wrote: > we're starting a new project in our firm and we want to use TomEE. We need > Tomcat 7 and JPA 2.0 Support. In short a full JEE6 Web Profile Stack running > on Tomcat 7. There hasn't been a new (stable) release of OpenEJB since last > year. So I'm aski

Re: create a web application with OpenEjb embedded

2011-09-19 Thread David Blevins
On Sep 19, 2011, at 1:23 AM, Jean-Louis MONTEIRO wrote: > Also note that we are currently working in a full package named Apache > TomEE. But it's under certification and will be available only for OpenEJB > 4.x and newest releases. And to add to that, there is an embedded version of TomEE and j

Re: Can't invoke web service

2011-09-12 Thread David Blevins
Hi Sam, Thanks for the code. I think Romain was looking for something ready to run. Maybe you could attach a zip of the project here: https://issues.apache.org/jira/browse/OPENEJB-1661 -David On Sep 12, 2011, at 11:44 PM, samwun9988 wrote: > Hi, > > Here is my junit test file: > > > R

Re: Accessing an EJB by name from a servlet init method fails in collapsed ear if is specified for the servlet

2011-08-24 Thread David Blevins
FYI, I think I just fixed this last night in trunk (4.0.0-SNAPSHOT). I Published new binaries to the nexus snapshot repo. Grab the latest build from here: http://openejb.staging.apache.org/dyn/latest.cgi -David On Aug 7, 2011, at 9:02 PM, afryer wrote: > Can you refer me to the spec where

Re: Tomcat Servlet Filters (or Valves) and OpenEJB

2011-07-22 Thread David Blevins
On Jul 22, 2011, at 12:28 AM, rnieto wrote: > I've implemented a Valve which just converts the SpNegoHttpFilter into a > class that extends ValveBase instead. Then I did declare it on the same > level as the RequestDumper Valve (on server.xml), and now it works! I'm > seeing on the request dumps

Re: Tomcat Servlet Filters (or Valves) and OpenEJB

2011-07-21 Thread David Blevins
On Jul 21, 2011, at 8:15 PM, rnieto wrote: > I had to add the created spnego jar in the tomcat\lib folder, along with the > openejb-loader and openejb-tomcat. It seems to initialise well, until > openejb starts initialising and pops-up with this error: > > 21 Jul 2011 19:59:31.243 [main] Jn

Re: Tomcat Servlet Filters (or Valves) and OpenEJB

2011-07-21 Thread David Blevins
gt; be available with some other openejb jar that I haven't downloaded, or could > this be replaced with the DeploymentInfo object? Oh, right, we renamed that in trunk :) Yes, DeploymentInfo is the former name. -David > > David Blevins-2 wrote: >> >> I had a look at

Re: Tomcat Servlet Filters (or Valves) and OpenEJB

2011-07-21 Thread David Blevins
On Jul 20, 2011, at 10:55 PM, rnieto wrote: > > Romain Manni-Bucau wrote: >> >> Yep that what i said, webservices are deployed into a context created >> called >> "" so you can't modify it if it is not a global config. All configuration >> managed are the one you can put into openejb-jar.xml. >

Re: simple binding to global jndi

2011-07-01 Thread David Blevins
On Jul 1, 2011, at 10:57 AM, David Latil wrote: > This seems like such an easy question, but I haven't been able to do it yet. > > I have ejb application I am testing using embedded openejb. One of my ejb's > has this in its ejb-jar.xml > > >configURL >java.ne

Re: NameAlreadyBoundException: ParsedName{path=openejb/client/test-classes/comp/env, component=env}

2011-07-01 Thread David Blevins
On Jul 1, 2011, at 7:51 PM, Marius Kruger wrote: > hi, > I keep hitting this every couple of months or weeks. > Basically it seems that openejb does not allow you to have multiple > application clients in the classpath :( > and gives the exception below. > > I logged a bug: https://issues.apache

Re: override annotation based configuration with ejb-jar.xml

2011-06-30 Thread David Blevins
On Jun 30, 2011, at 12:27 PM, kubamarchwicki wrote: > > Romain Manni-Bucau wrote: >> >> if i remember i wrote an abstract class for testng >> >> https://issues.apache.org/jira/browse/OPENEJB-1526 Check that in! That's great. Having not done a lot of work in TestNG I simply had no idea how

Re: override annotation based configuration with ejb-jar.xml

2011-06-29 Thread David Blevins
On Jun 27, 2011, at 1:44 PM, kubamarchwicki wrote: > Here is my issue with OpenEJB. I'm note sure if what I'm trying to do is not > possible or I'm doing something wrong. Saw your article and I don't think you're doing anything "wrong". Maybe the existing set of features don't fully cover what

Re: OpenEJB's Context doesn't support bind, rebind and unbind?

2011-06-22 Thread David Blevins
On Jun 22, 2011, at 4:54 AM, Andre Brito wrote: > It's not OpenEJB specific. We use the same properties to configure a JKS > public certificate in JBoss too. > > >> System.setProperty("javax.net.ssl.trustStoreType", "JKS"); >> System.setProperty("javax.net.ssl.trustStore", "the path to the JKS

Re: Weblogic/EJB help required

2011-06-21 Thread David Blevins
Hi Awais, OpenEJB is an app server like WebLogic. If you wanted to try to run your EJBs in OpenEJB, we could certainly provide assistance. We have a number of examples geared towards learning both EJB and OpenEJB: http://openejb.apache.org/examples.html -David On Jun 21, 2011, at 11:11 PM,

Re: OpenEJB's Context doesn't support bind, rebind and unbind?

2011-06-21 Thread David Blevins
On Jun 21, 2011, at 12:51 PM, Andre Brito wrote: > > David Blevins-2 wrote: >> If anything we ignore the System properties after startup. > Hey David, so even if I use SystemInstance.use().setProperty, OpenEJB won't > recognize that? This system uses OpenEJB, Axis2 and

Re: OpenEJB's Context doesn't support bind, rebind and unbind?

2011-06-16 Thread David Blevins
On Jun 16, 2011, at 6:59 AM, Andre Brito wrote: > This question came up in a meeting: is it possible that OpenEJB "protects" or > "locks" its JVM? We try to set some properties (using System.setProperty) > and it doesn't work. We start another JVM (OpenEJB independent), set the > properties and,

Re: OpenEJB's Context doesn't support bind, rebind and unbind?

2011-06-13 Thread David Blevins
On Jun 13, 2011, at 6:46 AM, Andre Brito wrote: > I don't think the effort is valid. As you probably remember, I'm trying to > migrate our server. We were using JBoss, and apparently the rebind method > has been used without the knowledge of what really is for (I was not at the > company when it

Re: OpenEJB's Context doesn't support bind, rebind and unbind?

2011-06-12 Thread David Blevins
On Jun 7, 2011, at 2:00 PM, Andre Brito wrote: > Hey guys. > > The question is the subject's one: OpenEJB's Context object doesn't support > rebind? I'm using that in JBoss, and when I'm using OpenEJB I get a > OperationNotSupportedException. In general we don't as inside apps for example it's

Re: OpenEJB and HornetQ

2011-06-10 Thread David Blevins
This is really cool! Do you have a twitter id so I can thank you on twitter? -David On Jun 9, 2011, at 4:56 PM, Luca Merolla wrote: > Hello everybody, > > I have managed to use HornetQ together with TomEE and OpenEJB. > If somebody is interested, I have posted some instruction here: > http://l

Re: OPEN EJB most recent version and POJO's.

2011-06-07 Thread David Blevins
On Jun 7, 2011, at 8:38 PM, Zachary1234 wrote: > > Sorry, I had this message mixed up with another one. > What I really wanted to ask was: > > > Do I have to use the libs included with openEJB for the Bean Annotations > described, > > or can I put javaee.jar, from the J2EE 5, in order to use

Re: OPEN EJB most recent version and POJO's.

2011-06-07 Thread David Blevins
On Jun 7, 2011, at 5:11 PM, Zachary1234 wrote: > Do I have to use the libs included with JBOSS AS for the Bean Annotations > described, > or can I put javaee.jar, from the J2EE 5, in order to use the annotations > from the default of the language itself, and still have the application server > p

Re: OPEN EJB most recent version and POJO's.

2011-06-07 Thread David Blevins
As of EJB 3.0 everything is based on POJOs exactly as you describe. POJOs with Remote and local access is supported through JNDI lookup. Different lifecycles are available. And all of it is standard and handled by the container exactly as you describe. In addition they can offer security and

Re: OPEN EJB most recent version and POJO's.

2011-06-07 Thread David Blevins
On Jun 6, 2011, at 4:15 PM, Zachary1234 wrote: > > However, if I wish to access the pojo outside of openEJB, > or even on another network pc, the way to go is JNDI. > Is there an easy way to bind a class or interface pojo > to JNDI? Will just @JNDI (with an optional name) > at the top do the tr

Re: Remote access through network

2011-06-06 Thread David Blevins
On Jun 6, 2011, at 10:31 AM, Andre Brito wrote: > > David Blevins-2 wrote: >> Git should be fine. The Apache repo on Github is read-only, so we'll >> still need a patch file for any changes rather than a pull request. > > Hum. If things are easier with SVN,

Re: Remote access through network

2011-06-06 Thread David Blevins
On Jun 5, 2011, at 8:38 PM, Andre Brito wrote: > Yeah man, let's do it. Awesome! > Already forked the project from Github. Hope during the week I can write > something (if not, weekend for sure). Then I'll commit and pull the issue. > Do you think that it's a nice way to start? I mean... I don'

Re: Can I lookup a different service from a service without @EJB?

2011-06-03 Thread David Blevins
On Jun 3, 2011, at 12:56 PM, Andre Brito wrote: > Sh*t. My fault. It was a typo in my code. Sorry. :) > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Can-I-lookup-a-different-service-from-a-service-without-EJB-tp3571549p3571907.html > Sent from the OpenEJB User m

Re: Remote access through network

2011-06-03 Thread David Blevins
On Jun 3, 2011, at 12:27 PM, Andre Brito wrote: > > David Blevins-2 wrote: >> On the broken examples front maybe you can help us convert a few to >> markdown. >> >> http://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples >> http://openejb.apache.

Re: Can I lookup a different service from a service without @EJB?

2011-06-03 Thread David Blevins
On Jun 3, 2011, at 10:57 AM, Andre Brito wrote: > Hey guys. The subject of this thread is ugly, I know. Pardon me, my english > is very poor. > > I know I can use @EJB. Is simpler, easier and cleaner. But this question > appeared in the team. With JBoss, if I'm in SessionBean A and I need > Sess

Re: Remote access through network

2011-06-03 Thread David Blevins
u guys can do, except keep up > with the great work you are all doing. Every little blog post, tweet and retweet helps too. :) Takes a lot of people to create buzz. > David Blevins-2 wrote: >> You should join the project :) We're growing but we still need more >> contrib

Re: Remote access through network

2011-06-02 Thread David Blevins
On Jun 2, 2011, at 12:47 PM, Andre Brito wrote: > BTW, I was reading the home and found this: > > Apache OpenEJB is an embeddable and lightweight EJB 3.0 implementation that > can > So OpenEJB doesn't support EJB 3.1? Strange, I thought it did. The existing releases support @LocalBean view, @Ma

Re: Remote access through network

2011-06-01 Thread David Blevins
On Jun 1, 2011, at 5:42 AM, Andre Brito wrote: > I'm not sure I can give you any advice, since I don't have much experience in > developing websites. I usually go to the site index and "Ctrl-F-it" what I'm > trying to find. Not the best way, but I got used to it. > > BTW, there's a bug in a few

Re: Translating validation i18n messages

2011-05-26 Thread David Blevins
On May 26, 2011, at 12:29 AM, Aldrin Leal wrote: > David, > > I volunteer for Brazilian Portuguese. However, a doubt: Have you looked at > Ubuntu's Launchpad Service? It lets you crowdsource that: > > https://translations.launchpad.net/ > > Not sure whether are there any restrictions, but soun

Translating validation i18n messages

2011-05-25 Thread David Blevins
One of the best features of OpenEJB is the ability for it to collect all the issues about your app and print them all at once, compiler style. Not only that but we're capable of printing three different levels of detail. And we could do this in any language if we had more translations of the i1

Re: OpenEJB and Jersey

2011-05-24 Thread David Blevins
On May 24, 2011, at 4:10 PM, Luca Merolla wrote: > Hello everyone, > > In my scenario I have an EAR folder with inside an ejb module and 2 web > applications. One is a normal web app while the other is a REST web > application that uses Jersey. > From the REST application I want to inject some E

Re: java.lang.LinkageError

2011-05-23 Thread David Blevins
On May 13, 2011, at 3:17 AM, joe wrote: > The attached stacktrace is produced everytime the client invokes the > call2Methods method after a server restart. All subsequent invocations seem > to be ok. Hmm. I've seen that in Geronimo due to issues in the Karaf classloader, but this is the fir

Re: Problem deploying MBean

2011-05-17 Thread David Blevins
On May 17, 2011, at 9:27 AM, Carlos Rodrigues wrote: > Hi Romain, > > The MBean is useful to be listing on the queue that is used by the EJB that > I'm testing to ensure that the message is received and is correct. E.g.: > > TestA --> EJB_A --> (do some logic and send a message to a queue) -->

Re: Best version to build with JPA 2 in mind?

2011-05-13 Thread David Blevins
On May 13, 2011, at 2:38 PM, David Blevins wrote: > > On May 13, 2011, at 2:08 PM, Luke McCollum wrote: > >> To re-un-hijack this thread: >> >> I took your advice and am attempting to use 3.2-SNAPSHOT in my builds, but >> maven is unable to find >>

Re: Best version to build with JPA 2 in mind?

2011-05-13 Thread David Blevins
me URLs. -David > > On May 12, 2011, at 4:40 PM, David Blevins wrote: > >> >> On May 12, 2011, at 4:14 PM, Luke McCollum wrote: >> >>> I am attempting to move our project to Hibernate 3.6 and I understand that >>> OpenEJB 3.2 supports JPA 2, but I&

Re: Best version to build with JPA 2 in mind?

2011-05-12 Thread David Blevins
On May 12, 2011, at 4:14 PM, Luke McCollum wrote: > I am attempting to move our project to Hibernate 3.6 and I understand that > OpenEJB 3.2 supports JPA 2, but I'm unaware of the level of support in > OpenEJB 4.0, or if it's even ready for use. I'm not expecting rock-solidness, > but I'd like

Re: How to configure the connection strategy?

2011-05-12 Thread David Blevins
On May 12, 2011, at 6:59 AM, Christian Koppen wrote: > Dear OpenEJB users, > > I'm trying to setup an OpenEJB (3.1.4) cluster of several nodes that host a > single application with a single stateless session bean. > > I successfully configured the client to change the server node in case of a

Re: standalone EJB client, failed

2011-05-11 Thread David Blevins
On May 11, 2011, at 7:51 PM, edward wrote: > Hi, what do you mean "openejb-client-3.1.4 " ? and how ? Seemed like from the earlier comment on using the itest 3.0 client as a reference that maybe you might also be using the openejb-client-3.0.jar file. The client/sever versions need to match.

Re: A little help with hibernate.cfg.xml and test datasources

2011-04-27 Thread David Blevins
Hi Andrew! On Apr 27, 2011, at 6:17 PM, Andrew Hughes wrote: > Thanks very much! When I get this all working I think I will submit an new > example to the project (p.s. distributed version control would be nice). An example would be great. There's http://git.apache.org/ if that helps. I thin

Re: HowTo Configure hibernate.jndi.url for Tests

2011-04-21 Thread David Blevins
that property, but if you let me know what that property needs to do specifically I might be able to help better. -David > > > > On Thu, Apr 21, 2011 at 12:42 AM, David Blevins > wrote: > >> >> On Apr 20, 2011, at 8:15 AM, Andrew Hughes wrote: >> >> >

Re: HowTo Configure hibernate.jndi.url for Tests

2011-04-20 Thread David Blevins
On Apr 20, 2011, at 8:15 AM, Andrew Hughes wrote: > Hi All, > > The hibernate layer I am trying to test requires a url for the JNDI > provider, defined by 'hibernate.jndi.url'. > > See > http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html#configuration-hibernat

Re: EJB repository testing with OpenEJB - how to rollback changes

2011-04-05 Thread David Blevins
Hi Piotr! There's an example called 'transaction-rollback' in the examples zip for 3.1.4. Check that out as it has several ways to rollback in a unit test. One of the techniques includes a trick to get a new in memory database for each test. -David On Apr 5, 2011, at 1:16 PM, Piotr D wrote:

Re: ejb client code issue

2011-03-09 Thread David Blevins
On Mar 9, 2011, at 10:06 AM, Balaji Bondili wrote: > I am trying to access an EJB which is deployed in Glassfish app server > and below is the my client code and error . I also included > "openejb-client-3.1.4.jar" in my classpath. The openejb-client jar only works with the OpenEJB app server.

Re: Non-transactional use of injected EntityManager

2011-03-08 Thread David Blevins
On Mar 8, 2011, at 7:24 AM, dallen6 wrote: > Scenario: Stateless session beans with an injected EntityManager, but with > methods which support transactions and often will be called without an > active transaction. > > With OpenEJB 3.1.4, when a Query is created with the EntityManager outside >

Re: EJB 2.1 + OpenEJB + Tomcat + Datasource: Name openejb is not bound in this Context

2011-03-02 Thread David Blevins
On Mar 2, 2011, at 6:13 AM, Alys wrote: > I have a ServiceLocator class, where I use the source code below, to open a > Datasource object: > > Context context = new InitialContext(p); > ... > DataSource ds = (DataSource) > context.lookup("java:openejb/Resource/NameDS") Give i

Re: missing required persistence.xml (apache-tomee-tomcat-7.0.6-3.2-SNAPSHOT)

2011-03-01 Thread David Blevins
On Mar 1, 2011, at 1:58 PM, David Blevins wrote: > I suspect there's something you need out of 3.2 that 3.1.x doesn't have. > Depending on what it is we might be able to get you an older version that > would work better. I see. JPA 2.0. Yes, that's a really big one

Re: LocalClient question

2011-03-01 Thread David Blevins
On Mar 1, 2011, at 9:39 AM, vlad.balan wrote: > Hello, > > why do you have to call > > initialContext.bind("inject", this); > > when using @LocalClient? > > Isn't @LocalClient enough to do all the injection when it is discovered: the > so called deploy action? > Why it happens in 2 times? >

Re: missing required persistence.xml (apache-tomee-tomcat-7.0.6-3.2-SNAPSHOT)

2011-03-01 Thread David Blevins
On Mar 1, 2011, at 5:44 AM, Jean-Louis MONTEIRO wrote: > Hi Nicolas, > > We (I) changed the deployment process especially regarding Tomcat lifecycle. > The collapsed EAR from the EJB 3.1 spec is a bit different from what OpenEJB > did in previous version. > BTW, Collapsed EAR is one feature push

Re: database restart during runtime?

2011-02-24 Thread David Blevins
On Feb 24, 2011, at 6:22 AM, joe wrote: > Hi, > > Should it be possible to restart a database used by the OpenEJB container > without restarting the OpenEJB container itself? We don't support that now, but I'm trying to think what it would take to pull it off. Seems if you were really clever

Re: testing for running OpenEJB server

2011-02-24 Thread David Blevins
On Feb 24, 2011, at 7:38 AM, joe wrote: >> >> public void runningVMs() throws MonitorException, URISyntaxException { >> MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost("localhost"); >> Set activeV

Re: OpenEJB and Database Views

2011-02-10 Thread David Blevins
On Feb 10, 2011, at 11:29 AM, kenundrumz2100 wrote: > > Thanks for the reply David. > > Could you supply a link to the mailing list you forwarded the question to so > I can also track it and see what comes out of it? > > Thanks a bunch! No problem. Here you go: http://openjpa.208410.n2.na

Re: OpenEJB and Database Views

2011-02-10 Thread David Blevins
On Feb 10, 2011, at 10:40 AM, kenundrumz2100 wrote: > I am a relatively new user of OpenEJB, and first wanna say it seems like a > great start towards being able to finally unit test out session bean's out > of container. Thanks! > I am, however, have a small issue that I am not entirely sure h

Re: Connection pooling

2011-02-10 Thread David Blevins
On Feb 10, 2011, at 12:02 AM, willie wrote: > > The connector gets its DB connections from openejb. The JDBC connections are > defined in openejb.xml. > The connector defination is as follows: > >DataNucleus Connector > >DataNucleus Team >1.0 >JDO Adaptor >1.0 > > >

Re: Connection pooling

2011-02-09 Thread David Blevins
On Feb 9, 2011, at 8:06 AM, willie wrote: > > I created a JCA Connector for Datanucleus. However I noticed the connection > pooling does not return the same connection for a stateful session doing DB > updates, resulting in deadlocks on the databases after a number of calls. > How can one config

Re: OpenEJB 3.1.4 problem

2011-02-07 Thread David Blevins
On Feb 5, 2011, at 11:19 AM, sergey.chernol...@gmail.com wrote: > Hi! > > I try create unit test for my ejb-based web service. > I got next error: > > ERROR - FATAL ERROR: Unknown error in Assembler. Please send the following > stack trace and this message to users@openejb.apache.org : > java.

Re: OpenEJB jars for client application

2011-01-31 Thread David Blevins
On Jan 31, 2011, at 10:16 AM, szikke wrote: > > Hi all, > > After some troubles I implemented server application with OpenEJB embedded. > I created also a small client. The question is which jar files from OpenEJB > project are necessary to run OpenEJB client application and which jar file > ca

<    1   2   3   4   5   6   7   8   9   10   >