[JBossWS] - Re: Writing a client - no examples for BindingProvider based
by mjhammel
"alessio.soldano(a)jboss.com" wrote : This is not your situation, you're not using the persistence context in a servlet, you need injection in a SLSB. And my previous post shows that it works.
That may be, but then there is this discussion:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107353
In any case, I've done everything I think I need to do and it still doesn't work. I'd be happy for someone to show me what I've done wrong, but barring that I'd still have to say, in my case, it doesn't work.
anonymous wrote : I've just tried this too. It works more or less. I'm saying so since of course the problems you might have to face are lazy instantiation and cyclic referenced structure (that cannot be serialized into xml without references).
|
The "lazy" exception was due to Hibernate creating OneToMany annotations for fields in one table that were referenced by other tables. These references could not be serialized and caused the exceptions.
The references were created by Hibernate during the reverse engineering process because I had specified a foreign-key in other tables that pointed back to the first table. I removed the foreign-keys from my MySQL DB schema and the problem went away. The only drawback I can find on my end is that I need to add code to verify I don't have abandoned rows with links to rows that don't actually exist in other tables. Being a C programmer originally, I'm used to writing all my own checks like this, so it's not that big a deal. At least now I can pass back the serialized objects that represent db rows.
FWIW, I'm now passed this issue and trying to get access to the DB from a Schedulable. Like my Web Services class, injection does not seem to work there either. Unlike my Web Services class, I can't seem to find a work around in the schedulable because I don't know how to create a transaction and the method for retrieving the UserTransaction I used in the WS class doesn't work in a schedulable. See
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127493
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119683#4119683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119683
18 years, 3 months
[Remoting] - How to transmit client context info (eg username, host) with
by CusiDevelopment
Hello everybody,
We do have a small problem, which we couldn't find a proper solution for within the docu or the forums?
We are using JBoss Remoting (JBR) within our Eclipse RCP Client Application with Socket transportation to communicate with one of our server processes.
We found already out, that JBR is internally working with a kind of session mechanism.
The behaviour we want to achieve is, that once at the beginning of the communication or with every call client "context" information (username, host, ...) can be transmitted to the server.
Is there a way to retrieve the sessionId on the server side, where we use a socket based TransportServer?
In the forum we found a hint that we can get the used sessionId from ServerInvokerCallbackHandler. The question is how to retrieve it from our TransportServer?
Any help or pointers into the right directions are highly appreciated
kind regards
CusiDev Team
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119682#4119682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119682
18 years, 3 months
[JBoss jBPM] - Re: Deploy jbpm-bpel process definition error
by anas
Yes this solves the problem,,
I mean after I added the tools.jar to the class path it works fine,,, :)
thanks for help,, :) but I still have a question about jbpm-bpel,,
how dose it support custom nodes??
and if I created myNode type,, dose it supported to appear graphicly on the bpel designer??
thanks,,
Anas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119676#4119676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119676
18 years, 3 months