This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.

Marco Barenkamp

Ranch Hand
+ Follow
since Aug 27, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Marco Barenkamp

Hello,

To simplify the situation, I will construct a simple example:
Consider, I have a Person that has addresses (bi-directional)



The problem is:
When I update an existing address or when I create a new address, I simply use the

method and everythink works as expected.
But when I delete an address the deletion is not detected by the EntityManager,
beause I cannot see any SQL statements when I call

Is this the intended bahaviour? I was expecting the address to be removed when merging the appropriate person.

Any comments?
I am using Sun App Server 9 (TopLink) for this example.
Hi,

the vendor of an app server can choose the protocol for distributed
environments. The "simplified layer" is not tight to a specific protocol
as in the EJB2.1 Spec.
Currently, most vendors use JRMP when using the simplified layer (No classic Remote Interface, no direct Home Object).
When a native client is involved (C++ eg), the simplified layer cannot be
used. In this case, the EJB must be implemented as an EJB2.1 component (but more convenient now-annotations be still be used).

Hope this will help.
Hi,

is there any possibility to change the process order of a customer converter and a custom validator.
In my case, the converter converts a value and after that the value is validated. I need it the other way around.

Any ideas?
18 years ago
JSF
Hi,

since EJB3 is completely different from CMP, I was wondering whether
the Commit Options of an AppServer (A,B and C) are still used,because
EJB3 itself has locking possibilities. Otherwise, the ejbLoad and ejbPost methods can still be used (annotated).

Any ideas?
HI,

the scenario you described cannot work until you use INNODB and the appropriate MySQL JBoss classes.
Hi,

make sure that the Queue is available outside the AppSrv. If the JNDI name (inside the xml config file) of the queue starts with java:/, the queue will not be available outside the appsrv (default for databases).

Good luck!
Hi,

of course, it is possible to send JMS messages to a J2EE Application.
The J2SE client can lookup the Topic/Queue and the Connection Factory from the JNDI Nameservice of the AppSrv.
Each message that is send to the Destination, can be consumed by a J2EE component (a Message Driven Bean, e.g.)
If you are using a "real" MOM like Websphere MQ (MQ Series), you won't even need the JNDI lookup.

Thus, there are a lot of possibilities.
Hello everybody,

I'd like to configure the following scenario:

1) A Windows Domain User logs in to the local computer (the domain controller)
2) The user opens a browser and launches a web application deployed on the WAS6
3) The web application runs with the credentials of that user (because of Sigle-Sign-On)

Has anyone managed such a scenario?

Thanks in advance!
18 years ago
Hi,

You are looking up a remote EJB home object (although you're in a servlet-that makes only sense if your servlet engine is on another host than the ejb container).

The WAR archive must then include the stub for the EJB Object and the EJB Home object. If you try to narrow a remote object, the stub MUST BE PRESENT on gthe CLASSPATH! If not, a ClassCastException is thrown (until 1.4, using Java 5 a NullPointerException is thrown!)

so just run:
(and for the EJB Object)
and include the stubs in the war archive
and the problem should dissapear. Write a message if not. Bye.

[ January 13, 2006: Message edited by: Marco Barenkamp ]
[ January 13, 2006: Message edited by: Marco Barenkamp ]
Hi all,

I thought, a serverside JAX-RPC Handler can be registered for a specific HeaderElement, for example:

I have the following webservice.xml file:

Although I have a different role, the handler gets involved with the request. Even if I register the handler with a totally different headerelement, it is still involved.
Is this a bug of the SunONe AppSrv or did I miss sth?

Thanks for reply.

[ October 12, 2005: Message edited by: Marco Barenkamp ]
[ October 12, 2005: Message edited by: Marco Barenkamp ]
18 years ago
Hi,

you need to specifiy how the jndi context should establish a connection.
Search for jndi.properties in the samples, e.g. and copy it into your CLASSPATH.
[ September 07, 2005: Message edited by: Marco Barenkamp ]
Hi,

no, that is not possible. Modifying the environment entries leads into redeploy.
Hi,

if your server has more than one ip address, you can bind the jboss server to only one if your ethernet cards. this mechanism must also be used if
you are using NAT. Then, your server server has a local ip but is exposed to the internet via a global ip.
Port 1099 is the port for the communication to the naming service used to initially create a communication to the server in order to get a remote reference of an EJBObject eg.
19 years ago
Hi,

it depends on what protocol should be used. If you are using
https, there are a lot of tutorials how to use ssl with tomcat.
If you are about to use rmi over SSL, things are getting harder,
because you need to configure the appropriate invokers of the
EJB configuration.
Https is quite easy, the appropriate connector can be found in the server.xml file.
Create a keystore and certificate with keytool and that's it.
19 years ago
Hi,

you should use dns names instead of IPs, if they are changing.
Furtermore, you should make sure to use the jboss.bind.address.
This address (or dns name) will be used by all stubs bound in the
naming service.
19 years ago