Hi,
I haven´t found any clear statements about this topic so maybe someone in here
knows about this.
Should it be possible through EJB3-specification to override
settings/annotations from another jar using the ejb-jar.xml (currently in my
local jar)? Or is configuration/override only specific
Okay.
Here comes more details.
I use the embedded jboss, that is in the jboss maven repository. Here are the
groupId/artifactIds
| org.jboss.embedded:hibernate-all:jar:beta3:test
| org.jboss.embedded:jboss-embedded-all:jar:beta3:test
| org.jboss.embedded:jboss-embedded:jar:beta3:test
|
Hi,
Iôve got a strange behaviour:
If I call entityManager.merge(object) twice I get a OptimisticLockingException
or alternatively an EntityExistsException using the embedded JBoss for test
purposes.
Is this the correct behaviour? As far as I knew, I could call merge() multiple
time and the
Hi,
I would like to access the current principal within a custom written Hibernate
Interceptor - which is by nature no sessionBean.
What would be the best way to access the current principal which called the EJB
within this interceptor?
Any chance to get the SessionContext without dependency i
Hi @all,
does anyone have any information how the JBoss 4.2.2 compares to a single
Tomcat 6.0 concerning resource consumption, such as memory-usage, cpu-usage,
open files etc.
Simply comparing the features and everything else JBoss offers on top of
Tomcat, I get the feeling, that it is really
@jaikiran
Thanks for your answer.
It was a little bit circumstantial, as there are some struggles with the
current maven ear plugin, but that was finally the solution
Now it works!! Thanks!
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203724#42
Thanks for the idea.
I´m currently using the hibernate jars from the /server/default/lib directory
and no further jars are included in my ear.
Unfortunatley the "UseJBossWebLoader" does not have any effect on this.
But maybe this is because it is not an web application, but an ear containing
o
Hi,
I am currently facing the following problem:
I need to configure my ear for multiple environments. Therefor I used the
hibernate.properties in the root folder of the ear to configure my
persistence-layer. This works perfectly so far, because Hibernate finds the
properties through itôs En
Hi,
I just created a timer-bean running a custom job at a defined interval. This
service is annotated with @Service and @Management, so that it is
startable/stoppable via the JMX-Console.
Now I would like to add some properties that can be changed by the user - for
example the interval between
Is there any chance to lookup an implementation of a SessionBean using simply
the interface and not constructing a JNDI-Name where I would have to care about
the prefix wheather it has been deployed in an ear or not?
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=
And in which jar do I find the org.jboss.ejb3.annotation.LocalBinding?
I only found it in the embedded JBoss, but this is definately not what I´d
like to include in my jar-dependencies.
And what is the reason, that there are two annotations LocalBinding? There is
also one in org.jboss.annotatio
Hi,
is there any chance to inject a SessionBean directly into a Thread via an
annotation instead of using a JNDI-Lookup?
Iôve got the case, that I use a TimerBean that starts an own Thread for
every file it finds in a hotfolder. Later on this Thread should access a
SessionBean through itÃÂ
Hi,
I just created a timer-bean running a custom job at a defined interval. This
service is annotated with @Service and @Management, so that it is
startable/stoppable via the JMX-Console.
Now I would like to add some properties that can be changed by the user - for
example the interval between
Appendix to my previous post:
Furthermore I just realized, that the transition to the initially target-node
is still executed and the process goes to its initial target node and not in
the manually rerouted node. So this works also not as expected as the initial
target node should not be reache
Hi @all,
I am calling an Action in a transition as followes
|
|
|
|
|
|
|
|
|
|
|
As there might occur an Exceptions the InvoicingActionHa
maybe this helps:
Throwable throwable = executionContext.getException();
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164405#4164405
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164405
_
Hi,
is there a chance to override the defined generator for the @Id?
For example if IÃÂÃÂÃÂôd like to define the @Id in a superclass and
only change the value of the db-sequence to use?
For example something like this:
| @MappedSuperclass
| public class BaseEntity {
|
|
it only does, if I do not specify 2 conditions. Otherwise it works flawlessly!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156916#4156916
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156916
Unfortunately the same behaviour if I use totally different transition names.
If I do not specify the condition in the second transition, it always uses this
transition, although the first transition has already resulted to true.
Thomas
View the original post :
http://www.jboss.com/index.html?
Hi,
is there any chance to pass parameters within EL as you can for example with
the Seam enhanced EL?
For example I would like to do the following
| {myVar.setFoo('bar')}
|
Further is there any chance to reference an enum-value within an EL?
For example:
| {myVar.foo == MyEnum.BAR}
I will try this and rename my transition and let you know, if that worked.
But I am right, that the correct bahaviour should be, that the first
transition, that results to true, should be taken and - if no condition has
been defined - this should automatically result in a true-result.
Thomas
Vi
okay. But this way it is not the "real" DecisionHandler, which returns the name
of the transition, but I would do the decision programmatically via an
action-handler. Did I get you right?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156612#4156612
Reply to
Hi,
I´ve got a question concerning the DecisionNode. As far as I can read from the
documentation the first transition, that resolves to true within a DecisionNode
will be used.
Unfortunately I experienced a different behaviour for my test-process.
This is part of what I have defined:
|
Hi,
I´m just getting into the whole jbpm-thing, and after reading the
documentation and playing around a bit, I asked myself the following question:
I´m not sure, if this is against the current jbpm or workflow concept, but as
it is possible to define several transition within a state-node wi
Hi,
somehow removing entities does not work using the embedded JBoss for my tests.
If I open my own transaction within my test-class and try to delete an entity,
everyting works fine. If I call my SessionBean, having exactly the same piece
of code, it fails. Even if I try to merge my entity be
Tim,
thanks a lot for your answer!
It seems as if this solution only works in a bi-directional one-to-one
relation? Is that true? In my case, I don´t have the "Parent"-object in my
"Child" as a back-reference. So is it a "must-requirement" to have a
bi-directional relation or is there also a w
Hi,
I have the problem, that when I use an @Embedded object within my
inheritance-strategy,
the entities will not be fetched correctly. When I change the annotation to
@Transient,
all corresponding entities are fetched correctly.
This is an example of my class structure:
| @Entity
| @Tabl
Hi,
is there a chance to let the EntityManager create the ID at creation-time of an
entity?
I´ve got the problem, that I want to share one id between multiple entities
while having a unidirectional one-to-one relation.
This way I only have a generated value at the parent-object and for the
de
This is one solution I though of as well. But maybe there is already an
"integrated" solution as it is in hibernate.
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122552#4122552
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=postin
Hi @all,
does anyone know, if there is a chance to use the joda time library as the
default date-implementation with ejb3?
I´m currently facing the following problem. I would like to use the DateTime
objects of the joda library within my entities instead of using the plain, old
and buggy java
Hi,
is there any chance to let the EntityManager automatically create a schema?
I defined a default schema for my entities through setting the property
'hibernate.default_schema' in the persistence.xml, but unfortunately it is only
possible to deploy these entities, if the schema already exists
okay...
found it myself.
The namespaces for the jpdl-definitions have changed - but in the reference for
2.0.0 there´s still the same syntax.
Thanks to the examples I found that it should be
|
|
| registerUser.jpdl.xml
| createItem.jpdl.xml
Hi,
I´m just migrating my application from Seam 1.2.2 to 2.0.0 together with
Trinidad 1.2.2 and wondering if anything might have changed using JPDL between
these versions. When trying to use the jpdl in Seam 2.0 I get the following
Exception after clicking the link. Any ideas what might have ch
Maybe you have a parent-pom included in your pom, where you have already
declared a version?
Just an idea!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094121#4094121
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=409
Then you should probably do, what you´ve been told by this error-message.
Add a version to your artifact you´d like to use.
For example a full artifact should look like this:
|
| javax.mail
| mail
| 1.4
|
|
By the way: you can also have a look at http://www.mvnreposit
Hi,
is there a good way to clean the whole database through hibernate?
The background is as follows: I want to clean the database every time before
starting a new testcase, to make sure the database is empty and in a defined
state. Currently I´m doing this through dropping the scheme and restar
Hi,
is there a good way to clean the whole database through hibernate?
The background is as follows: I want to clean the database every time before
starting a new testcase, to make sure the database is empty and in a defined
state. Currently I´m doing this through dropping the scheme and restar
Hi,
so what is the current status of this excel-export feature. Is it working
already and included in any Seam-release?
I´m going to propose Seam for a new project now and I know that it´ll be of
great benefit if I can tell them, that excel-export is no problem with Seam
(would I would like to
Don´t define any view-handler in the faces-config.xml. That won´t work. You can
try to replace the sun-facelet view handler with the SeamFaceletViewHandler.
Only replace the corresponding entry in the web.xml from the sun
FaceletViewHandler to the SeamFaceletViewHandler. Maybe that might work
T
sorry - not yet!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029029#4029029
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029029
___
jboss-user mailing list
jboss-user@lis
As a lot of people still have the same problems, would this be something to
file in JIRA?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029028#4029028
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029028
Hi,
is it possible to restrict related entities while fetching the data? For
example, if I have a one-to-many relationsship and I want to fetch all entries
from my "many-relation", that are flagged as active through the annotation in
the entity-class.
Or if beeing a little bit more complex, add
I´d also prefer not to log the whole exception as this is more like a
standard-issue and logging the whole stack-trace always looks like having a
problem or a bug in the application, which is not really the case if the user
is not logged in.
Thomas
View the original post :
http://www.jboss.co
Great to hear that. Thank you!
Then the work was worth it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024713#4024713
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024713
But if you tell the browser not to cache anything, this works.
I used this together with Struts, where I had to change the RequestProcessor.
There are some examples on how to solve this out in the net. But I don´t really
like them, as you have to use jsp:scriptlet for that.
But I see, that it´s
Hi @all,
After I spent a lot of time in setting up Seam, Trinidad, Facelets and ajax4jsf
together and want to share my experiences with others I set up a small
wiki-page at the apache-wiki yesterday, in which I wrote a short description
about what I did to make Seam, Trinidad, Facelets and ajax
Be careful, which version of Seam you are using: The one atao is using is for
Seam 1.1.6 whereas dustismo´s is for 1.2.0.
But as far as I can see from the exception you simply did not include the
trinidad-jars properly. Check if you´ve got both jars, the "impl" and the "api"
and also include th
Hi,
I just included the Seam Security into my application and I´m really thrilled
about the very easy and effective solution to all the security issues. I like
the "redirect-to-protected-pages-through-login-page"-feature especially. It´s
always a common problem and it´s so easy this way.
This
Hi,
how do I instantiate a stateless Seam Bean out of another Seam backing bean, so
that all Seam-annotation are still included?
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024638#4024638
Reply to the post :
http://www.jboss.com/index.html?module
Joseph,
I wrote a little wiki page about that. Have a look at
http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail
I also attached a sample web.xml there.
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024580#4024580
Reply to the post :
If it´s of any importance: I´m using trinidad as well, but this shouldn´t be a
problem, should it?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024379#4024379
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024379
__
I did it this way:
|
| Seam Filter
| org.jboss.seam.web.SeamFilter
|
|
|
| Seam Filter
| /*
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024378#4024378
Reply to the post :
http://ww
sorry, but I did it the same way like in the examples. But it´s still the same.
It works if the restriction comes through the pages.xml but not if it comes
through the backing-bean.
Any further suggestions?
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic
well - I also used ajax4jsf together with 1.1.6 without any problems.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024360#4024360
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024360
_
okay - I will have a look.
BTW: Is there any way to include the role through a static variable from an
interface, so that you can replace
@Restrict("#{s:hasRole(''admin)}")
with anything like this
@Restrict("#{s:hasRole(SecurityRoles.ADMIN)}") ?
View the original post :
http://www.jboss.co
Hi @all,
when I define a restriction like #{s:hasRole('admin')} in my pages.xml and the
authorization failes with an AuthorizationException I get the error-page
defined in the pages.xml. But if it fails because of a
@Restrict("#{s:hasRole('admin')}")-annotation in the backing-bean I get the
us
You were right, that´s it!
Thanks a lot. These forums are just great. I would have never come to this idea!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024258#4024258
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40
Hi @all,
I greately appriciate all the work you did for the release of 1.2.0 and I
really understand, that it is necessary to break with the old architecture at a
special point. But unfortunately I have the problem now, that I can´t upgrade
from 1.1.6 to 1.2.0 due to an incompability between Se
okay.
After doing some more research on that topic, I solved this problem myself.
All you have to do is to include the aj4-trinidad.jar, provided at the ajax4jsf
website and everything works smoothly.
Although I used the 1.0.6 you still need the 1.0.5-a4j-trinidad. This was a bit
confusing as I
Is this only necessary when using the PPR of Trinidad and if using ajax4jsf
there is no need or is this a general "must-do" if using trinidad together with
seam correctly.
Could you give some more detail on the PhaseListener. Is it necessary to write
an own PhaseListener that overrides the meth
BTW: this error only occures if using an ajax-rerender. Otherwise it works
quite fine:
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
Is the a4j-trinidad.jar still necessary for ajax4jsf 1.0.6 or is it integrated
into that package now?
I´m facing a similar issue but already use 1.0.6.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021987#4021987
Reply to the post :
http://www.jboss.com/in
Hi,
is there a possibility to use the @DataModelSelection over two different beans
without using the session-scope for injection?
Right now it works if I use the bean with the @DataModel and the
@DataModelSelection with session-scope and use this value through an @In
annotation in my other bean
Yes - it seems, that it works that way. If a null value is returned, I will be
redirected to the page I came from if I include the -Tag
Thanks for that
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017714#4017714
Reply to the post :
http://www.jboss.com/in
sorry - I didn´t refresh the thread before posting. I guess you already told
the solution through your explanation. I´ll try this first.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017684#4017684
Reply to the post :
http://www.jboss.com/index.html?module=
Mike,
your idea came pretty close to how it works. Thanks for your help.
This is it worked for me now:
|
|
|
|
|
|
But do you know if it is possible to redirect to the page, where I came from as
well? If I call an action-method and
sorry - I really did not explain it really clearly.
The idea is the following:
I have two different xhtml-pages with an command button on each page
referencing to the same ActionBean and calling the same methods, but the result
of that action always points to the same result-page. So is it possi
Thank you very much for that. I totally overlooked that part. But it´s still
neccessary to have a view-id that is a real xhtml-page. There´s no way to use
the outcome of a bean-action for multiple pages, is there? So that I could use
the outcome of an action for multiple pages?
Thomas
View the
Hi @all,
when I browsed through the forum I stumbled about a thread, telling how to user
navigation outcomes out of a bean and not a view. Unfortunately I cannot find
this thread anymore. Can someone give me a hint or a code-example for this?
Thanks for your help and sorry for the inconvenience
I did a little further debugging and found out, that it has to do with the
optional=false
If I remove that attribute, it works without any problems. Anyways: is this the
way it should work? I think this behaviour is still a little bit strange and
I´m still not satisfied with this non-handled ex
Hi,
I experienced a strange behaviour while persisting entities into my database.
Event though the entity-Manager did not throw an exception while calling
persist, I get an org.hibernate.exception.ConstraintViolationException
afterwards. This leads to two problems:
1. How is it possible, that
noone knows about a solution to this?
is this so unusual? or is it too obvious?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008774#4008774
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008774
___
Mmh.. the longer I go into details between icefaces and trinidad I get more and
more confused. What would you say is the better choice if you start from
scratch? It looks like Seam has a very high integration for ice-faces, plus it
looks really sexy, but trinidad seems to be longer on the market
Do you have a good source where to ask those questions?
Do they have a forum as well? Or is this only this mailing list?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008347#4008347
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mod
Hi @all,
thanks to the various post I got myfaces running together with trinidad and I
also got JSF RI running together with trinidad. But the strange thing is, that
with the JSF RI Version I receive double-page-headers, but only if I refer to
the same page with returning null from an actionBea
Okay. thanks anyways. Currently I´m quite happy because with your help it works
for me after all. It´s always a big benefit to have this forum. This way it´s
possible to have a nice weekend without frustrations from the week, but instead
a good feeling ;-) Thanks again!
But I still have a ques
Perfectly - exactly as I wanted. Thanks a lot petemuir.
Just a short question: I´m running a h:form together with the tr:inputText.
This way I can work with my jpdl. Is that how you did it as well - or do you
have a complete trinidad-form?
Thomas
View the original post :
http://www.jboss.com/
Thanks for that - I guess that wasn´t too clear for me.
So a component-library like Trinidad also uses a standard-jsf component like
inputText, but extends them without keeping the jsf-specifications? So I´m kind
of stucked to one component-library if I choose to use one?
View the original post
Petemuir,
how did you disable the JS validation-popup?
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006795#4006795
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006795
___
Hi,
I just tried to get Trinidad to work with Seam and did quite well so far.
But I have to questions:
1. It seems as if a trinidad-form doesn´t work with my jpdl-pageflows. If I use
the together with the the submit doesn´t work. If
I change it to together with it works, but I only
get t
So what would you guys say: which jsf-implementation works better for seam?
Right now we have the Sun JSF RI, Trinidad and myFaces (which I´m currently
working with). In the seam documentation it is said, that trinidad is the
better choice. Are there any major differences or any deviation from t
Norman,
can you please give a little bit more detail about using your code. Simply
creating the class and using the s:input-tag leads to an exception. Sorry - but
I haven´t done anything in the tag-libraries yet, so I´m not so familiar how to
add a new Tag.
I get the following exception:
com.
Hi,
I´ve got two objects, that are extended from each other. For example they look
like this:
| @Entity
| @Table(name = "users")
| @Name("user")
| @Scope(ScopeType.SESSION)
| public class User implements Serializable {
|
| @Column(name = "create_date", nullable = false)
So what would be the way to go then? Is there a best-practice or any
recommendation what to prefer and what better not to do?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005208#4005208
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posti
Hi,
I want to split up my seam application into 2 different application, so that I
can use one JBoss as a webserver and another one as the application-server with
the underlyng database. Therefor I use the EntityManager only on the
application-server, so that all the updates etc. on the databas
Hi,
I´ve got some basic JPDL-questions while trying to create a wizard for
registering new user.
I had a jpdl-flow, which started with the following JSF-Tag:
| #{messages.userCreateUser}
Now I changed this call to the following code-snippet, because I have to call a
method to do something
Hi @all,
I have the following scenario: I´ve got a user-object that gets it´s ID through
a @SequenceGenerator. Inside this user-object I´ve got an object
VerificationCode. The ID of the VerificatinCode should be the same as the ID of
the user, but the problem is, that I receive the id only whil
Gavin,
thanks for your answer. Do you know of any work-around that would do in this
case? Or is this simply not doable?
Thomas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002394#4002394
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=po
Hi,
I have a problem accessing the properties of my seam application during
startup.
I´ve got the following Bean, that is started through the @Startup annotation.
| @Name("commonDataHelper")
| @Scope(ScopeType.APPLICATION)
| @Startup
| public class CommonDataHelper {
|
|
Thank you very much for this hint.
But as far as I can see, I would have to define a DiscriminatorColumn in my
superclass (AbstractBalance) from which I can decide between one of my
inheritances, for every id in this table
But in my case both tables (BalanceA and BalanceB) are referencing to the
Hi,
I have a problem with an inheritance-model and I´m not sure, if I´m trying to
do something, that´s not possible this way. From the object-oriented point of
view and the database-oriented point of view this should be possible, but it
seems, as if ejb3 needs some more information.
The object
Thanks for your help! Norman, your solution worked perfectly as I wanted it to
be, besides the fact that you have to use a slightly different annotation if
you want to use messages fro the seam resourceBundle which caused me some
confusions until I realized that fact. So if anyone else has the s
Hi,
I´m currently doing my first steps with Seam and JSF and, as a long-time
Struts-developer, I already see so many improvements in the Seam/EJB3/JSF
integration. Thank you for the great work!
But now I´m starting at a very basic problem: validation!
The struts way of life was that you have a
93 matches
Mail list logo