This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!

Mark Lybarger

Ranch Hand
+ Follow
since Dec 19, 2003
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 Mark Lybarger

i have an applet application that runs from signed jar files on the local machine. I have a need for the applet to spawn a new jvm instance, one that will survive the original applet instance execution. help? thoughts?
6 years ago
i'm fairly new to swing, coming from jee.

i have a group of jradiobuttonmenuitem (s). when i select one, the actionPerformed method is always getting called. how do i only call the actionPerformed when it's first selcted.? right now i'm controling it by disabling the selected item, but that doesn't seem ideal.


6 years ago
i have a jsp that does something like :

<% if (request.isUserInRole("emp") ) { %>

Emp Role Specific content here.

<% } %>

I need to map the emp role to a few actual roles. if the code was behind a servlet, i would map it with:
<servlet>
...
<security-role-ref>
<role-name>CodeMonkey-emp</role-name>
<role-link>emp</role-link>
</security-role-ref>
<security-role-ref>
<role-name>CodeMonkey-emp</role-name>
<role-link>emp</role-link>
</security-role-ref>

How can I do this same mapping with a .jsp?

thanks.

6 years ago
JSP
the servelet's purpose it to validate the health of a web application. it is to validate that a web application's declared resources (jndi lookups) are actually available. the servlet looks at a web.xml and all the defined resource ref's and tries to do a lookup on them. if found, good, if not, bad.

this servlet should be deployed to the container and not bundled with each and every application that is deployed. i don't want to have to touch the production applications to have them have this servlet available.

i've read there's some way to invoke a servlet using /servlet/class, but that this isn't supported directly by the j2ee specification. file systems aren't supported by the spec either, but everyone logs using a file logger.

any help would be most appreciated.

thanks
11 years ago
hi,

we have a need to have a "global" servlet. we'd like to create a servlet and deploy a .jar file into say the jboss lib folder and have that servlet be accessable from any deployed war. the purpose of the servlet is to verify an application's health (lookup an applications jndi values and so forth). we'd like to be able to deploy this without having to deploy all of our applications into production. is there a way to inject this into all our web applications without touching the web.xml to define the servlet?

thanks!
11 years ago
i can never find the right forums here for what i'm after, but anyway, is there a canned j2ee application that works like a filesystem browser? i want to deploy a FS.war app that lets me browse the local filesystem of the server where the app is deployed.
i always have a challenge finding the right one of the many channels here to post my questions to. hopefully this is close.

i have a system that submits a job to another system via a WS. when submitting the job, it gets back a job id, and can use the WS api to check the status of the job (has it completed successfully from the queue?). i need a method such that i can periodically check the status of the job, and if it succeeds, i need to notify a 3rd system that the job was successfull. if after a given time period the job isn't successfull, i can issue a warning/error message to the 3rd system that the job encountered issues. i am almost thining a timing type of bean would be a good solution, but i don't see a good way to get the job id's to the timing bean.

any thoughts or suggestions would be most welcome!
i have a need to split up an xml string. i have string such as (simplified example):

<base>
<item>
<name>foo</name>
</item>
<item>
<name>bar</name>
</item>
</base>

my app needs to process the item(s) in that xml. so i'd like to get a list of the item's as xml, such as: <item><name>foo</name></item>. if i use xpath on the nodes (jaxen), i get a nodelist back. can i use this nodelist to get the xml i need?
12 years ago
in java i can't do something like:
BaseClass a = new BaseClass();

DerivedClass b = (DerivedClass) a;

is there some utility to _cast_ a base class to a derived class? I don't want to have to implement a clone method just to invoke the getters on the base, and the setters on the derived.

i have an ejb which returns some classes. another ejb takes those classes as arguments, but i need to extend them locally, and add some information about them.
12 years ago
is there an advantage to marking fields transient in a slsb?
Our group is using IBM Tivoli Directory Server 4.1. We have an application that authenticates to the directory server. If first gets the dn from the directory server, then, using that will connect with the DN as the SECURITY_PRINCIPAL, and the password as the SECURITY_CREDENTIALS. This seems to work fine when an invalid password is passed, a NamingException of some type is thrown, and thus we're not authenticated.

Our problem occurs when the password is expired. No exception is thrown, and we recieve the InitialLdapContext. I came across an article here:

IBM Directory Server sample

that describes some ldap controls which can provide the password expired information. This seems to me to only work with IBM Directory Server >= 5.1. We're using IBM Directory Server 4.1, and I don't see these controls available to me.

My questions are, 1. does anyone know how to identify that a particular dn's password has expired using IBM DS 4.1?, and 2. Are there other channels to ask such questions on? I don't seem to see much about forums around the IBM DS site.

Thanks!
~mark
12 years ago
We currently have an esb in place. Basically a servl^^web service that is a traffic director for a few types of transactions (order detail lookup, order quoting, and inventory lookup). The service looks at the request, and hands it off to the appropriate handler for processing. Typically, this involves sending the input data, or a form thereof, to another service (possibly in another application) for the main processing.

Now, we have a requirement to report statistics on the esb usage. How may order lookup requests came in, how many were hits/misses? How many order quoting requests were recieved? How many were hits/misses (where a miss is where we were unable to give a quote for the order because perhaps we couldn't understand the input request)?

I'm after ideas and suggestions for handling this type of statistics gathering. The statistics of each service is fairly unique to that particular service, but there could be transaction statistics that are common. Some high level technologies that have been suggested are, 1) mbean for I guess a method to easily view the data., and 2) snmp. Storing the information in a persistent store is not required.

Any thoughts/ideas are most welcome!

Thanks!
we have a system where a client can send in a request, possibly for multiple logical jobs to be executed. we do each job in the input request, and assemble the responses, then send them to the client.

let's say the request is to post 3 orders to an order processing system. and each order will need to return some xml to the client giving them acknowledgement of their order. it would seem that the processor (splits up jobs and calls a worker) could work more efficiently if it could send an async message to a worker (mdb?) to handle each job, and then coordinate the results back together. what is a common practice/pattern to handle this type of coordination? if we send an async message, how do we get notified that a job is done and results are ready?
yes, i ultimately want to test the xml processing of the servlet. and i want to do it in an integrated manner (in container testing). part of the xml processing is calling out to an external service and getting some more xml and assembling the results, and returning more xml. similar to a session facade bean that calls other beans to do it's work. we are segrating the processing from the servlet itself, but the best way to do end to end testing is to test sending the xml to the servlet and verifying the resultant xml.

thus, my question is, what testing framework can easily allow me to post xml to a servlet as the body of the xml message, and verify the results?
13 years ago
i'm struggling with which framework will allow me to attach xml to the body of an http request or submit, and how that would work (examples). looking at the HttpUnit, i can set form variables, and post the form. I haven't really done much cactus testing of servlets, i've only used it extensively to test EJB's.
The servlet code typically does the following to get the input xml data that is sent by the XMLHttpRequest javascript object:

BufferedReader br = request.getReader();
13 years ago