Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

ahmad namini

Ranch Hand
+ Follow
since Aug 29, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ahmad namini

The specs of my app specify that an application which is conversing with a dedicated connection is running. This app lives in the JVM and is constantly bridging information from, in my case, Jabber to a database. However, there may be times when the application can be invoked via a servlet.

The application has ten threads whose mission is to write back to Jabber, and one thread which listens messages being sent by Jabber. Is it possible for a servlet to invoke a method of a class which is currently being run. All synchronization issues will handled correctly.
15 years ago
Does anyone know how to restrict access to a J2EE application hosting by JBoss to only certain IP addresses.

Thanks.
15 years ago
Is there a good anthology of distributed transaction patterns. Most of the work I have found is based on journaling the tasks, and many of the concepts have been delegated to database stored procedures. Can you'll shed some light on how one best tackles the distributed transaction goal, and some patterns that might help along the way.

Thanks, and I love your work in the past, espicially Kathy's.
Hi all:
Probably a stupid questions, but what exactly is the difference in the definition of terms: 'cache timeout' and 'cache resolution'.
In the JBossSX implementation of the JAAS Security Manager, the MBean permits configuration attributes of which the above terms are attributes. I am familar with 'cache timeout', which in my definition is the about of time in which the cache is assumed to be fresh (not stale). The other term, never heard of it.
Any help is, as always, greatly appreciated.
16 years ago
The EJB Home objects are not for location transparency, but rather a Factory for EJB Remote and Local Interfaces. This factory is implemented by the EJB container when returns the interface. The real beauty of the Home object is that the EJB container now controls the interception of client requests to the EJB and offers the client implicit middleware functionality (instance pooling, security, clustering, transactions, etc.)
So if choose not to use EJB's, you will need to provide all middleware services yourself. EJB's open standard and large vendor adoption makes it ideal for distributed systems.
Thanks ... Nice thread indeed.
IMHO, the Composite Entity design pattern should be deprecated. However, coarse-grained views of relational data will always be needed.
I like the following possibilities:
1. Fine-grained entity beans with a session bean having a composite view of the entity beans.
2. Fine-grained entity beans with a plain old Java object (POJO) composite view.
3. Fine-grained entity beans with a entity bean (BMP, but I guess a CMP would work as well) composite view.
if you take a look at Floyd Marinescu's writings, he seems to acknowledge this thought. See the following URL:
http://www.theserverside.com/events/videos/FloydPatterns/text/txt09.html
I have not yet read Alur et.al. updated book, but I would imagine that Composite Entity pattern might be useful only for BMP-beans.
From my readings of Alur et. al., the Composite Entity pattern has proved quite useful, in that a coarse-grained entity EJB model exists for use via session facades, etc. Composite Entity appears to be quite useful in the pre-EJB 2.0 days, when a local calls did not exist.
IMHO, with the use of local calls, relational-object mapping can be fine-grained, i.e. one CMP entity-bean per table row, and then a session facade realizing a use-case with local calls to the CMP entity-bean. More importantly CMR (container-managed relationships) keeps multiple entity beans consistent throughout.
Thus, the old composite entity bean appears to be dead. I would appreciate any comments.
Thanks.
[ September 29, 2003: Message edited by: ahmad namini ]
[ September 29, 2003: Message edited by: ahmad namini ]
Any advice on the best tools out for working with message- and RPC-style web services from a Java development standpoint.
I have gotten quite proficient at using AXIS, JAXM, and SAAJ. They might be the best.
XMLSpy is pretty good as well.
Thanks.
17 years ago
Thanks for the response Lasse.
I have indeed tried addChildElement(). However, this method assumes that the string is the tag name, and thus adds < and /> at the beginning and end of my string.
I did in fact solve my problem by essentially writing a recursive deep copy method which starts at the root element and appends each child element and its child element and so forth with its attributes, namespaces, and content.
Works great. You would think that a nice method would be provided within the SAAJ or the JAXM libraries. If there is, I couldn't find it.
17 years ago
I have a String which has xml markup within it. I need to append this String as XML encoded text within a SOAP Body. javax.xml.soap.SOAPElement has the addTextNode(String) method but all the markup is encoded with escape sequences instead.
Does anyone know how to encode this properly?
Thanks.
17 years ago
I don't see any problem with it at all. For my certification, I added RMI's leaseValue parameter and was not penalized at all.