I am having this same problem. Did you get teh @Filter to work?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4195948#4195948
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4195948
Is there a way to establish a OnetoMany relationship with only the subclass of
TablePerHierarchy mapped entity?
I have an entity class A mapped as a table per hierarchy strategy. There is a
class B that is assiciated with only one of the subclasses of class A. When I
establish the OnetoMany
I am not sure if this is the sort of file it is expecting. When I look at
another example which uses some other jms provider the file looks something
like a jndi tree:
#This file is used by the JNDI FSContext.
#Mon Aug 18 16:43:05 CDT 2008
brokerQCF/RefAddr/1/Encoding=String
I have a general question about JNDI. I have read some documentation and plan
to read more, but I thought I should post my question to make sure I am heading
down the right path.
I have a java object that makes telnet connections and enables you to
programatically screen scrape telnet 3270
I am trying to integrate a tool call Websphere message broker to drop a message
into a JBoss JMS queue. In the configuration I need to supply Location JNDI
bindings.
Enter a value for the Location JNDI bindings. This value specifies either the
file system path or the LDAP location for the
I am trying to deploy a project that includes a WS client that uses JBoss WS. I
used wsconsume command to generate the client code. I can get the web service
to run properly from a unit test, but when I deploy it on JBoss I get the
following error:
anonymous wrote :
|
Thanks for the tip. Your suggestion solved my problem. I also found that I had
to change the jboss config to use callbyvalue per this article:
http://wiki.jboss.org/wiki/ClassLoadingConfiguration
Now I am almost there. I can inject the session bean and call a method, but now
the object
Have you configured your applications for classloader scoping (using
jboss-app.xml)?
According to the wiki I thought all I had to do was to turn on the callByValue
setting in the jboss-service.xml. Do I also need to make the suggested changes
to the jboss-app.xml?
Can you provide more
Yes, the NexusEventDefinition class exists in both Jars.
I did try to use the jmx console, but when I invoked the listClasses method I
got an error saying:
Information
Not loaded in repository cache
I could use the verbose setting, but do I really need to? I already know I have
the same
I don't quite get the concept of scope classloaders yet. Wouldn't you want both
ear's to use the same classloader so you don't get the classCastException?
Here are the jboss-app.xml files.
NexusEvents.ear:
jboss-app
|loader-repository
| seam.jboss.org:loader=NexusEvents
|
I have two session beans each deployed in a different ear's on the same JBoss
server. Can i successfully inject Session bean A into Session bean B if each
one is deployed in a different ear? I keep getting this error and everything
looks ok so I assume that they must both be within the same ear
I have two persistent contexts defined in my project. I can get everything to
work alright, except that when I deploy the app I get an error for each entity
since each Entity bean does not exist in both persistence contexts.
anonymous wrote :
| 18:56:28,560 WARN [ServiceController]
What can cause duplicate objects to show up in a collection when the SQL data
itself is fine? I have a problem where duplicate java objects are showing up
in a @OneToMany relationship on one of my entities. I need to figure out why
these duplicate objects show up in my collection.
Here is
Thanks. I will let them figure this one out. But I assume that it is possible.
There are cases of Websphere reading JBoss JMS queues. Right?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4138334#4138334
Reply to the post :
I am working with a sister company who has Websphere 6.x we use JBoss 4.0.5
EJB3. They are trying to create a MDB that will read messages off of a JMS
queue depoyed in our JBoss AS.
They are having problems reading from my JMS queue, but I have no expereince
with Websphere so I am not sure
Thanks for the tips. I only had the validate tag on one field to make it the
post simpler. It turns out my problem was that I was using the s:button instead
of the h:commandbutton to save the data. I beleive The s:button isn't really a
button, but an s:link. I think the validation did not work
I understand that it does not post the form, but why would this prevent the
validation from working?
T or F: If you ahve a form, and you want to validate the form, you can never
use an s:button. Is this correct?
View the original post :
Ok, thanks. I know I should have caught this sooner. I had read that the
s:button does not submit the form in the docs. I guess I assumed that the
s:button would still send the form fields to the server using request
parameters. This led me to believe that server side validation would still
I am trying to figure how this seam entity bean validation and form validation
fit together. Here are a couple questions:
1. Are the @NotNull validation annotations and the validation attributes like
'required=true mutually exclusive? In other words, can I only use one or the
other?
2. What
I have a many one to relationship and when I run a query to fetch the objects
selected in the query, the related objects are still fetched even though the
FetchType is lazy. Here are the mappings:
PolicyVO class maps to the FBWorker class:
public class PolicyVO implements Serializable
| {
I am still figuring out all the components used by Seam. Where do I learn about
themes. Where does a theme fits within all the components used by Seam. Is it
a richfaces thing, a JSF thing, Seam concept, etc? I checked out chapter 18 of
the Seam Manual, but there was not very much there
Thanks for the help. I will start doing some research. If anyone has
suggestions or links for where to start it would be appreciated.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118819#4118819
Reply to the post :
Thanks for the response.
On the second point what I am looking for is the possibility of having a
screen size drop down with with the options small, normal, and large. When a
user selects small the css and/or html would be modified to make the text and
input fields smaller.
View the original
In order to get a jump start with Seam a few months ago we used the Seam Gen
tool to generate an applicaiton from our database. We are at a point now where
we would like to modify the way the application looks. Specifically we are
trying to shrink the size of the generated Edit pages to fit
Thanks for the reply. I have a few more questions.
1. By touch do you mean open the file, make a change, and save it?
2. Is there an easy way to adjust the properites file if it is in a zipped
ear file?
3. When I make a change to the applications.xml file does it redeploy the
entire .ear? If
When I deploy my applications as an EAR there are certain properties that must
change based upon the runtime environment such as the port of the Naming
service or Production/Test environment settings. Basically those types of
things normally put in a properties file. What is the best way to
I am looking at using Seam 2.0 for my next project, but currently we have
another project using Seam 1.2 deployed to our JBoss 4.0.5. If I change the
JBoss 4.0.5 JSF implementation from myfaces to JSF 1.2 RI as indicated in the
documentation, will this break the existing Seam 1.2 deployed
I need to consume a webservice from my Action class in my Seam web application
deployed to JBoss 4.0.5. Does wsconsume work with version 4.0.5? I tried XFire,
but its jar conflicts with Jboss' ejb3all.jar. Is Axis still the easiest way to
consume a web service, or are the facilities built into
I have a requirement to authenticate users of a our web application against
Active Directory. The applicaiton is written using SEAM. I have never done
anything with JAAS or with LDAP so I am having a hard time figuring this out. I
have looked at LdapExtLoginModule
In Michael Yuan's book JBoss Seam section 2.4.5 he recommends that you avoid
using Bijection (@Out annotation) excessivly. He cites the reasons of
readability and performance. Unfortunately he does not elaborate much more on
this.
Has anyone found this to be true? Is there any rule of thumb
I am trying to understand when Stateless session beans should be used within
the Seam framework. I orginally thought I could outject from a Stateless
Session Bean to my JSF page as follows:
@Stateless
| @Name(myBeanA)
| public class MyBeanAImpl implements MyBeanA
| {
|
From the documentation for the @Out annotation:
Specifies the scope to outject to. If no scope is explicitly specified, the
default scope depends upon whether the value is an instance of a Seam
component. If it is, the component scope is used. Otherwise, the scope of the
component with the
Thanks Pete for the answers. That helps me alot. I will crack open an EJB book
this weekend to get a little more detail.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4105161#4105161
Reply to the post :
That makes sense. I will do as you suggest. Thanks for your help.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099848#4099848
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099848
Ok. It is little more work to do it this way, but I think it is much simpler to
understand and diagnose if something goes wrong. I notice that the seam-gen
always generates the code this way. If I do go with the RESTful approach then
there isn't any need for the @DataModel, right?
View the
Just a simple yes or no question. From my reading about s:link it looks like if
you want to use it in a clickable list you must either use it conjunction with
the @DataModel annotation in your session bean or you must use a RESTful
approach by sending in the id of the component on the list and
I don't use the h:commandLink in conjunction with the @DataModel or
@DataModelSelection. I just use a regular @In annotation in my session bean:
@In(required=false,value = lineItem) @Out(required = false, value =
lineItem)
| private ClientTransmittalLineItemVO
Do you mean
A. No, this should not work there is still something weird going on
or
B. No, I should not be doing it this way even if it does work.
If A I would like to figure out way it still works. Unfortunately, we hired
an overpriced and under-qualified consultant and he showed us to do it
Ok. Thanks again for your input. One more clarification: Are you saying that I
should always use a RESTful approach no matter what, or do you still recommend
using @DataModel for some situations.
BTW, By RESTful I assume you mean to inject only the object's id and look it up
again on the
Yes, that is the end result. But the root cause of the incorrect table
results is that when the saveClientTransmittal() action is called, the VO
object that gets injected as the @DataModelSelection does not contain the
changes made on the form so no updates are performed. Its as if the user
Here is the ClientTransmittalVO class:
@Entity
|
| @NamedQueries
| ( {
| @NamedQuery(name = findClientTransmittalByOfficeId,
| query = select clientTransmittal from
ClientTransmittalVO clientTransmittal +
| join
I had a problem where I selected an item outjected from a SFSB's datamodel to
an edit page and when I tried to save it my changes would not be saved on the
first attempt. No errors occurred, but the changes I entered on my edit page
would not get saved to the DB. Debugging the application
I found that the best way to do this was to place the @TransactionAttribute on
the class instead of the method. I did not realize this annotation could work
on either a method or class.
| @Stateless
| @Name(keybankServices)
| @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
I have an edit page that can be reached from two different list pages. When the
user is finished with the edit page I want to display the page that the user
navigated from. For example if I had two list pages ListPageA and listPageB
and the user navigates to the edit page from listPageA, then
I am having the same problem. Did you ever get this resolved?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095692#4095692
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095692
If I have a single SLSB with method A and Method B which are called
sequentially (first A then B) by a MDB how do I keep Method B from getting a
transaction timeout error when method A takes a very long time to complete?
I have a MDB which firsts downloads some files from a FTP site and
matt.drees wrote : If I were you, I'd try to get annotation-based validation
working.
|
| So, either:
| -try including a newer Hibernate Validator jar
| -write your own (i.e. copy/paste Hibernate's)
Matt, thanks for your help.
Do you happen to know what version of the
In case someone else needs to do this:
At first I downloaded the hibernate-validator.jar and tried to add it to my
project and jboss, but I could not get it to work with the correct version of
the hibernate-entity manager. So, I downloaded the hibernate entity manager
3.3.1 which included the
ok, thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092554#4092554
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4092554
___
jboss-user mailing list
Other than doing it manually, is it possible to validate a currency or float
amount on a form to make sure that it conforms to a certain precision and
scale? I was hoping I could use an annotation on the entity or a
f:convertnumber on the form but have not had any success.
I am trying to
I have a SFSB that has a save method linked to a save button on my page. I have
@NotNull validation annotations on the entity bean. When I submit the form I
see the error messages appear from the the decorator tags, but the save event
handler is still called and the page is reloaded with its
Seam 1.2.1 GA
Facelets
Not sure what versio of JSF. Whatever comes standard from the 1.2.1 GA project
creation script.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4092132#4092132
Reply to the post :
That did it. Thanks for you help.
I will have to read up on the s:button to see how it differs from the jsf
commandButton. By docs do you mean the documentation found here:
http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/
View the original post :
I have two classes Client and Drivingdistance with a one to one association.
The id of the Client is the PK and FK in DrivingDistance. My mapping
annotations are as follows:
Client class:
@Table(name=FBCLIENT)
| @Name(client)
| @Scope(ScopeType.SESSION)
| public class ClientVO implements
I have an intranet web application for handling our companies clients. After
the user searches for and selects a client, the user to brought to the ?Client
Master? page. This page consists of a tree control on the left and an iframe on
the right. As the user clicks a node on the tree the proper
Is it possible to inject the EntityManager into a stateless session bean if the
bean is invoked from a MDB?
I have a message driven been that calls a stateless session bean. In the
session bean I inject entity manager. But when the session bean is invoked
from the MDB the entity manager is
I have a fairly complicated program that downloads files from a remote FTP
website, decrypts the files, and processes the files and sends the processed
files into an digital image repository.
My questions are:
Is it generally better to move batch/scheduled processes to run inside the
JBoss
I found that the Seam link and button tags do not post the form. So, field
state is not maintained when you leave the page. I had to use the jsf h:button
instead of the seam button.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079782#4079782
Reply to the
How are the fields on a seam-gen-ed Edit page synchronized with the instance in
the EntityHome? I know they work when you save or update the instance, but what
if you navigate to another page in the same conversation and come back to the
edit page? How can you maintain the state of all the text
After more research I found most of the performance problems have to do with
the generated DB2 SQL and the way DB2 handles the query. DB2 does not handle
case insensitive searches by default. When a query is run like:
Select * from nametable where lower(lastname) like 'doe%'
A DB2 will use a
I am using seam-gen (SEAM v1.2 ) to generate an simple application. After
generating the application I can bring up the [entityname]List.xhtml page. I
can also page through the records successfully. But when I try to set the
search parameters to any sort of value the query fails.
I beleive
Ok, I will do that. I wasn't sure if this was seam or hibernate. Thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076290#4076290
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076290
Has anyone had experience using the EntityQuery class to query a mid to large
sized table (300,000+ records)?
I used seam gen to create a CRUD application for a single table. The main
list.xhmtl page uses a generated component that extends from the EntityQuery
class. The table I am querying
I am using seam-gen (SEAM v1.2 ) to generate an simple application. After
generating the application I can bring up the [entityname]List.xhtml page. I
can also page through the records successfully. But when I try to set the
search parameters to any sort of value the query fails.
I beleive
This is my second post today sorry for the questions, but I have researched
this the best I can and can't find a solution. I am about to give up on the
rich tab panel, I have had too many problems. All I am trying to accomplish is
to have all fields validated in my tab panel regardless of which
Seam version: 1.2.1
JBoss:4.0.5
I have created a page that used the rich:tabpanel component. Inside one of the
tabs I want to change a label depending upon what is selected in a radio
button. To do this I added the a4j rerender attribute for the onchange event.
However, the rerender does not
No, same behavior. I actually started with the onchange event, but when I ran
into this problem I switched to onclick to see if it would make any difference.
I have since found that if I add ajaxSingle=true to the support tag, as in:
a:support event=onclick reRender=panelx,panely
I don't think hibernate is seeing the persistence.xml file because I get the
following:
08:56:00,017 INFO [QuartzTst2] class
path=C:\dev\jdk\5.0/lib/tools.jar;C:\dev\jboss-4.0.5.ejb3/bin/run.jar
| 08:56:00,017 INFO [QuartzTst2] Class loader:[EMAIL PROTECTED]
I have already posted this in the EJB3 forum, but since I am also using SEAM I
thought that perhaps this problem has something to do with my SEAM
configuration. I have a project deployed to JBoss 4.0.5 using SEAM 1.2. I know
that SEAM 2.0 will support quartz scheduling, but I am trying to get
I am trying to use the quartz scheduler that comes with JBoss. I have created a
simple job that logs a message every few minutes. Now that I have this working,
I want to call a job that requires Hibernate and Java Persistence. When I do
this I get errors because the persistence.xml file is not
Thanks for your replies.
The browser is IE. When I test it with firefox everything works fine. I have
changed the content disposition from atachment to inline, but I still get the
pdf being displayed in a new window. I don't think this is just a
configuration matter with IE because if I open
I am trying to stream a PDF to a new browser window. I can get this to work,
but the strange thing that happens is that a new browser window gets opened,
but instead of the PDF geting displayed inside the browser window, it is opened
separately by Adobe Acrobat. So, the user is forced to close
I have a simple page that I am trying to pass a date parameter to:
| s:button view=/RptphdmgbinderEdit.xhtml
| id=create
| value=Create rptphdmgbinder
| f:param name=policyeffdate
value=#{policy.effectiveDate.time}
Pete,
Thanks for the example. What if a number is stored in the database instead of a
string? When I try to do this:
| public enum TypePayment
| {
| 1(ANNUAL),
| 2(SEMIANNUAL);
|
I get a compile error. Is there a way I could still use and enumeration when
the data stored in the
All,
I have a column in a Table with values 1-9. Each value is a code that
represents a certain value i.e.
1=Annual
2=Semi Annual
3=Quarterly
I want to map this column to an Enumeration. I have created the following
Enumeration:
@Name(typePayment)
| public enum TypePayment
| {
|
I found a partial solution. If I do the following:
1.change the column from varchar to integer in the DB table.
2. Change the EnumType to ORDINAL
@Column(name = TYPEPAYMENT)
| @Enumerated(EnumType.ORDINAL)
| public TypePayment getTypePayment() {
| return
Is it possible to set the Criteria.DISTINCT_ROOT_ENTITY with my EntityManager
object?
I am having the problem of my HQL query returning duplicate objects. I tried
the distinct keyword as follows:
select distinct client from ClientVO client +
| left join fetch client.policies
I agree that lazy instantiation is the best way to go, but my problem with the
lazy instantiation is that I have trouble keeping my objects in the session. My
seam action classes call my business layer to get all objects:
i.e. List clients=clientService.findByLastName(Doe);
This works fine to
My entity bean has session scope:
@Table(name=FBCLIENT,schema=DB2ADMIN)
| @Name(client)
| @Scope(ScopeType.SESSION)
| public class ClientVO implements Serializable
| {
| private static final long serialVersionUID = 2285612284592204149L;
|
| private Long id;
| private
In general, when you have a session bean that performs a search is it sometimes
better to return object identifiers instead of the entire objects themselves?
I have a search page where a user can enter various criteria to get a search
results. Once the search results are returned, the user can
I am new to JSF and SEAM. What do you mean by create a phase listener. Is this
a class I need to write, or is this done via a configuration setting? Any link
to documentation would be appreciated.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054751#4054751
I know this is a long shot, but does anyone have experience using the Crystal
JSF component (found here: http://diamond.businessobjects.com/node/850 ) inside
the JBoss SEAM framework? I can get the report to work in a regular JSF
project, but if I try the same thing in a SEAM project the report
I am having one more issue. Any ideas or explanations are appreciated. I can
now get the entitymanager from inside eclipse. I can call the EntityManager's
persist and find methods directly in my test case but I cannot successfully
call my service and DAO layer classes. I am trying to test a
If I should be asking this in another forum, please let me know.
I am slowly coming up to speed with seam and really enjoy it. But I cannot
figure out how to test or execute my data access layer unless it is running
inside of JBoss. Before with struts, I did not have EJB, just plain POJOs and
Thanks for your replies. I did use seam gen, so I will take a look at it.
I have one more question about the documentation you pointed me at. How does
the Local Entity Manager get declared and created? This is normally done with
the persistence.xml files with JNDI, right? But how is it done
I will answer my own question concerning my emf =
Persistence.createEntityManagerFactory(myResourceLocalEntityManager);
question.
I just had to define the persistence-unit in a persistence.xml file.
persistence-unit name=sample
|
Is the use of pages.xml and [pagename].page.xml mutually exclusive? I am
converting a seam project in Eclipse over to a new project structure built
using the seam-gen tool. The seam gen tool uses individual page.xml files
rather than one single pages.xml file. What are the advantages of doing
I am just getting started with SEAM. I tried the first few examples, and got
them working, so in my exuberence I decided to try out the EntityHome example
in chapert 14 of the onling doc. Whenever I try to persist the Person, it fails
with validation errors. What is interesting is that the
I did try to reference the seam-gen application, but it was a bit overwhelming.
There was so many files generated, I had a hard time seeing the forest from
the trees. My hope was the EntityHome could save me alot of work for simple
CRUD applications, but would I be better off using Session
I have created a context in the jbossweb-tomcat55.asr for sharing documents.
However, I want to protect this context with a security constraint. To the best
of my knowlege I have everything set up correctly, but a user is not prompted
for a username/password and the context is still accessible
I have created a context in the jbossweb-tomcat55.asr for sharing documents.
However, I want to protect this context with a security constraint. To the best
of my knowlege I have everything set up correctly, but a user is not prompted
for a username/password and the context is still accessible
Just trying to get started with EJB3. I am using an EJB3 tutorial found here:
http://www.laliluna.de/download/first-ejb3-tutorial-en.pdf
I am trying to declare a Local interface using the @Local annotation. I am
using Eclipse 3.1. I get the error:
Local cannot be resolved to a type
My
Thanks. After looking at my JBoss installation, it occurred to me it was a
default installation, not a EJB3 installation. Once I added the jar to my
project everything is fine. Thanks for your help.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3967103#3967103
93 matches
Mail list logo