[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: @Filter don`t work on jboss

2008-12-11 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Map OneToMany to a TablePerHierarchy subclass

2008-12-11 Thread jfrankman
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

[jboss-user] [JNDI/Naming/Network] - Re: Location JNDI Bindings

2008-11-11 Thread jfrankman
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

[jboss-user] [JNDI/Naming/Network] - Registering Objects - Novice Question

2008-11-06 Thread jfrankman
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

[jboss-user] [JNDI/Naming/Network] - Location JNDI Bindings

2008-11-06 Thread jfrankman
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

[jboss-user] [JBossWS] - java.lang.LinkageError: loader constraints violated

2008-07-30 Thread jfrankman
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 : |

[jboss-user] [EJB 3.0] - Re: Can you Inject Local EJB from separate ear file?

2008-07-11 Thread jfrankman
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

[jboss-user] [EJB 3.0] - Re: Can you Inject Local EJB from separate ear file?

2008-07-11 Thread jfrankman
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

[jboss-user] [EJB 3.0] - Re: Can you Inject Local EJB from separate ear file?

2008-07-11 Thread jfrankman
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

[jboss-user] [EJB 3.0] - Re: Can you Inject Local EJB from separate ear file?

2008-07-11 Thread jfrankman
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 |

[jboss-user] [EJB 3.0] - Can you Inject Local EJB from separate ear file?

2008-07-10 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - @Entity Multiple Persistence Contexts

2008-06-24 Thread jfrankman
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]

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Duplicate Objects in Entity's mapped OnetoMany collection

2008-05-22 Thread jfrankman
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

[jboss-user] [Messaging, JMS JBossMQ] - Re: Websphere MDB read JBoss JMS Queue

2008-03-21 Thread jfrankman
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 :

[jboss-user] [Messaging, JMS JBossMQ] - Websphere MDB read JBoss JMS Queue

2008-03-19 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Form Validation Question:Entity Bean @NotNull vs. requir

2008-01-14 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Form Validation Question:Entity Bean @NotNull vs. requir

2008-01-14 Thread jfrankman
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 :

[jboss-user] [JBoss Seam] - Re: Form Validation Question:Entity Bean @NotNull vs. requir

2008-01-14 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Form Validation Question:Entity Bean @NotNull vs. required=

2008-01-12 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - @ManyToOne uses eager fetching even if FetchType.LAZY used

2008-01-11 Thread jfrankman
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 | {

[jboss-user] [JBoss Seam] - Re: Changing Look and Feel of Seam Gen-ed apps

2008-01-10 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Changing Look and Feel of Seam Gen-ed apps

2008-01-10 Thread jfrankman
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 :

[jboss-user] [JBoss Seam] - Re: Changing Look and Feel of Seam Gen-ed apps

2008-01-09 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Changing Look and Feel of Seam Gen-ed apps

2008-01-08 Thread jfrankman
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

[jboss-user] [Beginners Corner] - Re: How to handle configurable properties.

2007-12-09 Thread jfrankman
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

[jboss-user] [Beginners Corner] - How to handle configurable properties.

2007-12-07 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Mixing 1.2 and 2.0 Projects in JBoss 4.0.5

2007-12-04 Thread jfrankman
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

[jboss-user] [JBossWS] - Easiest Way to Consume Web Services from JBoss 4.0.5 EJB3

2007-11-29 Thread jfrankman
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

[jboss-user] [Security JAAS/JBoss] - JAAS and Active Directory for the Uninitiated

2007-11-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Best Practice Question - Avoid Excessive Bijection

2007-11-16 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Stateless Session Bean and @Out

2007-11-15 Thread jfrankman
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 | { |

[jboss-user] [JBoss Seam] - Re: Stateless Session Bean and @Out

2007-11-15 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Stateless Session Bean and @Out

2007-11-15 Thread jfrankman
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 :

[jboss-user] [JBoss Seam] - Re: Question - Can't save outjected DataModelSelection until

2007-10-29 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: T or F? - s:link/ in dataTable must use @DataModel or

2007-10-24 Thread jfrankman
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

[jboss-user] [JBoss Seam] - T or F? - s:link/ in dataTable must use @DataModel or REST

2007-10-23 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: T or F? - s:link/ in dataTable must use @DataModel or

2007-10-23 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: T or F? - s:link/ in dataTable must use @DataModel or

2007-10-23 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: T or F? - s:link/ in dataTable must use @DataModel or

2007-10-23 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Question - Can't save outjected DataModelSelection until

2007-10-23 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Question - Can't save outjected DataModelSelection until

2007-10-22 Thread jfrankman
Here is the ClientTransmittalVO class: @Entity | | @NamedQueries | ( { | @NamedQuery(name = findClientTransmittalByOfficeId, | query = select clientTransmittal from ClientTransmittalVO clientTransmittal + | join

[jboss-user] [JBoss Seam] - Question - Can't save outjected DataModelSelection until 2nd

2007-10-20 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: How to avoid transaction Timeouts for long running MDB

2007-10-17 Thread jfrankman
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)

[jboss-user] [JBoss Seam] - Pageflow Best Practice: Navigate back to calling page

2007-10-17 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Hibernate sql output in Server Log and Console

2007-10-16 Thread jfrankman
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

[jboss-user] [JBoss Seam] - How to avoid transaction Timeouts for long running MDB

2007-10-15 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: How to validate currency/float precision on a form

2007-10-09 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: How to validate currency/float precision on a form

2007-10-09 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: SFSB Method(Event Handler) still called after form valid

2007-10-08 Thread jfrankman
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

[jboss-user] [JBoss Seam] - How to validate currency/float precision on a form

2007-10-08 Thread jfrankman
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

[jboss-user] [JBoss Seam] - SFSB Method(Event Handler) still called after form validatio

2007-10-05 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: SFSB Method(Event Handler) still called after form valid

2007-10-05 Thread jfrankman
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 :

[jboss-user] [JBoss Seam] - Re: SFSB Method(Event Handler) still called after form valid

2007-10-05 Thread jfrankman
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 :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to map @OneToOne with Primary key association

2007-09-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - When to use Session scope vs. Conversation

2007-09-13 Thread jfrankman
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

[jboss-user] [JBoss Seam] - EntityManager is null when Stateless Session Bean invoked fr

2007-09-06 Thread jfrankman
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

[jboss-user] [Beginners Corner] - Which is better for scheduled batch jobs: Inside JBoss conta

2007-08-30 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Help with EntityHome Maintaining Conversation State

2007-08-30 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Help with EntityHome Maintaining Conversation State

2007-08-28 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: EntityQuery (entity-query) General Performance Questions

2007-08-23 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EntityList Restrictions generates invalid SQL for DB2

2007-08-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: EntityList Restrictions generates invalid SQL for DB2

2007-08-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - EntityQuery (entity-query) General Performance Questions

2007-08-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - EntityList Restrictions generates invalid SQL for DB2

2007-08-20 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Seam validation on Rich tabpanel

2007-08-09 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Rerender event not fired in Richtab panel

2007-08-08 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Rerender event not fired in Richtab panel

2007-08-08 Thread jfrankman
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

[jboss-user] [EJB 3.0] - Re: Quartz Classpath issues. How to configure.

2007-08-06 Thread jfrankman
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]

[jboss-user] [JBoss Seam] - Quartz Scheduler

2007-08-06 Thread jfrankman
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

[jboss-user] [Messaging, JMS JBossMQ] - Quartz Classpath issues. How to configure.

2007-08-03 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Open PDF in new window

2007-08-01 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Open PDF in new window

2007-07-31 Thread jfrankman
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

[jboss-user] [JBoss Seam] - convert parameter f:param with s:convertdatetime

2007-07-27 Thread jfrankman
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}

[jboss-user] [JBoss Seam] - Re: Enum in Seam

2007-07-02 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Mapping @Enumerated to Numeric Values

2007-07-02 Thread jfrankman
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 | { |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Mapping @Enumerated to Numeric Values

2007-07-02 Thread jfrankman
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

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Set Criteria.DISTINCT_ROOT_ENTITY with EntityManager

2007-06-28 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Complex Search Results - return object identifiers inste

2007-06-22 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Complex Search Results - return object identifiers inste

2007-06-22 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Complex Search Results - return object identifiers instead o

2007-06-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: JSF Component not rendered, but no errors reported

2007-06-15 Thread jfrankman
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

[jboss-user] [JBoss Seam] - JSF Component not rendered, but no errors reported

2007-06-13 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Test EJB3/Seam from eclipse

2007-05-21 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Test EJB3/Seam from eclipse

2007-05-18 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Test EJB3/Seam from eclipse

2007-05-18 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: Test EJB3/Seam from eclipse

2007-05-18 Thread jfrankman
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 |

[jboss-user] [JBoss Seam] - pages.xml, pagename.page.xml precedence

2007-05-09 Thread jfrankman
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

[jboss-user] [JBoss Seam] - EntityHome validation error (Chapter 14 example)

2007-04-26 Thread jfrankman
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

[jboss-user] [JBoss Seam] - Re: EntityHome validation error (Chapter 14 example)

2007-04-26 Thread jfrankman
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

[jboss-user] [Security JAAS/JBoss] - How do you secure static content?

2006-11-05 Thread jfrankman
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

[jboss-user] [Installation, Configuration Deployment] - Secure Static Content

2006-11-03 Thread jfrankman
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

[jboss-user] [EJB 3.0] - @Local Local cannot be resolved to a type.

2006-08-23 Thread jfrankman
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

[jboss-user] [EJB 3.0] - Re: @Local Local cannot be resolved to a type.

2006-08-23 Thread jfrankman
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