Efrain Morales

Greenhorn
+ Follow
since Oct 14, 2009
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 Efrain Morales

Maybe you could use SecureZIP CLI

You would be running an .exe or a bat file from your java progam... it's not elegant but it would do the trick...
12 years ago
You have to make the missing jar file available to the jar file you are running, either copying it in the same folder or using -classhpath option, something like java -jar myJar.jar -classpath C:\otherJars
12 years ago
Besides if you work directly from the command line, you're more likely to learn different IDEs faster. If you get used to only one IDE, switching will be a pain in the you know where... and when you're starting to work with frameworks (CXF for instance), you usually learn how to use them from outside the IDE, running ant scripts or whatever, and once you know what you are doing, you integrate them to you your favorite tool...
12 years ago
You migth want to look into JMX in order to achieve this.
12 years ago
I agree with the expertise part, because even without proper trainng there are cunning people in the world.

However, I do believe that there are people that lack common sense, and that would be my definition of dumb

You can always make dumb desitions, you're not perfect, but if you continously find yourself doing them, it doesn't matter your trainning or expertise, you're just dumb.

Of course, it doesn't matter if people is dumb or not, you shall always treat everyone equally.

Efrain.
12 years ago
Because the class that has the main method has to be accessible from the outside.
12 years ago
Hi!

I'm new to the CXF framework. I was able to run the examples as stand alone applicatons What I want to know is how am I supposed to upload these classes to WebLogic.

The ant scripts generates only .class. Am I supposed to manually create a .war file or how does it work?

Thank you!

Efrain.
12 years ago
I think you could simply use something like String [] para = myArrayList.toArray(); , as long as your ArrayList is declared as <String> type.

Doing it without that <String> type could also work, but I don't think it's safe to do it.

You could also do it manually by using

12 years ago
it's 1 reference, i, poiting to one object with value 12. The original object is still there, you just don't have a reference to it.
12 years ago

Efrain Morales wrote:
The insertion to the database is done by another ESB service, which receives the query as part of an XML.


Meaning that I do not have direct access to the database, but I can send the query via JMS and it gets executed.

I've tried your recommendation but apparently it will only work for arrays of length of 128 or less. Anything bigger results in the following error:

Msg 103, Level 15, State 5, Line 0
The number that starts with '37806870454946511037868584831052324832111981061060603247841211121013247731101021111047801141111001179910111432407079803248465048' is too long. Maximum length is 128.

*Edit*
It will only work for arrays of 64 bytes, since each byte is 2 chars long

Any ideas?
12 years ago
@Henry

What i meant with 0x00000 is that i can execute the query like this: sp_SaveMail 'Sender','Receiver','attachmentName',0x9342743 where the 0x9342743 represents the varbinary value of the attachment, so what i wanted to know is that if there was a way to represent the value stored in the byte[] using that format



@Rob Prime

I thought of it, but due to company policies I do not have access to database passwords in production, so I cannot create a connection therefore I cannnot create the prepared statement either. I just did some research but i found no way to create the prepared statement without creating a connection first.
12 years ago
Hi

This is my first post, so if i correct a mistake (like putting this where it is not supposed to be) sorry beforehand.

Im currently developing a service in a service bus that recieves mails and serialices attachments. The insertion to the database is done by another ESB service, which receives the query as part of an XML.

the attachment should be serialized as varbinary(max) in SQL server 2005, but i'm having trouble to construct the appropiate query.

I've tried to do it using the toString() method of the array. Problem is that i can only do it like that if byte[].length < 128. I also tried to specify a big value in the form of 0x36549641616851646, and that actually works. What I'm now missing is the transformation part from byte[] to a string in that format.

What can i do?

thanks!
Efrain
12 years ago