[jboss-user] [JBoss Messaging] - Jboss-messaging-1.0.5SP1 and Seam 2.0.2SP1 on jboss4.0.5

2008-12-04 Thread evdelst
I am trying to use a (remote) jboss-messaging 1.0.5SP1 from within a Seam 
application (2.0.2SP1). I cannot upgrade JBoss or JBoss Messaging at this 
moment (there are many applications talking to that messaging server, upgrading 
would mean a lot of work).

The problems I encounter are with classloading. I tried a 'scoped deployment', 
but run into errors concerning the javassist:

java.lang.ClassCastException: nl.mypackage.User_$$_javassist_9 cannot be cast 
to javassist.util.proxy.ProxyObject

This is after putting the same javassist.jar in the (scoped) 
jboss-messasing.sar. With the default javassists, I get method not found errors 
in the ProxyFactory class.

I also tried putting all the jboss-messaging client jars in the ear file, but 
this gives other problems with the initialization of the 'aop on the client 
side'.

Is it even possible what I am trying to do, or should I give up at this point 
(and wait for an upgrade of all the other applications)?

All tips are welcome!

Edwin 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194263#4194263

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194263
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Creating several objects in one transaction.

2007-12-30 Thread evdelst
Easiest is to add the persons to a list you store in the bean.

eg.

private Person person; 
  | 
  | private List list=new ArrayList();
  | 
  | void add() {
  |list.add(person);
  |   person = new Person();
  | )

Then in your commit method, iterate the list and call em.persist for each 
element.
No need to use Flushmode.manual for this kind of interaction.
Also, the transaction is tied to a single method call (= a good thing).



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116110#4116110

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: outer joins with seam

2007-11-21 Thread evdelst
this is really a JPA question, not Seam.

But you should map the relations with a @ManyToOne
Left outer join is not supported in a query, but 'left join fetch' should do 
what you want, once you map the entities correctly!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106801#4106801

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106801
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-20 Thread evdelst
>From the docs:
anonymous wrote : A factory method will be called when a context variable is 
referenced but has no value bound to it. 

You are however not referencing the context variable, but a getter method on 
another context variable. (if you had an @Out at the list, the factory would 
have been called).

Also, for selectitems, you can use the s:convertEntity tag and return the 
results from the query instead. Much simpler!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106403#4106403

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106403
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Remote messaging server (1.0.1SP5) with muliple clients, som

2007-09-21 Thread evdelst
Hi,

I have a very complicated deployment problem.
JBoss Messaging 1.0.1SP5, deployed on JBoss 4.0.5.GA

There are multiple clients (all running in seperate JVM's):
- some standalone apps
- j2ee applications, using an MDB, jboss 4.0.5.GA, with a scoped-ear 
deployment. There is a jboss-messaging.sar deployed there as well.
- j2ee apps, sending JMS messages, also scoped-ears

This all works if there is no firewall.
Now, I can get everthing to work if the jboss-messaging is behind a firewall, 
by specifying various -D options and a 'cientConnectAddress' in the 
remoting-service from the jboss-messaging deployment.

Now, the (even more) complicated part:
I also have a client (ear, jboss-4.0.5) that is deployed on the same host  as 
jboss-messaging. This instance *must not* use the firewall. If I remove the 
options added for the firewall, this client can connect, but the others 
can't.

Is this possible to get workingThe options (-D for rmi host etc.) are all 
global...

I was thinking of configuring a different connector (remoting-service.xml) 
without the clientConnectAddress, but this will not help with the global 
options regarding the RMI.

Any thoughts?

Regards,

Edwin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087206#4087206

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Remote messaging server (1.0.1SP5) with muliple clients,

2007-09-21 Thread evdelst
I forgot to mention:
I know the newer jboss-messaging solves firewall issues for the standalone 
clients, but I cannot upgrade the jboss version for the JBoss 4.0.5 apps (with 
MDB etc.) at the moment.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087207#4087207

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Checkbox in TreeNODe

2007-06-29 Thread evdelst
Hi,
I am not sure if it is a richfaces or Seam question, so I double posted.

I want to put a h:selectBooleanCheckbox in a treenode.
The problem is, it shows up, but I can never select it.

For a datatable, I use a bean with a Map and a 
setSelection(MyDataObject) method in the (stafefull) bean. This works nicely, 
giving me a Map of selected objects.

In the tree, my template looks like this:

  | 
  |   #{data.person.lastName} 
#{data.organisation.name}
  | 
  | 

In my bean:
public Map getSelection() { return this.selection; }
  | 
  | public void setSelection(Test t) {
  |   logger.info("check "+t.getId());
  |  selection.put(t,true);
  | }
  | 

If I put a h:inputText in the treenode, I can type into that field.
This pattern works for DataTable. Has anyone tried this with a rich:Tree?

Edwin



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059046#4059046

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059046
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Transaction Demarcation

2007-06-17 Thread evdelst
When you call a method from within a session bean on the same bean, you have to 
call it using the interface (if you want transaction attributes to work, and 
any other interceptors).
You are probably calling on 'this' at the moment, which means the container 
doesn't get a chance to do its magic.
You can use the SessionContext (ejb api) to get the interface, and make the 
call on that.
The sessioncontext can be injected (if i recall correctly, put @Resource at the 
field).
Then, getBusinessObject should do the trick.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055018#4055018

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055018
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Getting

2007-06-11 Thread evdelst
Same errors for me.
I extraced the javax.annotation package from the mentioned jar file and put 
them in a new jar. Place that in 'server/default/lib' and it works.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053166#4053166

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053166
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Usage of selectitems breaks application flow (weird!)

2007-01-03 Thread evdelst
Depending on the entityconverter.

You might need a proper equals & hashcode in your pojo (have had strange things 
happen if those are not implemented correctly)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997532#3997532

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997532
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: ICEfaces

2006-12-11 Thread evdelst
Bit late, but just to let you know: the CSS link helped.
I did have a link, in a facelet template, but somehow I messed it up.

Still have some other problems.
Some exceptions also mentioned in another post (also occurs with booking 
example), and some transitions in my pageflow stopped working, but I will 
investigate that later.

Edwin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992909#3992909

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992909
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Exception thrown on seam-booking-icefaces

2006-12-11 Thread evdelst
Just to confirm:
I get this in my application as well.
I use jpdl pageflows, facelets, conversations (and Icefaces ofcourse)

Edwin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992905#3992905

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992905
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Security

2006-12-07 Thread evdelst
"SmokingAPipe" wrote :  HOW HARD COULD THAT BE? 
  | 
It's not so hard. Look into JAAS and declerative security in j2ee (web.xml or 
on ejb-methods).
It is quite easy to provide your own password matching code.

