Hi,
because EJB is implemented via Hibernate in the Background you can try this:
| public abstract class GenericDAOImpl implements
| GenericDAO {
|
| private static final Log _log = LogFactory.getLog(GenericDAOImpl.class);
|
| @PersistenceContext(type = Persiste
this is definitly NO bug.
Because Stateless SB have no "State" JBoss can recycle them after each call.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950916#3950916
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=
MySQL doesn't support Sequences. It looks like you use for your @Id generation
Sequences, which are not supported by your db. Change the
@GeneratedValue strategy to AUTO.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950401#3950401
Reply to
the id generation annotations changed in some ejb rc.
Try to test with JBoss 4.0.4 or the current EJB RC7.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948758#3948758
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&
if you know your use-cases lazy-loading is not a big problem.
If you know exactly what to load use a facade with where the business methods
load what you want. Inside the BM use the EJB QueryLanguage like
from User u left join fetch u.companys as c left join fetch c.country where
u.login=:login
Look at the JBoss Trailblazer. I think it's the best tutorial i found yet about
EJB 3.
http://trailblazer.demo.jboss.com/EJB3Trail/
Also the sun tutorial is a good place to start
http://java.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorialPartFour.html#wp996871
Regards
Peter
View the origina
all relations are Lazy. For fetching via joines i have additional
finder-methods in my DAOs.
All i want is a facade where i can get persistent (undetached) entities which
are associated with one persistence-context.
If someone knows Liferay-Portal similar to their facade, but not with
the restr
any hints or solutions?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948051#3948051
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948051
---
All the advantages of
sorry.. i was wrong.. you get a RemoteProxy to the SB.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948005#3948005
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948005
--
i think it is in my case.
SFSB X is something like a Context (Application, Session, Request, Event) in
Seam, so there will be a lot of them.
Y is a single DAO (per Entity one DAO) and i would have to include all of them.
Why i need this:
I cannot work with my DAOs, because each DAO has it's o
if you select "ejb3" from installer the web-console is not installed.
If you select all (this is unfortunatelly without ejb3) the web-console is
available.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947588#3947588
Reply to the post :
http
not possible? The solution not have to be pretty, because it's only one SFSB
which is buried under other abstract layers. So it only has to work.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947547#3947547
Reply to the post :
http://www.jbos
it works fine for me in 4.0.4GA.
What exactly do you think is not true?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947545#3947545
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947545
the only thing i found in Spec. to this is that lookups are performed in the
referencing bean's java:comp/env namespace.
When local and remote interface is identical and the local interface is
"registered" with a SB in the current application server i think it make no
sense to inject the remo
i think it's correct.
For example MySQL:
(http://dev.mysql.com/doc/refman/5.0/en/operator-precedence.html)
Operator precedences are shown in the following list, from lowest precedence to
the highest. Operators that are shown together on a line have the same
precedence.
| :=
| ||, OR, XOR
Hi,
is there alternative dynamic way to inject an EJB into another EJB?
In my SFSB X i have an injected SFSB Y, so lifecycle and
ExendedPersistenceContext are bound together like
| @EJB
| Y y;
|
Problem is i have about 30 injected EJBs. It is very inefficient when X is
created and all
Hi,
is there a way, to share an Extended EntityManager between Stateful
SessionBeans (SFSBs)?
If i inject an SFSB B in another A with an injected EM in both the lifecycle of
A and B are bind together, but not the transaction. So if A is removed B is
also removed but both synchronizations toget
any comments?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946979#3946979
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946979
---
All the advantages of Linux Man
ok.. i've tested a lot yesterday and found out, that injected EJBs only share
Lifecycle, but not the Transaction.
If i have 3 SFSB where the first inject the 2 other and make changes to DB via
these 2 injected the db transaction is not used for both injected.
If the first injected Bean synchroni
any further hints?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946189#3946189
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946189
---
All the advantages of Linu
i anotate the childs with @Stateless, the @PersistenceContext is in my
GeneralyEntity.
Have a look at the DAO-Pattern of caveatemptor
http://caveatemptor.hibernate.org/2.html.
The have a very nice implementation of a GeneralDAO (GenericDAO)
Regards
Peter
View the original post :
http://www.jb
from A a left join fetch a.bs as b left join fetch b.cs as c where a.id=1
why do you use a normal join and no left join? In your case only results As in
the scalar where A has some Bs.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946181#3946181
Reply to t
ok.. silly question.. they are not married to eachother if get by JNDI
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946145#3946145
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946145
--
Something additional to
anonymous wrote :
| Since MyBean.nested is injected into MyBean these two stateful beans are
married to eachother and share the same lifecycle and same persistence
contexts!"
|
If they were injected or also if i get them from JNDI in my Context SFSB?
Regards
Pet
to continue this example..
With this idea i would have a Contexts-Object with LocalThread attributes
(Context is a SFSB) which are initialized via a ServletFilter who
gets the Context from ServletContext, ServletSession and creates a new for the
Request Context. Furthermore i have a SessionListe
It is really not possible to share an EntityManager between SFSB, or would this
be only a problem if clustering?
So the conclusion would be something like a Command-Pattern, where
the Context SFSB is the Command "Executor" who has an EntityManager and my DAOs
only create Command Implementations
Is it possible to giveout the EntityManager of a STSB, if i have removed
Container-Isolation or would this end in a HorribleException?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945731#3945731
Reply to the post :
http://www.jboss.com/index.html?module=bb
thx. for the realy quick answer.
So if i inject a EJB they share the same lifecycle and persistence context.
Matching this with the Context-Idea your MyBean represents a Context who knows
about all other DAO StatefullBeans (your AnotherStatefulBean) like (UserDAO,
GroupDAO, ... a lot more) whic
Hi,
i am currently working on something like a portal-system. One of the
demands is a facade to the persistence layer, because the use cases of
the modules (portlets) can not be foreknown. I also want to give out peristent
(NOT detached) EntityBean (POJOs) i could work
without LazyExceptions. Bec
dependency injections don't work for servlets. This bug only affects jmx
service objects whith lifecycle methods.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942446#3942446
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=p
no statement? I only want to know, if this is a bug or if this behaviour will
also exist in the final version of 4.0.4.
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937709#3937709
Reply to the post :
http://www.jboss.com/index.html?module
the JMX Component has the standard lifecycle methods:
create(), start(),stop(), destroy()
My code looks like this:
| @Service(objectName = "portal:service=SystemPropertyService")
| @Management(SystemPropertyManagement.class)
| @Local(SystemPropertyLocal.class)
| @LocalBinding(jndiBindin
is it a bug or not?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937185#3937185
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937185
---
This SF.Net email is spon
no statement to this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936981#3936981
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936981
---
This SF.Net email is sp
with 4.0.3SP1 use (EmployeeSessionLocal)
context.lookup(EmployeeSessionLocal.class.getName());
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936848#3936848
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936848
if you do not want that JBoss create and drop tables every time your par is
deployed/undeployed you have to change the property "hibernate.hbm2ddl.auto" in
your persistence.xml.
Possible values are: validate | update | create | create-drop
The remcommended value is "update", which has the same
I would say one problem is the JNDI-Binding you do not specify.
By standard the JNDI-Binding names are
EAR-FILE-BASE-NAME/EJB-CLASS-NAME/local,
EAR-FILE-BASE-NAME/EJB-CLASS-NAME/remote,
EJB-CLASS-NAME/local, EJB-CLASS-NAME/remote
or you specify them
| @Remote( { HelloWorldServiceRemote.class
if a datasource is not injected it's not a problem, because i can get it from
JNDI, but how can i get the EntityManager (peristence unit already created)?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936844#3936844
Reply to the post :
http://www.jboss.com/
Hi,
is it a bug that Injections in JMX Service Objects are bound not until the
LifeCycle method start() is executed? This behaviour is new since CR2.
While proceeding the create() and start() method the EntityManager injected by
| @PersistenceContext(unitName = "myEM") protected EntityManager e
OK! THIS IS A BUG!
Problem is that the EntityManager is injected AFTER the start() method of the
JMX Service Object is executed! Because of this [EMAIL PROTECTED]'s code works,
mine not :'(
Is this realy how it should work? I want my Objects injected before I start my
service, especially if t
What i find very interesting is this:
2006-04-11 18:27:00,703 DEBUG [org.jboss.system.ServiceController] recording
that portal:service=SystemPropertyService depends on
persistence.units:unitName=portalEM
...
2006-04-11 18:27:00,781 DEBUG [org.jboss.system.ServiceController] Creating
dependent
ok.. i tried again ;)
Unfortunatelly same result.
I thought it would be perhaps a bad configuration, so
I install RC1 => it works, i install CR2 => null :'(
My Service looks like this:
| @Service(objectName = "portal:service=SystemPropertyService")
| @Management(SystemPropertyManagement.cl
ok.. it's really strange.
Nothing is injected in my JMX Service Objects.
even
| @Resource(mappedName = "java:/portalDS")
| private DataSource _dataSource;
|
does not work. But if I try to get it from JNDI
| Context ctx = new InitialContext();
| _dataSource = (DataSource) ctx.looku
ok, what i read is really nice. They throw the complete logic in sessionbeans
and let act them as componets for jsf (like actions is struts) and solve the
transation/lazy-fetching with different contexts and with something like an
action phase and render phase (like portlets with processAction a
Hi,
i am currently designing somethink like a portal system (not implicitly JSR168
- it's not a must). After creating some prototypes with different technologies
i now finally found seam (long long way ... ).
I like the way seam handles the lazy loading problem and do without the facade
pattern
or can perhaps someone explain in a few sentences how the handels it?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922896#3922896
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922896
---
thx for this hint.. is there any doucmentation about how seam handles
EntityManager lifecycle or "use the force use the source"?
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922873#3922873
Reply to the post :
http://www.jboss.com/index.htm
ok... that´s a option for a single application. But if you think
in context of portals where you want to make interfaces accessable to
portlets or modules where don´t even know the requirements
this is not flexibe enough.
One opinion would be to do without relations and only work with the
relation
Hi out there,
i´m currently working on a new portal system with ejb3.0 for persistence and
logic implementation.
Writing and designing some "prototypes" i may realised some structural weakness
of the EJB3.0 Spec, partly discussed (also in this forum):
The "lazy loading".
The problems:
Defin
unfortunatelly sessionlistener is called before user become authenticated..
but thx for the answer
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913968#3913968
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913968
-
one the one hand you need to catch a HibernateException, on the other you will
not get an Exception until the transaction was commited. So you perhaps have to
call em.flush() to synchronize HibernateSession-state with your database. This
is how i understood working with EntityManager.
View the
Hi,
I want to initialize the HttpSession (fill with some key/value pairs from
database) of the user when he's authenticated. Is there any event/listener
for this available or do i have to check at my servlet "startpoint" with some
flag if his session is initialized and if needed load then the da
thx
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913539#3913539
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913539
---
This SF.net email is sponsored by: Splunk
is it possible to only mark the interface with @Management and implement it in
the MBean?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913370#3913370
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913370
--
no idea?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913089#3913089
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913089
---
This SF.net email is sponsored by: S
well.. i think a lot of people would have tested this eample..
Nobody has a solution??
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912975#3912975
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912975
-
Hi,
i've got a (hope) small problem. I created a eclipse project and included
all jars from /default/lib/ and from /default/deploy/ejb3.deployer.
Like in the tutorial i added the annotations
| import org.jboss.annotation.ejb.Service;
| import org.jboss.annotation.ejb.Management;
|
| @Ser
thx
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908547#3908547
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908547
---
This SF.Net email is sponsored by the JBo
Hi,
is it possible to hotdeploy parts of a ear for example one or more war-modules
and is it possible to add modules to an ear at runtime (both with no redeploy
of the whole ear)?
Regards
Peter
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908513#3908513
Hi,
i want to have a ear as a "main" module and wars outside of this ear.
Classes of these wars have to call methods of classes in the ear.
If i try this i get a classnotfoundexception.
Is there a chance to do this and if so how?
I hope someone can help me or give me a hint.
Regards
Peter
V
Hi,
i want to have a ear as a "main" module and wars outside of this ear.
Classes of these wars have to call methods of classes in the ear.
If i try this i get a classnotfoundexception.
Is there a chance to do this and if so how?
I hope someone can help me or give me a hint.
Regards
Peter
V
Hi,
i want to have a ear as a "main" module and wars outside of this ear.
Classes of these wars have to call methods of classes in the ear.
If i try this i get a classnotfoundexception.
Is there a chance to do this and if so how?
I hope someone can help me or give me a hint.
Regards
Peter
V
Hi,
i want to have a behaviour similar to portlets but with standard web apps.
I have some basic elements like ejbs, pojos for hibernate and some mbeans
deployed inside of an ear. Now i want to hotdeploy wars (for example with a
StrutsServlet inside) which have to access the classes inside of t
Hi,
i want to have a behaviour similar to portlets but with standard web apps.
I have some basic elements like ejbs, pojos for hibernate and some mbeans
deployed inside of an ear. Now i want to hotdeploy wars (for example with a
StrutsServlet inside) which have to access the classes inside of t
Hi,
i want to have a behaviour similar to portlets but with standard web apps.
I have some basic elements like ejbs, pojos for hibernate and some mbeans
deployed inside of an ear. Now i want to hotdeploy wars (for example with a
StrutsServlet inside) which have to access the classes inside of t
Hi,
i want to have a behaviour similar to portlets but with standard web apps.
I have some basic elements like ejbs, pojos for hibernate and some mbeans
deployed inside of an ear. Now i want to hotdeploy wars (for example with a
StrutsServlet inside) which have to access the classes inside of t
Hi,
i developed with 4.0.3RC1+RC2 and all works fine. Today i tried to deploy my
application to 4.0.3 release and i get an exception.
In some way Hibernate TransactionFactory cannot create a Transaction because
the Factory doesn´t find something via JNDI...
My service.xml looks like this:
well, i have also the same problem.. :´(
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890930#3890930
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890930
---
SF.N
68 matches
Mail list logo