Hi Mohammad,
>
> Can you provide the OpenEJB version please?
> There was a bug in transaction management for stateful beans.
>
> It was fixed in 3.1.2. Can you give it a try?
>
> Jean-Louis
>
>
> is_maximum wrote:
>>
>> Thanks John, You said if this
an. Since you can call it fine
> without the @Remove, the only likely scenario is that you're doing
> something
> that's not allowed in the @Remove method, but I honestly can't think of
> anything that falls into that scenario.
>
> -Original Message-
> F
With help of friends I was able to resolve this.
For those who may have this problem here is the link of the answer
http://n2.nabble.com/EntityManager-dosn-t-release-connection-in-XA-transactions-tp4205041p4205041.html
is_maximum wrote:
>
> Hello
> We have configured a di
Hello
We have configured a distributed transaction in our application server in
order to support transaction between Java and .NET running in a service
call. The .NET clients are served by webservices and we are using OpenJPA.
The problem is that after a bunch of service calls the app. server cann
<http://java.sun.com/javaee/5/docs/tutorial/doc/bnbmt.html#bnbmu>I'm
> curious
> to know what it is you're doing in postProcess, I'm still inclined to say
> that it's behaving correctly but it depends on what you're doing in there.
>
> On Mo
meetoblivion wrote:
>
> What you're describing is exactly what's supposed to be happening. You're
> not supposed to invoke the @Remove method from your own code. When the
> bean
> container passivates the instance, it calls @Remove for you.
>
>
Thanks.
As far as I know, it is the client t
Hello
I have a Stateful session bean with three method preProcess, process and
postProcess. the postProcess method marked with @Remove
these three methods are called in one method of a stateless session bean.
After calling the postProcess the transaction will mark to rollback. I put a
bunch of Sy
ience with this, hopefully we'll get to the bottom of
> it.
>
> Jon
>
> On Mon, Nov 16, 2009 at 6:00 AM, is_maximum wrote:
>
>>
>> Hi Jonathan
>> I can start it up from command line and I was able to deploy my
>> application
>> externally as we
looks like something is trying to be deployed -
> possibly something built in if you have nothing deployed. I'll have a dig
> around the stack trace you supplied. Do you have an openejb.log file in
> the
> $OPENEJB_HOME/logs folder you can post?
>
> Jon
>
> On Sun, Nov 15,
rop it in the apps folder of your OpenEJB standalone
> server does it start ok?
>
> Are you able to setup a basic project that reproduces the problem that I
> might be able to have a look at?
>
> Jon
>
> On Sat, Nov 14, 2009 at 6:08 AM, is_maximum wrote:
>
>>
&g
ct that reproduces the problem that I
> might be able to have a look at?
>
> Jon
>
> On Sat, Nov 14, 2009 at 6:08 AM, is_maximum wrote:
>
>>
>> Hi David,
>> I still get this error! I set the JDK in eclipse.ini but it didn't work.
>> the
>>
David can give us some hints?
>>
>> There's not too much overhead with the stateful bean itself, but there
>> can
>> be an unlimited amount of overhead in the data held by the stateful
>> bean's
>> fields. So how many you can have at one time is limi
Hi David,
I still get this error! I set the JDK in eclipse.ini but it didn't work. the
class javax.ejb.EJBHome is in a jar file named javaee5 or something like
that in "lib" directory of OpenEJB but it seems this plugin can't load it!
is_maximum wrote:
>
> Yes it&
Yes it's Sun's JDK version 1.5.09
David Blevins wrote:
>
> Do you know if that is the Sun or IBM (or some other) JDK?
>
> -David
>
> On Nov 12, 2009, at 10:54 AM, is_maximum wrote:
>
>>
>> Well it's JDK 1.5.09
>>
>> I'm
>
> -David
>
> On Nov 12, 2009, at 4:40 AM, is_maximum wrote:
>
>>
>> Hi
>> I get following error when starting the server :
>>
>> Apache OpenEJB 3.1.1build: 20090530-06:18
>> http://openejb.apache.org/
>> org.apache.openejb.OpenEJBExc
Hi there
As I understand we need to set our project as an EJB3.0 faceted project to
be recognized by OpenEJB plugin. We have a project with 4 modules (dao,
service, api and web) and a module named "product" to create an EAR file
(final product to be deployed) how we can tell the server that only l
get the same instance of a stateless
> session bean between invocation (a stateful is better for that).
> In OpenEJB the bean instance is retrieved from the pool at the beginning
> of the invocation and returned to the pool at the end of the invocation.
>
> Jean-Louis
>
>
Hi
I get following error when starting the server :
Apache OpenEJB 3.1.1build: 20090530-06:18
http://openejb.apache.org/
org.apache.openejb.OpenEJBException: java.lang.TypeNotPresentException: Type
[unknown] not present: Type [unknown] not present
at
org.apache.openejb.assembler.clas
Hello
We have a stateless SB with three method: preProcess, process and
postProcess
Normally when I use this EJB in another SB I call these methods as follows:
public class AnotherEJB {
@EJB
private SessionBean sessionBean;
public void someMethod() {
sessionBean.preProcess();
sessio
David Blevins wrote:
>
>
> Grab the EJB 3.1 PDF2 (the most recent one from march) and check out
> section "4.4 Global JNDI Access" It basically describes the standard
> naming format that is being added for each bean. It's a little
> verbose for most cases, but it will at least be a st
in other places, but you're guaranteed to get it mapped there.
>
> - John
>
> -Original Message-
> From: is_maximum [mailto:mnr...@gmail.com]
> Sent: Sunday, September 13, 2009 3:25 PM
> To: users@openejb.apache.org
> Subject: Re: suggestion for defining loca
Well thanks meetoblivion, I will try it and inform you the result
meetoblivion wrote:
>
> Mohammad,
>
> What I believe we were both referring to is the case of:
>
> @Stateless(mappedName="ejb/somePath")
> public class MyEJB implements MyEJBService {
> // methods...
> }
>
> And then from you
Quintin Beukes-2 wrote:
>
> Yes, you can create a mapped name when defining each EJB (part of the
> @Stateless annotation), and then inside the facade session bean you
> can lookup the others doing something like this:
>
> InitialContext ctx = new InitialContext();
> Object lookedUpEJB = ctx.l
mnour wrote:
>
> Hi Mohammad Nourouzi...
>
> Seems that we almost have the same name ;). Well I think you are
> missing things up here. The @EJB you are defining here are for
> dependency injection (DI) so the container knows that you are
> requiring this EJB to be injected into your class w
Hello
I have a session bean which is an entry point for calling a number of other
session beans.
Because this entry bean doesn't know which stateless should be called at
runtime we need to lookup them. in order to lookup EJBs we must declare @EJB
on this entry session bean. that is, more than 20 @
David Blevins wrote:
>
>
> I'm not sure I understand the limitation you mention with the
> example. The example shows two modules but of course more modules
> will work.
>
> What issue did you encounter when you added the other two modules and
> persistence unit jar to your test classp
As I see we can introduce the directory in which the EAR file is located, in
this case, we encounter following error message:
org.apache.openejb.OpenEJBException: Invalid path to module Could not find
resource 'classes': Could not find resource 'classes'
at
org.apache.openejb.config.Deplo
David Blevins wrote:
>
>
> This is one of the features added in 3.1. Check out the "ear-testing"
> example from the 3.1 or 3.1.1 examples zip. That example sounds
> exactly like what you want to do:
>
>
> http://svn.apache.org/repos/asf/openejb/tags/openejb-3.1.1/examples/ear-testing
Hello
We have a multi-module project configured with maven 2. One of these modules
is data-access layer and contains a persistence.xml. So far so good and we
had no problem running our JUnit test cases but we decided to remove that
persistence.xml from that module and add it as an library in our E
David Blevins wrote:
>
>
>
> Thanks again for bringing this up, you've had a direct impact on the
> EJB 3.1 spec!
>
>
> -David
>
>
>
Thanks David
Recently we encountered another issue regarding interceptors. Before I get
into it let me explain the situation. We are developing banking
eue the MDB is listening to.
>
> Can do some amazingly scalable things with that.
>
> -David
>
> On Mar 17, 2009, at 2:45 AM, is_maximum wrote:
>
>>
>> Hi Jean
>> Yes I know the restriction but we have to.
>>
>> Consider millions of records should b
Hi
before I start let me tell you that our problem is the interceptors
Think of a bunch of business interfaces and lots of business methods. Each
method may call a dozen methods from other services.
In the other hand because of some policy we have to put some interceptors on
our methods, one examp
ooling, and so on.
>
> http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html#threads
>
> So, seems to be dangerous to do that !
>
> Regards,
> Jean-Louis
>
>
>
> is_maximum wrote:
>>
>> I have a problem when I want to lookup my session beans
Just one more question.
Does this InheritableThreadLocal work well in clustered platform?
-
--
Regards
Mohammad Norouzi
Help each other to reach the future faster
http://pixelshot.wordpress.com Pixelshot Photoblog
http://brainable.blogspot.com Brainable Blog
--
View this message
can't use that and I think
that's true because in action, we get NPE every often which is not clear at
what condition it happens
David Blevins wrote:
>
>
> On Mar 10, 2009, at 6:10 AM, is_maximum wrote:
>
>>
>> Hello
>>
>> In our application
Hello
In our application we contract to have request informations in all the DTOs
coming from the clients. So in order to make these information accessible
across the application in request scope I have defined a class in which a
ThreadLocal is defined as final static and also a default intercept
Thanks Michael
This is the reply in another thread
http://www.nabble.com/default-interceptor-tt22408000.html
Michael Dick wrote:
>
> Forwarding to the openejb users list, hopefully they'll be able to help.
>
> -mike
>
> -- Forwarded message --
>
ys in need
is ability to passing parameter from a business method to its declared
interceptors. However this might seem a little weird or wrong in terms of
software design, in that case it is reasonable not to do that.
David Blevins wrote:
>
>
> On Mar 9, 2009, at 6:19 AM, is
hod before launching the new thread.
>
> -David
>
> On Mar 9, 2009, at 6:34 AM, is_maximum wrote:
>
>>
>> Hello
>>
>> I have a problem when I want to lookup my session beans.
>> I have declared @EJB on the session bean in which a POJO class will be
>
Hello
I have a problem when I want to lookup my session beans.
I have declared @EJB on the session bean in which a POJO class will be
created using reflection and will be executed in a separate thread. I did
this before without reflection and it works fine but if my class is
instantiated at run
Thanks David for your complete reply.
Yes it was helpful and it works fine. I thought that by declaring class
interceptor the container would understand it but he is really dummy ;)
thanks again
David Blevins wrote:
>
>
> On Mar 9, 2009, at 12:20 AM, is_maximum wrote:
>
Hello
I have defined a default interceptor as follows but there is a warning that
says :
WARN - InterceptorBinding references non-existent (undeclared) interceptor:
com.foo.interceptor.RequestDataInterceptor
and this interceptor never being executed.
*
42 matches
Mail list logo