Edwin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992053#3992053

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: ICEfaces

2006-12-04 Thread evdelst
Hi, 
I also posted this on the icefaces.org forum, but maybe someone watching this 
thread can help.

I have been struggling for a couple of days to get the auto-complete 
functionality working with Seam.
However, the popup with possible values never appears. 
If I look (with Ctrl+shift+T), I see the possible values in the response within 
div tags. 

Am I trying something that wil not work with the current version? (Please let 
me know, so I can stop trying)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990991#3990991

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990991
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Icefaces, pageflows and redirect

2006-12-03 Thread evdelst
Hi,

I am trying to use Icefaces in an existing (working) application using facelets 
and pageflows. I used jars and examples from the Seam-1.1.0-CR2 release.

After modifying all configuration files (web.xml, faces-config.xml etc., 
icesfaces-facelets.jar instead of facelets.jar) the pageflow doesn't work 
anymore (keeps redisplaying the same page).

Part of my pageflow:

  | 
  |   
  |etc.
  | 

Removing the redirect solves the problem (but offcourse without a redirect)

Another (unrelated?) issue is that I am trying to replicate the 'autoComplete' 
example from Icefaces in a seam application. After the first letter I type, the 
valuechangeListener is executed, but the page shows a message that the session 
is lost.

Has anyone used Icefaces in combination with pageflows?

Edwin van der Elst
Finalist IT Group


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990815#3990815

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990815
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Value is not a valid option.

2006-11-29 Thread evdelst
check for null in the equals()
I use an older version of the SelectItem.
When you have the 'noSelectionLabel' I think the equals is called with a null 
as well (always return false when the parameter to equals is null

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989634#3989634

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989634
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam promote bad design?

2006-11-29 Thread evdelst
I use pageflows for the navigation, the beans don't contain any navigation and 
I call the action methods using expressions in the flow. 
In the views, the buttons return the transitions to use.
It is a pretty clean seperation I think.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989619#3989619

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989619
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Changing another fields value in valueChangeListener

2006-11-15 Thread evdelst
Hi,

I have a (facelet) application using seam 1.0.1GA.
On a screen I have a h:selectOneMenu with a valueChangeListener. In the 
onchange I call 'submit()'.
My java method is being called. I want to change the value of another field. 
When I try this by changing the property of the outjected-bean that is being 
editted, I still see the old value.
I tried ' Context.removeFromAllContexts("beanname") to try to force a new 
outjected value, but it doesn't work.
Also, it doesn't matter if I add imediate="true" to the selectOneMenu.

Anyone know a solution for this?

Edwin van der Elst

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986169#3986169

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user